Skip to content

Commit 3324007

Browse files
committed
intial commit
0 parents  commit 3324007

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+12335
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* linguist-language=JavaScript

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ['https://www.buymeacoffee.com/EqeRlzLSc']

.github/main.workflow

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
workflow "New workflow" {
2+
on = "push"
3+
resolves = ["Assignee to reviewer"]
4+
}
5+
6+
action "Assignee to reviewer" {
7+
uses = "pullreminders/[email protected]"
8+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
yarn-error*
4+
./*.html
5+
yarn.lock
6+
package-lock.json

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
sudo: false
3+
node_js:
4+
- 11
5+
install:
6+
- npm install
7+
script:
8+
- npm run build

404.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>DSC - 404 Error</title>
8+
<meta name="viewport" content="width=device-width,initial-scale=1">
9+
<meta name="author" content="DSC University Name">
10+
<meta name="description" content="Access exclusive content from all across the web to make you a better developer. All the content is free.">
11+
<meta name="keywords" content="dsc,developer student clubs,google developers, sub saharan africa, students, technology, computer science">
12+
<link href="src/css/ionicons.min.css" rel="stylesheet">
13+
<link rel="manifest" href="manifest.json">
14+
<meta name="theme-color" content="#2F5BE7">
15+
<link rel="icon" href="images/icon.png" type="image/png">
16+
<link rel="stylesheet" href="src/css/owl.carousel.min.css">
17+
<link rel="stylesheet" href="src/css/bootstrap.min.css">
18+
<link href="https://fonts.googleapis.com/css?family=Google+Sans:400,500,700|Material+Icons" rel="stylesheet" type="text/css">
19+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
20+
<link rel="stylesheet" type="text/css" href="src/css/pace-theme.css">
21+
<link rel="stylesheet" href="src/css/styles.css">
22+
<link rel="stylesheet" href="src/css/responsive.css">
23+
<script>(function (i, s, o, g, r, a, m) {
24+
i['GoogleAnalyticsObject'] = r;
25+
i[r] = i[r] || function () {
26+
(i[r].q = i[r].q || []).push(arguments)
27+
}, i[r].l = 1 * new Date();
28+
a = s.createElement(o),
29+
m = s.getElementsByTagName(o)[0];
30+
a.async = 1;
31+
a.src = g;
32+
m.parentNode.insertBefore(a, m)
33+
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
34+
ga('create', 'UA-124904500-1', 'auto');
35+
ga('send', 'pageview');</script>
36+
</head>
37+
38+
<body class="x-hidden has-sticky-header">
39+
<nav class="navbar navbar-expand-lg fixed-top custom-menu custom-menu__light">
40+
<div class="container"><a class="navbar-brand" href="#"><img src="src/images/icon.png" height="35" alt="Image"> </a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="menu-icon__circle"></span> <span class="menu-icon"><span class="menu-icon__bar"></span> <span class="menu-icon__bar"></span> <span class="menu-icon__bar"></span></span></button>
41+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
42+
<ul class="navbar-nav ml-lg-auto">
43+
<li class="nav-item active"><a class="nav-link" href="index.html">Home <span class="sr-only">(current)</span></a></li>
44+
<li class="nav-item"><a href="learn.html" target="_blank" rel="noopener noreferrer" class="nav-link">Learn</a></li>
45+
<li class="nav-item"><a href="index.html" target="_blank" rel="noopener noreferrer" class="nav-link">Stories</a></li>
46+
</ul>
47+
<div class="custom-menu__right"><a href="#" class="btn btn-primary btn-pills" target="_blank">Submit a project</a></div>
48+
</div>
49+
</div>
50+
</nav>
51+
<div class="container">
52+
<div class="row align-items-center">
53+
<div class="col-12 col-sm-6">
54+
<h2 div="err-p">Did you just freeze?<br>Like an antelope in headlights 🤭</h2><br><a href="index.html" class="hero-button event-btn err">Return to Home</a>
55+
</div>
56+
<div class="col-12 col-sm-5 error"><img class="err-img" src="src/images/assets/error.jpg" alt="illustration of error 404 message"></div>
57+
<script src="src/js/vendors/pace.js"></script>
58+
</div>
59+
</div>
60+
</body>
61+
62+
</html>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Project Vibranium
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SECURITY.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.

gulpfile.js

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
'use strict'
2+
3+
const gulp = require('gulp');
4+
const css = require('gulp-clean-css');
5+
const sourcemaps = require('gulp-sourcemaps');
6+
const connect = require('gulp-connect');
7+
const htmlmin = require('gulp-htmlmin');
8+
const uglify = require('gulp-uglify-es').default;
9+
10+
const paths = {
11+
html: 'src/*.html',
12+
css: 'src/css/**/*.css',
13+
script: 'src/js/**/*.js',
14+
sw: 'src/service-worker.js',
15+
images: 'src/images/**',
16+
vendor: 'src/js/vendors/*.js',
17+
manifest: 'src/manifest.json'
18+
};
19+
20+
const imagemin = require('gulp-imagemin');
21+
22+
const imagesGulp = function() {
23+
return gulp.src(paths.images)
24+
.pipe(imagemin([
25+
imagemin.gifsicle({interlaced: true}),
26+
imagemin.jpegtran({progressive: true}),
27+
imagemin.optipng({optimizationLevel: 5}),
28+
imagemin.svgo({
29+
plugins: [
30+
{removeViewBox: true},
31+
{cleanupIDs: false}
32+
]
33+
})
34+
]))
35+
.pipe(gulp.dest('dist/images'));
36+
};
37+
38+
const gulpCss = function() {
39+
return gulp.src(paths.css)
40+
.pipe(sourcemaps.init())
41+
.pipe(css())
42+
.pipe(sourcemaps.write('.'))
43+
.pipe(gulp.dest('dist/css'));
44+
};
45+
46+
const jsGulp = function() {
47+
return gulp.src(paths.script, {
48+
ignore: [paths.sw, paths.vendor]
49+
})
50+
.pipe(sourcemaps.init())
51+
.pipe(uglify())
52+
.pipe(sourcemaps.write('.'))
53+
.pipe(gulp.dest('dist/js'));
54+
};
55+
56+
const copyManifest = function() {
57+
return gulp.src(paths.manifest)
58+
.pipe(gulp.dest('./'))
59+
};
60+
61+
const swGulp = function() {
62+
return gulp.src(paths.sw)
63+
.pipe(uglify())
64+
.pipe(gulp.dest('./'));
65+
};
66+
67+
const vendorGulp = function() {
68+
return gulp.src(paths.vendor)
69+
.pipe(uglify())
70+
.pipe(gulp.dest('./dist/js/vendors'))
71+
};
72+
73+
const htmlGulp = function() {
74+
return gulp.src(paths.html)
75+
.pipe(htmlmin({
76+
collapseWhitespace: true,
77+
removeComments: true
78+
}))
79+
.pipe(gulp.dest('./'));
80+
};
81+
82+
const watchJS = function() {
83+
return gulp.watch(paths.script, gulp.series(jsGulp, reload));
84+
};
85+
86+
const watchCSS = function() {
87+
return gulp.watch(paths.css, gulp.series(gulpCss, reload));
88+
};
89+
90+
const watchHTML = function() {
91+
return gulp.watch(paths.html, gulp.series(htmlGulp, reload));
92+
};
93+
94+
const server = function() {
95+
return connect.server({livereload: true});
96+
};
97+
98+
const reload = function() {
99+
return gulp.src(paths.html).pipe(connect.reload());
100+
};
101+
102+
const watch = gulp.parallel(
103+
watchCSS, watchJS, watchHTML
104+
);
105+
106+
107+
exports.build = gulp.parallel(imagesGulp, jsGulp, gulpCss, htmlGulp, swGulp, vendorGulp, copyManifest);
108+
109+
exports.watch = gulp.parallel(server, watch);

0 commit comments

Comments
 (0)