Skip to content

Commit

Permalink
Main page
Browse files Browse the repository at this point in the history
  • Loading branch information
Koala3353 committed Mar 25, 2024
1 parent 05cbf4a commit f356615
Show file tree
Hide file tree
Showing 12 changed files with 1,157 additions and 845 deletions.
168 changes: 168 additions & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
html {
font-size: 16px;
font-family: "Prosa GT Demo", sans-serif;
}

body {
overflow-x: hidden;
}

* {
box-sizing: border-box;
}

:root {
--primary-blue: #FED103;
--primary-blue-dark: #4361ee;
--text-white: #F7FAFF;
--text-gray: #B5B8BC;
--text-color: #303651;
--text-color-neutral: #697089;
--card-bg: #00416C;
--bg: #141419;
}

*::selection {
background: var(--primary-blue);
color: var(--text-white);
}

.show-more{
color: #FFFFFF;
}

.show-more:hover{
color: #FED103!important;
}


.pricing-container {
margin: 0 auto;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 4rem 2rem;
}

.pricing-card {
display: flex;
flex-direction: column;
position: relative;
align-items: center;
width: 100%;
max-width: 25rem;
border-radius: 0.5rem;
padding: 2rem;
background: var(--card-bg);
color: var(--text-gray);
transition: all 0.5s ease-in-out;
}

.pricing-card:hover {
transform: translateY(-2rem);
}

.pricing-card--primary {
border-radius: 0 0 0.5rem 0.5rem;
}

.pricing-card__price {
color: var(--text-white);
font-weight: 700;
flex-wrap: wrap;
font-size: 2rem;
}

.pricing-card__banner {
height: 1rem;
width: 100%;
position: absolute;
color: white;
top: -2.5rem;
}

.pricing-card__banner+.pricing-card {
border-radius: 0 0 0.5rem 0.5rem;
}

.pricing-card__price--original {
color: var(--text-gray);
font-weight: 500;
margin-top: 2rem;
font-size: 1.5rem;
}

.pricing-card>h3 {
margin: 0;
font-weight: 700;
text-align: center;
font-size: 2rem;
color: var(--text-white);
}


.pricing-card>.enroll {
display: block;
width: 100%;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
min-height: 3rem;
border-radius: 0.5rem;
color: white;
margin-top: auto;
text-decoration: none;
letter-spacing: 0.75px;
border: 1px solid #E63E30;
background: #E63E30;
transition: all 0.3s ease-in-out;
}

.pricing-card>.enroll:hover {
background: #FED103;
color: #00416C!important;
}

.pricing-card__banner {
width: 100%;
min-height: 2.5rem;
border-radius: 0.5rem 0.5rem 0 0;
background: var(--primary-blue);
color: #00416C;
display: flex;
justify-content: center;
align-items: center;
text-transform: uppercase;
font-weight: 700;
}


.pricing-card>ul {
width: 100%;
display: flex;
margin-top: 2.5rem;
flex-direction: column;
gap: 1rem;
margin-bottom: 2.5rem;
}

.pricing-card>ul>li {
position: relative;
font-weight: 500;
list-style-type: none;
font-size: 0.875rem;
}

.pricing-card>ul>li:before {
content: "";
position: absolute;
top: -0.125rem;
left: -2.25rem;
width: 2rem;
height: 2rem;
background-image: url('./../img/illustrations/404.svg');
background-repeat: no-repeat;
font-size: clamp(1.5rem, 2.5vw, 2rem);
}
Binary file added assets/img/kits/arduino.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/kits/arduino.png
Binary file not shown.
Binary file removed assets/img/kits/pencil.png
Binary file not shown.
Binary file added assets/img/kits/pencils.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/img/kits/suture.png
Binary file not shown.
Binary file added assets/img/kits/watercolor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 22 additions & 22 deletions assets/js/home.js

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions assets/js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const indexes = document.querySelectorAll(".indexes li");
const tabs = document.querySelectorAll(".tab");
const contents = document.querySelectorAll(".tab-content");

function reset() {
for (let i = 0; i < tabs.length; i++) {
indexes[i].style.borderColor = "transparent";
tabs[i].style.zIndex = 0;
tabs[i].classList.remove("active");
contents[i].classList.remove("active");
}
}

function showTab(i) {
indexes[i].style.borderColor = "rgba(211,38,38,0.6)";
tabs[i].style.opacity = 1;
tabs[i].style.zIndex = 5;
tabs[i].classList.add("active");
contents[i].classList.add("active");
}

function activate(e) {
if (!e.target.matches(".indexes li")) return;
reset();
showTab(e.target.dataset.index);
}

const init = () => showTab(0);

window.addEventListener("load", init, false);
window.addEventListener("click", activate, false);
4 changes: 2 additions & 2 deletions fll.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
src="assets/img/fll%20logo%20with%20name%20new.png"
width="111"
style="padding-left: 10px; padding-top: 0px; margin-top: 2px" /><a
href="../../../index.html"
href="./index.html"
style="margin-bottom: 4px"
></a></span
><span style="color: var(--bs-primary)"></span></a
Expand All @@ -121,7 +121,7 @@
class="nav-link nav-abt fs-5 link-light active"
href="/kits.html"
style="font-family: 'Prosa GT Demo'"
>Features</a
>Kits</a
>
</li>
<li class="nav-item">
Expand Down
Loading

0 comments on commit f356615

Please sign in to comment.