Skip to content

Commit

Permalink
Added particles.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed May 14, 2024
1 parent 5c36e7e commit 8ef0fc2
Show file tree
Hide file tree
Showing 18 changed files with 2,582 additions and 41 deletions.
120 changes: 120 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
particlesJS('particles-js',

{
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#619b8A"
},
"shape": {
"type": "circle",
"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": 5,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#a1c181",
"opacity": 0.7,
"width": 1
},
"move": {
"enable": true,
"speed": 6,
"direction": "none",
"random": false,
"straight": false,
"out_mode": "out",
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 1200
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": true,
"mode": "repulse"
},
"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
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true,
"config_demo": {
"hide_card": false,
"background_color": "#b61924",
"background_image": "",
"background_position": "50% 50%",
"background_repeat": "no-repeat",
"background_size": "cover"
}
}

);
110 changes: 110 additions & 0 deletions assets/particles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"particles": {
"number": {
"value": 80,
"density": {
"enable": true,
"value_area": 800
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "circle",
"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": 10,
"random": true,
"anim": {
"enable": false,
"speed": 80,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 300,
"color": "#ffffff",
"opacity": 0.4,
"width": 2
},
"move": {
"enable": true,
"speed": 12,
"direction": "none",
"random": false,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": false,
"rotateX": 600,
"rotateY": 1200
}
}
},
"interactivity": {
"detect_on": "canvas",
"events": {
"onhover": {
"enable": false,
"mode": "repulse"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 800,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 800,
"size": 80,
"duration": 2,
"opacity": 0.8,
"speed": 3
},
"repulse": {
"distance": 400,
"duration": 0.4
},
"push": {
"particles_nb": 4
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
}
74 changes: 59 additions & 15 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ nav {
left: 0;
z-index: 1;
display: flex;
height: 160px;
height: 12vh;
width: 100%;
background-color: rgba(215, 232, 186, 0.3);
align-items: center;
Expand All @@ -25,7 +25,7 @@ nav .logo-container {
}

nav .logo-container img {
height: 10vh;
height: 9vh;
}

nav .nav-links {
Expand Down Expand Up @@ -85,38 +85,82 @@ nav .nav-links a:last-child:hover::before {
/* Styling for the welcome text and image */
.welcome-section {
text-align: center;
background: url('../Images/Mountain_Range.webp'), #32373B;
background-repeat: no-repeat;
background-size: cover;
background-blend-mode: multiply;
padding:200px 0;
height: 100%;
padding: 12vh 0vh;
width: 100%;
}
.image-wrapper {
display: inline-block;
width: 40%;
margin-right: 20px;
margin-right: 10vw;
vertical-align: middle;
height: 100%;
height: 50vh;
}
.image-wrapper img {
display: block;
max-width: 100%;
height: 80%;
height: 100%;
border-radius: 5%;
}

.text-wrapper {
display: inline-block;
width: 60%;
vertical-align: middle;
max-width: 800px;
max-width: max-content;
margin: 0 auto;
height: 80%;
color: #fff;
}
.text-wrapper h1 {
margin-top: 0;
margin-bottom: 0;
font-size: 156px;
font-size: 16vh;
line-height: 1;
}
.text-wrapper h3 {
margin-top: 0;
margin-bottom: 0;
font-size: 8vh;
line-height: 1;
font-family: 'Righteous', cursive;
}

.text-wrapper p {
font-size: 5vh;
margin-top: 1.5vh;
margin-bottom: 0;
line-height: 1;
}

.welcome-section .nav-links {
display: flex;
justify-content: center;
align-items: center;
margin-right: auto;
margin-left: auto;
}

.welcome-section .nav-links a {
display: inline-block;
text-decoration: none;
color: #fff;
padding: 32px 5px;
position: relative;
margin-left: 16px;
}

.text-wrapper img {
height: 48px;
}

#particles-js {
width: 100%;
}

#particles-js .container {
position: absolute;
left: 0;
right: 0;
padding: 13vh;
margin-left: auto;
margin-right: auto;
width: max-content;
}
8 changes: 8 additions & 0 deletions css/utlities.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ h1 {
font-family: 'Righteous', cursive;
}

h3 {
font-family: 'Source Sans Pro', sans-serif;
}

p, a{
font-family: 'Source Sans Pro', sans-serif;
}

#orange {
color: #fe7f2d;
}
Loading

0 comments on commit 8ef0fc2

Please sign in to comment.