Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/home page #40

Merged
merged 14 commits into from
Jan 6, 2020
Binary file added app/assets/fonts/devicon.ttf
Binary file not shown.
Binary file added app/assets/fonts/devicon.woff
Binary file not shown.
Binary file added app/assets/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added app/assets/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added app/assets/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file added app/assets/images/mountains.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
118 changes: 118 additions & 0 deletions app/assets/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/* sweetScroll load */
document.addEventListener("DOMContentLoaded", function () {
new SweetScroll({/* some options */});

/* particlesJS.load(@dom-id, @path-json, @callback (optional)); */
particlesJS('particles-js', {
"particles": {
"number": {
"value": 30,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#5B6E5C"
},
"shape": {
"type": "polygon",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 5
},
"image": {
"src": "img/github.svg",
"width": 100,
"height": 100
}
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 3,
"random": true,
"anim": {
"enable": false,
"speed": 19.18081918081918,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#5B6E5C",
"opacity": 0.4,
"width": 1
},
"move": {
"enable": true,
"speed": 4,
"direction": "none",
"random": true,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 1200
}
},
nb: 80
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": false,
"mode": "grab"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 400,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
});

}, false);
1 change: 1 addition & 0 deletions app/assets/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions app/assets/js/sweet-scroll.min.js

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions app/assets/stylesheets/_about.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@import "lib/normalize";
@import "lib/fontawesome";
@import "lib/devicon";

@import 'base';
@import 'vars';
@import 'animation';
@import 'header';
@import 'projects';
@import 'footer';

#about {
width: 90%;
margin: 0 auto;
max-width: 960px;
@media only screen and (min-width: $cut) {
width: 80%;
}
}

.tech {
margin: 10px;
}

.user {
text-align: center;
font-size: 60px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
p {
font-size: 16px;
}
@media only screen and (min-width: $cut) {
flex-wrap: nowrap;
font-size: 75px;
}
}

.user-details {
text-align: center;
margin: 5px auto;
}
43 changes: 43 additions & 0 deletions app/assets/stylesheets/_animation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@-webkit-keyframes pulse {
from {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter: alpha(opacity=40);
opacity: .4;
top: 0;
}
50% {
-ms-filter: none;
-webkit-filter: none;
filter: none;
opacity: 1;
top: -10px;
}
to {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter: alpha(opacity=40);
opacity: .4;
top: 0;
}
}

@keyframes pulse {
from {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter: alpha(opacity=40);
opacity: .4;
top: 0
}
50% {
-ms-filter: none;
-webkit-filter: none;
filter: none;
opacity: 1;
top: -10px
}
to {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
filter: alpha(opacity=40);
opacity: .4;
top: 0
}
}
44 changes: 44 additions & 0 deletions app/assets/stylesheets/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@import url('https://fonts.googleapis.com/css?family=Montserrat');

body {
margin: 0;
padding: 0;
font-size: 100%;
line-height: 1.5;
color: #555;
font-family: 'Montserrat', sans-serif;
}
article, aside, figcaption, figure, footer, header, nav, section {
display: block;
}
h1, h2, h3, h4, stong {
margin-top: 1em;
padding-top: 1em;
line-height: 1.25;
color: #333;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1rem;
}
ul, ol {
margin: 1em 0;
padding-left: 40px;
}
p, figure {
margin: 1em 0;
}
a img {
border: none;
}
sup, sub {
line-height: 0;
}
31 changes: 31 additions & 0 deletions app/assets/stylesheets/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@import "lib/normalize";
@import "lib/fontawesome";
@import "lib/devicon";

@import 'base';
@import 'vars';
@import 'animation';
@import 'header';
@import 'projects';

.footer {
background: $main;
padding: 10px 0;
margin-top: 100px;
text-align: center;
color: #5B6E5C;
.love {
color: red;
}
a {
text-decoration: none;
margin: 0;
color: #5B6E5C;
&:hover{
color: $sec;
}
&:active {
color: $sec;
}
}
}
Loading