Skip to content

Commit 94073f0

Browse files
committed
implemented typewriter
1 parent 1171a7c commit 94073f0

File tree

13 files changed

+1184
-9
lines changed

13 files changed

+1184
-9
lines changed

dist/assets/images/dp.jpeg

50.9 KB
Loading

dist/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@
77
<title>NJ-Coder</title>
88
<meta name='viewport' content='width=device-width, initial-scale=1'>
99
<link rel='stylesheet' type='text/css' media='screen' href='style.min.css'>
10-
<script src="script.min.js" type="text/javascript"></script>
10+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap" rel="stylesheet">
1111
</head>
1212

1313
<body style="background: #9D50BB;">
14+
<div class="container">
15+
<div class="image">
16+
<div class="img-wrap"></div>
17+
</div>
18+
<div class="typewriter" id="typewriter">
1419

20+
</div>
21+
<div class="links"></div>
22+
</div>
23+
<script src="script.min.js" type="text/javascript"></script>
1524
</body>
1625

1726
</html>

dist/script.js

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/script.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/style.css

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,36 @@ html,
22
body {
33
height: 100%;
44
width: 100%;
5-
margin: 0; }
5+
margin: 0;
6+
font-family: 'Roboto', sans-serif; }
67

78
body {
9+
color: #fff;
810
background: #9D50BB;
911
background: -webkit-linear-gradient(to right, #6E48AA, #9D50BB) !important;
1012
background: linear-gradient(to right, #6E48AA, #9D50BB) !important; }
13+
14+
.container {
15+
height: 100%;
16+
width: 100%;
17+
display: flex;
18+
flex-flow: column;
19+
align-items: center;
20+
justify-content: center; }
21+
.container .image .img-wrap {
22+
border: 2px solid #fff;
23+
background: #fff;
24+
width: 150px;
25+
height: 150px;
26+
border-radius: 50%;
27+
outline: none;
28+
overflow: hidden;
29+
background: url(assets/images/dp.jpeg);
30+
background-size: cover;
31+
background-position-x: center; }
32+
.container .typewriter {
33+
font-size: 2em;
34+
margin-top: 1em;
35+
text-align: center; }
36+
.container .typewriter small {
37+
font-size: 60%; }

dist/style.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const cleanCSS = require('gulp-clean-css');
66
const concat = require('gulp-concat');
77
const rename = require('gulp-rename');
88
const uglify = require('gulp-uglify');
9+
const babel = require('gulp-babel');
910

1011
// deletes the dist folder
1112
gulp.task('clean', require('del').bind(null, ['dist']));
@@ -20,26 +21,35 @@ gulp.task('styles', function () {
2021
.pipe(cleanCSS({ compatibility: 'ie8' }))
2122
.pipe(gulp.dest('dist'));
2223
});
24+
2325
// build js
2426
gulp.task('scripts', function () {
25-
return gulp.src(['./src/**/*.js', './src/**/**/*.js'])
27+
return gulp.src(['./src/libs/**/*.js', './src/main.js'])
28+
//.pipe(babel())
2629
.pipe(concat('script.js'))
2730
.pipe(gulp.dest('dist'))
2831
.pipe(rename('script.min.js'))
2932
.pipe(uglify())
3033
.pipe(gulp.dest('dist'));
3134
});
35+
3236
// build html
3337
gulp.task('html', function () {
3438
return gulp.src(['./src/**/*.html'])
3539
.pipe(gulp.dest('dist'));
3640
});
3741

42+
// build assets
43+
gulp.task('assets', function () {
44+
return gulp.src(['./src/assets/**'])
45+
.pipe(gulp.dest('dist/assets'));
46+
});
47+
3848
// Create a new build in dist folder
3949
gulp.task('build', gulp.series(
4050
'clean',
41-
gulp.parallel('styles', 'html', 'scripts')
51+
gulp.parallel('styles', 'html', 'scripts', 'assets')
4252
));
4353

4454
// Watch for changes.
45-
gulp.task('watch', () => gulp.watch(['./src/*.scss', './src/*/*.scss', './src/**/*.html'], gulp.parallel('styles', 'html')));
55+
gulp.task('watch', () => gulp.watch(['./src/*.scss', './src/**/*.html', './src/**/*.js'], gulp.series('build')));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy