Initial code commit

This commit is contained in:
Alan Bridgeman 2023-06-19 09:15:51 -05:00
parent 80a09db0d7
commit c5268ad9b3
18 changed files with 1560 additions and 0 deletions

5
src/public/css/about.css Normal file
View file

@ -0,0 +1,5 @@
.about-team ul {
list-style: none;
margin: 0;
padding: 0;
}

View file

@ -0,0 +1,13 @@
.skip-link {
position: absolute;
top: -40px;
left: 0;
background-color: #fff;
color: #000;
padding: 10px;
z-index: 999;
}
.skip-link:focus {
top: 0;
}

102
src/public/css/nav.css Normal file
View file

@ -0,0 +1,102 @@
nav {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 20px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hamburger-menu {
display: block;
width: 30px;
height: 30px;
background-color: transparent;
border: none;
cursor: pointer;
}
.hamburger-menu__line {
display: block;
width: 100%;
height: 2px;
background-color: #333;
margin: 5px 0;
transition: transform 0.2s ease-in-out;
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(2) {
opacity: 0;
}
.hamburger-menu[aria-expanded="true"] .hamburger-menu__line:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
.nav-links {
display: none;
list-style: none;
margin: 0;
padding: 0;
}
.nav-links.show {
display: flex;
flex-direction: column;
}
.nav-links li {
margin: 10px 0;
}
.nav-link {
font-family: 'Montserrat', sans-serif;
font-size: 18px;
font-weight: 700;
color: #333;
text-decoration: none;
transition: color 0.2s ease-in-out;
}
.nav-link.active {
color: #0077c2;
}
.nav-link:hover, .nav-link:focus {
color: #0077c2;
}
.nav-links li:last-child a {
background-color: #333;
color: #fff;
padding: 10px 15px;
border-radius: 10%;
}
.nav-links li:last-child a:hover, .nav-links li:last-child a:focus {
background-color: #fff;
color: #333;
}
@media screen and (min-width: 768px) {
nav {
align-items: center;
justify-content: center;
}
.nav-links li {
margin: 0 15px;
}
.hamburger-menu {
display: none;
}
.nav-links {
display: flex;
}
}

81
src/public/css/style.css Normal file
View file

@ -0,0 +1,81 @@
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.content {
position: relative;
min-height: 100%;
padding-bottom: 100px;
}
main {
width: 80%;
height: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
section {
width: 100%;
display: flex;
flex-direction: column;
margin: 0.5rem 0;
}
.homepage-banner {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.homepage-banner__content {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.homepage-banner__title {
font-size: 3rem;
font-weight: 700;
color: #000;
margin-bottom: 1rem;
}
.homepage-banner__text {
font-size: 1.5rem;
font-weight: 400;
color: #000;
margin-bottom: 1rem;
}
.homepage-banner__content img {
width: 100%;
height: 100%;
object-fit: cover;
}
img {
width: 100%;
}
footer {
display: flex;
position: absolute;
bottom: 0;
width: 100%;
height: 100px;
margin-top: auto;
padding: 0;
background-color: #333;
color: #fff;
flex-direction: column;
align-items: center;
justify-content: center;
}

BIN
src/public/img/alan.jpeg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -0,0 +1,9 @@
document.addEventListener('DOMContentLoaded', () => {
const hamburgerMenu = document.querySelector('.hamburger-menu');
const navLinks = document.querySelector('.nav-links');
hamburgerMenu.addEventListener('click', () => {
hamburgerMenu.setAttribute('aria-expanded', hamburgerMenu.getAttribute('aria-expanded') === 'false' ? 'true' : 'false');
navLinks.classList.toggle('show');
});
});