Skip to content

Commit a7252bb

Browse files
committed
2 parents 8ce2baa + fd71dbd commit a7252bb

5 files changed

Lines changed: 152 additions & 27 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
config.js
44
test.js
5+
./dist

gulpfile.js

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,49 @@ var cachebust = new CacheBuster();
2020

2121
const paths = {
2222
jsSource: ['./src/components/**/*.js', './src/components/*.js'],
23-
cssFiles: ['./src/assets/scss/*.scss', './src/components/**/*.scss', './src/components/*.scss'],
23+
cssFiles: './src/**/*.css',
24+
indexFiles: './src/index.html',
25+
scssFiles: './src/**/**/*.scss',
2426
index: './src/index.html',
2527
htmlFiles: './src/**/*.html',
2628
dist: './dist',
2729
};
2830

29-
gulp.task('build-css', function(){
30-
return gulp.src(paths.cssFiles)
31-
.pipe(sourcemaps.init())
32-
.pipe(sass())
33-
.pipe(cachebust.resources())
34-
.pipe(concat('styles.css'))
35-
.pipe(gulp.dest(paths.dist));
31+
gulp.task('build-css', function () {
32+
return gulp.src([paths.scssFiles, paths.cssFiles])
33+
.pipe(sourcemaps.init())
34+
.pipe(sass())
35+
.pipe(cachebust.resources())
36+
.pipe(concat('styles.css'))
37+
.pipe(gulp.dest(paths.dist));
3638
});
3739

3840
gulp.task('clean', function (cb) {
39-
del([
40-
'dist'
41-
], cb);
41+
del([
42+
'dist'
43+
], cb);
4244
});
4345

44-
gulp.task('build-html', function(){
45-
return gulp.src([paths.htmlFiles, paths.index])
46+
gulp.task('build-html', function () {
47+
return gulp.src([paths.htmlFiles, paths.indexFiles])
4648
.pipe(gulp.dest(paths.dist))
4749
});
4850

49-
gulp.task('build-js', function() {
51+
gulp.task('build-js', function () {
5052
return gulp.src(paths.jsSource)
51-
.pipe(sourcemaps.init())
52-
.pipe(print())
53-
.pipe(babel({ presets: ['es2015'] }))
54-
.pipe(concat('bundle.js'))
53+
.pipe(sourcemaps.init())
54+
.pipe(print())
55+
.pipe(babel({
56+
presets: ['es2015']
57+
}))
58+
.pipe(concat('bundle.js'))
5559
// .pipe(uglify())
56-
.pipe(sourcemaps.write('./'))
57-
.pipe(gulp.dest(paths.dist));
60+
.pipe(sourcemaps.write('./'))
61+
.pipe(gulp.dest(paths.dist));
5862
});
5963

60-
gulp.task('watch', function() {
61-
return gulp.watch([paths.jsSource, paths.cssFiles, paths.index, paths.htmlFiles],['clean', 'build-css', 'build-js', 'build-html']);
64+
gulp.task('watch', function () {
65+
return gulp.watch([paths.jsSource, paths.cssFiles, paths.scssFiles, paths.indexFiles, paths.htmlFiles], ['clean', 'build-css', 'build-js', 'build-html']);
6266
});
6367

6468
gulp.task('default', ['clean', 'build-css', 'build-js', 'build-html', 'watch']);

src/assets/scss/reset.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
html, body, div, span, applet, object, iframe,
2+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3+
a, abbr, acronym, address, big, cite, code,
4+
del, dfn, em, img, ins, kbd, q, s, samp,
5+
small, strike, strong, sub, sup, tt, var,
6+
b, u, i, center,
7+
dl, dt, dd, ol, ul, li,
8+
fieldset, form, label, legend,
9+
table, caption, tbody, tfoot, thead, tr, th, td,
10+
article, aside, canvas, details, embed,
11+
figure, figcaption, footer, header, hgroup,
12+
menu, nav, output, ruby, section, summary,
13+
time, mark, audio, video {
14+
margin: 0;
15+
padding: 0;
16+
border: 0;
17+
font-size: 100%;
18+
font: inherit;
19+
vertical-align: baseline;
20+
}
21+
/* HTML5 display-role reset for older browsers */
22+
article, aside, details, figcaption, figure,
23+
footer, header, hgroup, menu, nav, section {
24+
display: block;
25+
}
26+
body {
27+
line-height: 1;
28+
}
29+
ol, ul {
30+
list-style: none;
31+
}
32+
blockquote, q {
33+
quotes: none;
34+
}
35+
blockquote:before, blockquote:after,
36+
q:before, q:after {
37+
content: '';
38+
content: none;
39+
}
40+
table {
41+
border-collapse: collapse;
42+
border-spacing: 0;
43+
}

src/assets/scss/styles.scss

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
$sidebar-color: #222222;
2+
$main-background: #303133;
3+
$container1: #262729;
4+
$container2: #2B2C2E;
5+
$container3: #3C3C3C;
6+
$container4: #1D1D1F;
7+
$blueContainer: #363749;
8+
9+
$font: 'Lato', sans-serif;
10+
$yellow-color: #ECB613;
11+
$blue-color: #6795DE;
12+
13+
14+
// Thin 100 Italic
15+
// Light 300
16+
// Light 300 Italic
17+
// Regular 400
18+
// Regular 400 Italic
19+
// Bold 700
20+
// Bold 700 Italic
21+
22+
23+
124
body {
2-
background-color: green;
25+
background-color: $main-background;
26+
}
27+
28+
.font16-reg {
29+
color:white;
30+
font-family: $font;
31+
font-size: 16px;
32+
line-height: 22px;
33+
font-weight: 400;
34+
}
35+
36+
.font14-reg {
37+
color:white;
38+
font-family: $font;
39+
font-size: 14px;
40+
line-height: 22px;
41+
font-weight: 400;
42+
}
43+
44+
.font14-bold {
45+
color:white;
46+
font-family: $font;
47+
font-size: 14px;
48+
line-height: 28px;
49+
font-weight: 700;
50+
position: absolute;
51+
}
52+
53+
.side-menu {
54+
background-color: $sidebar-color;
55+
height: 100vh;
56+
width: 55px;
57+
}
58+
59+
.top-menu {
60+
background-color: $sidebar-color;
61+
position: absolute;
62+
top: 0px;
63+
right: 0px;
64+
width: 150px;
65+
height: 50px;
366
}

src/index.html

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
<html ng-app='app'>
22
<header>
3-
4-
5-
<link rel="stylesheet" href="./styles.css">
3+
<link rel="stylesheet" href="./styles.css">
4+
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
65
</header>
6+
77
<body>
8+
<div class="side-menu font14-reg">
9+
<ul>
10+
<li>Home</li>
11+
<li>Kata</li>
12+
<li>Kumite</li>
13+
<li>Forum</li>
14+
<li>Docs</li>
15+
</ul>
16+
</div>
17+
<div class="top-menu">
18+
</div>
19+
<div>
820

921
<div>
22+
1023
<ui-view></ui-view>
11-
</div>
24+
</div>
1225
</body>
1326
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
1427
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script>
1528
<script type='text/javascript' src='./bundle.js'></script>
29+
1630
</html>

0 commit comments

Comments
 (0)