Skip to content

Commit e9b1b65

Browse files
author
CarinaChenot
committed
🎉 Initial commit
1 parent 90e36e7 commit e9b1b65

14 files changed

+319
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# space
1+
# space
2+
SI project.

dist/assets/css/app.min.css

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
var tata = 'ver';

dist/assets/js/main.min.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"use strict";var tata="ver";

dist/index.php

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
// Faire le cache
4+
// // Setup
5+
// $city = !empty($_GET['city']) ? $_GET['city'] : 'Paris';
6+
// $url = 'http://api.openweathermap.org/data/2.5/forecast?q=' . $city . '&units=metric&APPID=9e8150c9d6fbf87d678d2cf7f7a2c00a';
7+
// $path = './cache/'.md5($url.date('Y-m-d H'));
8+
//
9+
// // From cache
10+
// if (file_exists($path)) {
11+
//
12+
// $forecast = file_get_contents($path);
13+
//
14+
// // From API
15+
// } else {
16+
//
17+
// // Get content
18+
// $forecast = file_get_contents($url);
19+
//
20+
// // Save in cache
21+
// file_put_contents($path, $forecast);
22+
// }
23+
//
24+
// $forecast = json_decode($forecast);
25+
26+
?>
27+
28+
<!DOCTYPE html>
29+
<html lang="en">
30+
31+
<head>
32+
<meta charset="UTF-8">
33+
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
34+
<title>Title</title>
35+
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
36+
<link href="assets/css/app.min.css" rel="stylesheet">
37+
</head>
38+
39+
<body>
40+
41+
<section>
42+
<form class="" action="#" method="post">
43+
44+
</form>
45+
</section>
46+
47+
<script src="assets/js/main.min.js"></script>
48+
</body>
49+
50+
</html>

gulpfile.js

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
const gulp = require('gulp')
2+
const plumber = require('gulp-plumber')
3+
const rename = require('gulp-rename')
4+
const notify = require('gulp-notify')
5+
const minify = require('gulp-minify')
6+
const connect = require('gulp-connect')
7+
const autoprefixer = require('gulp-autoprefixer')
8+
const sourcemaps = require('gulp-sourcemaps')
9+
const sass = require('gulp-sass')
10+
const babel = require('gulp-babel')
11+
12+
13+
let config = {
14+
'src' : 'src/',
15+
'dist': 'dist/'
16+
}
17+
18+
19+
// Connect task
20+
gulp.task('connect', () => {
21+
connect.server({
22+
root: 'dist',
23+
livereload: true
24+
})
25+
})
26+
27+
// CSS task
28+
gulp.task('sass', () => {
29+
return gulp.src(config.src + 'sass/*.scss')
30+
.pipe(plumber({errorHandler: notify.onError('SASS Error: <%= error.message %>')}))
31+
.pipe(sourcemaps.init())
32+
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
33+
.pipe(sourcemaps.write())
34+
.pipe(autoprefixer({
35+
browsers: ['last 2 versions'],
36+
cascade: false
37+
}))
38+
.pipe(rename(function (path) {
39+
path.basename += ".min"
40+
}))
41+
.pipe(gulp.dest(config.dist + 'assets/css'))
42+
.pipe(connect.reload())
43+
.pipe(notify('SASS compiled: <%= file.relative %>'))
44+
})
45+
46+
47+
// JS task
48+
gulp.task('js', () => {
49+
return gulp.src(config.src + 'js/*.js')
50+
.pipe(babel({
51+
presets: ['es2015']
52+
}))
53+
.pipe(minify({
54+
ext:{
55+
src:'.js',
56+
min:'.min.js'
57+
},
58+
ignoreFiles: ['.min.js'],
59+
noSource: false
60+
}))
61+
.pipe(gulp.dest(config.dist + 'assets/js'))
62+
.pipe(connect.reload())
63+
.pipe(notify('JS compiled: <%= file.relative %>'))
64+
})
65+
66+
// Wath task
67+
gulp.task('watch', () => {
68+
gulp.watch(config.src + 'sass/**/*.scss', ['sass'])
69+
gulp.watch(config.src + 'js/*.js', ['js'])
70+
})
71+
72+
gulp.task('default', ['connect', 'watch'], () => {
73+
74+
})

package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "gulpfile.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "Carina Chenot",
10+
"license": "MIT",
11+
"devDependencies": {
12+
"babel-preset-es2015": "^6.24.0",
13+
"gulp": "^3.9.1",
14+
"gulp-autoprefixer": "^3.1.1",
15+
"gulp-babel": "^6.1.2",
16+
"gulp-connect": "^5.0.0",
17+
"gulp-minify": "0.0.15",
18+
"gulp-notify": "^3.0.0",
19+
"gulp-plumber": "^1.1.0",
20+
"gulp-rename": "^1.2.2",
21+
"gulp-sass": "^3.1.0",
22+
"gulp-sourcemaps": "^2.4.1",
23+
"install": "^0.8.7",
24+
"npm": "^4.3.0"
25+
}
26+
}

src/js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let tata = 'ver';

src/sass/app.scss

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
Application name:
3+
Description:
4+
Version: 1.0
5+
*/
6+
7+
@charset 'UTF-8';
8+
9+
// Base
10+
@import 'base/reset';
11+
@import 'base/variables';
12+
@import 'base/global';
13+
14+
// Components
15+
@import 'components/header';
16+
@import 'components/footer';

src/sass/base/_global.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
font-family: 'Open Sans', 'Arial', sans-serif;
3+
}

src/sass/base/_reset.scss

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/* http://meyerweb.com/eric/tools/css/reset/
2+
v2.0 | 20110126
3+
License: none (public domain)
4+
*/
5+
6+
html, body, div, span, applet, object, iframe,
7+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+
a, abbr, acronym, address, big, cite, code,
9+
del, dfn, em, img, ins, kbd, q, s, samp,
10+
small, strike, strong, sub, sup, tt, var,
11+
b, u, i, center,
12+
dl, dt, dd, ol, ul, li,
13+
fieldset, form, label, legend,
14+
table, caption, tbody, tfoot, thead, tr, th, td,
15+
article, aside, canvas, details, embed,
16+
figure, figcaption, footer, header, hgroup,
17+
menu, nav, output, ruby, section, summary,
18+
time, mark, audio, video {
19+
margin:0;
20+
padding:0;
21+
border:0;
22+
font-size:100%;
23+
font:inherit;
24+
vertical-align:baseline;
25+
}
26+
/* HTML5 display-role reset for older browsers */
27+
article, aside, details, figcaption, figure,
28+
footer, header, hgroup, menu, nav, section {
29+
display:block;
30+
}
31+
body {
32+
line-height:1;
33+
}
34+
ol, ul {
35+
list-style:none;
36+
}
37+
blockquote, q {
38+
quotes:none;
39+
}
40+
blockquote:before, blockquote:after,
41+
q:before, q:after {
42+
content:'';
43+
content:none;
44+
}
45+
table {
46+
border-collapse:collapse;
47+
border-spacing:0;
48+
}
49+
50+
/* apply a natural box layout model to all elements */
51+
*,*::before,*::after,*:before,*:after {
52+
-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;
53+
}
54+
55+
/* inputs */
56+
input,button,textarea,select {
57+
color:inherit;
58+
font-size:inherit;
59+
font-style:inherit;
60+
font-family:inherit;
61+
-webkit-border-radius:0;
62+
border-radius:0;
63+
-webkit-padding-start:0;
64+
align-items:flex-start;
65+
text-index:0;
66+
border:none;
67+
outline:none;
68+
background:none;
69+
padding:0;
70+
margin:0;
71+
width:auto;
72+
height:auto;
73+
line-height:1em;
74+
}
75+
76+
/* inputs appearance (not for every input) */
77+
input[type=text],input[type=reset],input[type=password],input[type=search],input[type=email],input[type=tel],input[type=url],input[type=time],input[type=week],input[type=month],input[type=date],input[type=datetime],input[type=datetime-local],input[type=number],
78+
input[type=submit],input[type=reset],input[type=color],input[type=file],
79+
button,textarea,select {
80+
height:1em;
81+
-webkit-appearance:none;
82+
-moz-appearance:none;
83+
appearance:none;
84+
}
85+
86+
/* input color width */
87+
input[type=color] {
88+
width:1em;
89+
}
90+
91+
/* IE clear cross */
92+
input::-ms-clear {
93+
display:none;
94+
}
95+
96+
/* details and summary */
97+
details, summary {
98+
-webkit-appearance:none;
99+
-moz-appearance:none;
100+
appearance:none;
101+
}
102+
103+
/* text size adjusting */
104+
body {
105+
-webkit-text-size-adjust:100%;
106+
-moz-text-size-adjust:100%;
107+
text-size-adjust:100%;
108+
}
109+
110+
/* mark */
111+
mark {background:none;}
112+
113+
/* Font smoothing */
114+
/**,*::before,*::after,*:before,*:after {
115+
-webkit-font-smoothing: antialiased;
116+
-moz-osx-font-smoothing: grayscale;
117+
}*/
118+
119+
/* hr */
120+
hr {
121+
height:1px;
122+
margin:0;padding:0;
123+
}
124+
125+
/* u */
126+
u {
127+
text-decoration:none;
128+
}
129+
130+
/* th */
131+
table th {
132+
text-align:left;
133+
}
134+
135+
/* a */
136+
a {
137+
color:inherit;
138+
outline:none;
139+
}

src/sass/base/_variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/sass/components/_footer.scss

Whitespace-only changes.

src/sass/components/_header.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)