git ssb

0+

Rômulo Alves / website



Commit 9c727694dee8965f6bced007f39a915b5df6f49b

Creating simple version of the website

Rômulo Alves committed on 8/27/2016, 1:47:53 AM
Parent: cbc31d82ebaf4e81f5b1b78b882b74b595374d1e

Files changed

.gitignorechanged
package.jsonchanged
.DS_Storeadded
index.jsdeleted
gulpfile.jsadded
routes/index.jsdeleted
views/index.jsdeleted
src/index.htmladded
src/robots.txtadded
src/style.cssadded
.gitignoreView
@@ -1,1 +1,2 @@
11 node_modules
2+dist
package.jsonView
@@ -1,13 +1,8 @@
11 {
22 "name": "romuloalves.github.io",
33 "version": "1.0.0",
44 "description": "Personal website",
5- "main": "index.js",
6- "scripts": {
7- "test": "echo \"Error: no test specified\" && exit 1",
8- "start": "node ./node_modules/nodemon/bin/nodemon ./index.js"
9- },
105 "repository": {
116 "type": "git",
127 "url": "git+https://github.com/romuloalves/romuloalves.github.io.git"
138 },
@@ -16,18 +11,12 @@
1611 "bugs": {
1712 "url": "https://github.com/romuloalves/romuloalves.github.io/issues"
1813 },
1914 "homepage": "https://github.com/romuloalves/romuloalves.github.io#readme",
20- "dependencies": {
21- "babel-core": "^6.9.1",
22- "hapi": "^13.4.1",
23- "hapi-react-views": "^9.0.0",
24- "react": "^15.1.0",
25- "react-dom": "^15.1.0",
26- "vision": "^4.1.0"
27- },
2815 "devDependencies": {
29- "babel-preset-es2015": "^6.9.0",
30- "babel-preset-react": "^6.5.0",
31- "nodemon": "^1.9.2"
16+ "gulp": "^3.9.1",
17+ "gulp-clean-css": "^2.0.12",
18+ "gulp-minify-html": "^1.0.6",
19+ "gulp-rev": "^7.1.2",
20+ "gulp-usemin": "^0.3.24"
3221 }
3322 }
.DS_StoreView
@@ -1,0 +1,5 @@
1+Bud1 age.js package.jsonIlocblobF(������srcIlocblob�(������srcbwspblob�bplist00�
2+
3+
4+ 
5+]ShowStatusBar[ShowSidebar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds\SidebarWidth_PreviewPaneVisibility   _{{449, 571}, {770, 436}}�)5AMYp}�����������srcvSrnlong  @� @� @� @ E DSDB `� @� @� @
index.jsView
@@ -1,42 +1,0 @@
1-const Hapi = require('hapi');
2-const Vision = require('vision');
3-const HapiReactViews = require('hapi-react-views');
4-
5-const routes = [
6- require('./routes/index')
7-];
8-
9-const port = process.env.PORT || 8000;
10-
11-require('babel-core/register')({
12- presets: ['react', 'es2015']
13-});
14-
15-const server = new Hapi.Server();
16-
17-server.connection({
18- host: 'localhost',
19- port: port
20-});
21-
22-server.route(routes);
23-
24-server.register(Vision, err => {
25- if (err) console.log('Failed to load vision.');
26-
27- server.views({
28- defaultExtension: 'js',
29- engines: {
30- jsx: HapiReactViews,
31- js: HapiReactViews
32- },
33- compileOptions: {},
34- relativeTo: __dirname,
35- path: 'views'
36- });
37-});
38-
39-server.start(err => {
40- if (err) throw err;
41- console.log('Server running at:', server.info.uri);
42-});
gulpfile.jsView
@@ -1,0 +1,15 @@
1+var gulp = require('gulp');
2+var minifyHtml = require('gulp-minify-html');
3+var cleanCSS = require('gulp-clean-css');
4+var usemin = require('gulp-usemin');
5+var rev = require('gulp-rev');
6+
7+gulp.task('build', function () {
8+ return gulp.src('src/index.html')
9+ .pipe(usemin({
10+ css: [ rev() ],
11+ html: [ minifyHtml({ empty: true }) ],
12+ inlinecss: [ cleanCSS, 'concat' ]
13+ }))
14+ .pipe(gulp.dest('dist/'));
15+});
routes/index.jsView
@@ -1,5 +1,0 @@
1-module.exports = {
2- method: 'GET',
3- path: '/',
4- handler: (request, reply) => reply.view('index')
5-};
views/index.jsView
@@ -1,18 +1,0 @@
1-const React = require('react');
2-
3-class App extends React.Component {
4- render() {
5- return (
6- <html>
7- <head>
8- <title></title>
9- </head>
10- <body>
11- <h1>Rômulo Alves</h1>
12- </body>
13- </html>
14- );
15- }
16-}
17-
18-module.exports = App
src/index.htmlView
@@ -1,0 +1,24 @@
1+<!DOCTYPE html>
2+<html>
3+ <head>
4+ <meta charset="utf-8">
5+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6+ <meta name="description" content="Rômulo Alves personal website">
7+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
8+ <title>Rômulo Alves</title>
9+ <!-- build:inlinecss -->
10+ <link rel="stylesheet" type="text/css" href="style.css">
11+ <!-- endbuild -->
12+ </head>
13+ <body>
14+ <div class="container">
15+ <h1>Rômulo Alves</h1>
16+ <h2>Web Developer</h2>
17+ <aside>
18+ <a href="https://twitter.com/romuloalves" target="_blank" title="Twitter">Twitter</a>
19+ <a href="https://github.com/romuloalves" target="_blank" title="GitHub">GitHub</a>
20+ <a href="mailto:romuloaalv@gmail.com" target="_blank" title="Email">Email</a>
21+ </aside>
22+ </div>
23+ </body>
24+</html>
src/robots.txtView
@@ -1,0 +1,5 @@
1+# www.robotstxt.org/
2+
3+# Allow crawling of all content
4+User-agent: *
5+Disallow:
src/style.cssView
@@ -1,0 +1,36 @@
1+* {
2+ font-family: Menlo, Monaco, Consolas;
3+}
4+
5+body {
6+ padding-top: 80px;
7+}
8+
9+.container {
10+ margin: 0 auto;
11+ text-align: center;
12+ width: 200px;
13+}
14+
15+h1, h2 {
16+ padding: 0;
17+ margin: 0;
18+}
19+
20+h1 {
21+ font-size: 25px;
22+}
23+
24+h2 {
25+ color: #888;
26+ font-size: 15px;
27+}
28+
29+aside {
30+ margin-top: 50px;
31+}
32+
33+a {
34+ font-size: 12px;
35+ margin-right: 8px;
36+}

Built with git-ssb-web