Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JAVASCRIPT ASSIGNMENT</title>
<link rel="stylesheet" href="result.css" />
</head>

<body>
<div class="container">
<section>
<h4>A USSD Banking App</h4>
<p>Created By :</p>
<h2>Layobright</h2>
<button class="start">Click to Start</button>
<h5>TiideLab Cohort3 Assignment</h5>
<br />
<small>
<b>This app works for 7 different banks for now :</b><br />
Polaris -- Wema -- Gtb -- First Bank -- Fidelity -- Eco -- Bank Access
</small>
<p>Don't panic 😌, the app is not real, it's just a test😃</p>
</section>
</div>

<script src="result.js"></script>
<!-- particles.js container -->
<div id="particles-js"></div>

<script src="particles.js"></script>

<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
</body>
</html>
133 changes: 133 additions & 0 deletions particles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// LOADING THE PARTICLES ON WINDOWS LOAD

window.addEventListener('DOMContentLoaded', (event) => {
particlesJS("particles-js",
{
"particles":{
"number":{
"value":95,
"density":{
"enable":true,
"value_area":800
}
},
"color":{
"value":"#151c58"
},
"shape":{
"type":"circle",
"stroke":{
"width":3,
"color":"#00ff00"
},
"polygon":{
"nb_sides":6
},
"image":{
"src":"img/github.svg",
"width":100,
"height":100
}
},
"opacity":{
"value":0.13415509907748635,
"random":true,
"anim":{
"enable":false,
"speed":1,
"opacity_min":0.1,
"sync":false
}

},
"size":{
"value":19.728691040806815,
"random":true,
"anim":{
"enable":true,
"speed":10,
"size_min":40,
"sync":false
}
},
"line_linked":{
"enable":false,
"distance":200,
"color":"#ffffff",
"opacity":1,
"width":2
},
"move":{
"enable":true,
"speed":20,
"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":"grab"
},
"onclick":{
"enable":false,
"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
});
var count_particles, stats, update;
stats = new Stats;
stats.setMode(0);
stats.domElement.style.position = 'absolute';
stats.domElement.style.left = '0px';
stats.domElement.style.top = '0px';
document.body.appendChild(stats.domElement);
count_particles = document.querySelector('.js-count-particles');
update = function() { stats.begin(); stats.end();
if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array){
count_particles.innerText = window.pJSDom[0].pJS.particles.array.length;
}
requestAnimationFrame(update);
};
requestAnimationFrame(update);
});


122 changes: 122 additions & 0 deletions result.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
background: rgb(6, 6, 49);
}


:root {
--primary-color: red;
--white: #fff;
--secondary-color: green;
--tetiary-color: orange;
}

/* =================================== */
/* The section of the container */
/* .container { */
/* height: 100vh; */
/* display: flex;
align-items: center;
justify-content: center; */
/* position: relative; */

/* } */

#particles-js {
height: 100vh;
}


/* ======================================= */
/* The section */
section {
width: 50%;
background: var(--white);
text-align: center;
padding: 20px;
line-height: 40px;
overflow: auto;
position: absolute;
top: 5%;
left: 25%;

/* transform: translate(10%); */
}

section h4 {
color: var(--primary-color);
font-family: monospace;
font-size: 20px;
}

section p {
font-size: 20px;
color: var(--tetiary-color);
font-family: cursive;
}

section h2 {
color: var(--secondary-color);
font-weight: 900;
font-size: 35px;
font-family: Georgia, 'Times New Roman', Times, serif;
letter-spacing: 10px;
text-transform: uppercase;
}

section h5 {
color: var(--primary-color);
font-size: 18px;
font-family: cursive;
}

section button {
padding: 12px 25px;
background: var(--primary-color);
color: var(--white);
border: none;
outline: none;
cursor: pointer;
margin-top: 20px;
}





/* ================================= */
/* The section of the media query */

@media screen and (min-width:1000px) {
section {
top: 20%;
left: 25%;
}
}



@media screen and (max-width:768px) {
section {
width: 85%;
top: 10%;
left: 5%;
}

section h2 {
font-size: 25px;
}
}


@media screen and (max-width:425px) {
section {
width: 95%;
left: 2.5%;
}
}
Loading