Skip to content

Feat: adds Khayla's Styled CSS Assignment #561

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -15,4 +15,5 @@
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"liveServer.settings.port": 5501,
}
Binary file added lesson_22/ksaunders-cd-clone/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions lesson_22/ksaunders-cd-clone/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<html>
<head>
<title>Homepage</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" id="redux-google-fonts-salient_redux-css" href="https://fonts.googleapis.com/css?family=Poppins%3A600%2C400%7CMontserrat%3A800%2C900%2C700&amp;ver=1597678827" type="text/css" media="all">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins%3A600%2C400%7CMontserrat%3A800%2C900%2C700&#038;ver=1597678827' type='text/css' media='all' />
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header class="header">
<div class="header-logo">
<a href="index.html">
<img src="logo.png" alt="Code Differently Logo" />
</a>
</div>
<ul class="header-top-menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
<div class="header-cta">
<a class="sign-up-button" href="#">Sign Up</a>
</div>
</header>
<div class="main">
<div class="content">
<article>
<section class="hero-section">
<div class="hero-overlay"></div>
<div class="hero-content">
<h2 class="hero-title">Together we can move the needle of <em class="highlight">diversity in tech.</em></h2>
<div class="hero-text"><span>Code Differently</span> provides hands on training and education through coding classes that gives participants the technical and cognitive skills they need to excel in technology-driven workplaces.</div>
</div>
</section>
<section class="programs-section">
<h2>Our <em class="highlight">Programs</em></h2>
<ul class="programs">
<li class="program">
<h3>1000 Kids Coding</h3>
<p>The Code Differently 1000 Kids Coding program was created to expose New Castle County students to computing and programming. The 1000 Kids Coding courses are designed for all experience levels, no experience required.</p>
</li>
<li class="program">
<h3>Return Ready</h3>
<p>The Code Differently Workforce Training Initiatives were created to help individuals underrepresented in tech reinvent their skills to align with the changing workforce market. If you are ready to start your tech journey, join our talent community today.</p>
</li>
<li class="program">
<h3>Pipeline DevShops</h3>
<p>Pipeline DevShop is a youth work-based learning program. Youth participants experience working in a real software development environment while sharpening their technology and soft skills.</p>
</li>
<li class="program">
<h3>Platform Programs</h3>
<p>Platform programs are designed for high school graduates, college students, career changers, or professionals looking to develop the technology job readiness skills for today’s workforce.</p>
</li>
</ul>
</section>
</article>
</div>
</div>
<footer class="footer">
&copy; 2024 Code Differently
</footer>
</body>
</html>
Binary file added lesson_22/ksaunders-cd-clone/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
257 changes: 257 additions & 0 deletions lesson_22/ksaunders-cd-clone/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
/* === Reset and Base === */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Poppins', sans-serif;
background-color: #fff; /* You can change this */
color: #222; /
p {
line-height: 24px;
}
}

/* === Header === */
.header {
top: 0;
position: sticky;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
color: #3c3c3c;
}

.header-logo img {
max-width: 150px;
}

.header-top-menu {
list-style: none;
display: flex;
}

.header-top-menu li {
margin: 0 15px;
}



.header-top-menu a {
color: #3c3c3c;
text-decoration: none;
font-weight: 600;
}

.header-top-menu li::after {
content: "";
position: relative;
display: block;
width: 100%;
height: 2px;
background-color: #f47d26;
transform: scaleX(0);
transition: transform 0.3s ease;
}

.header-top-menu li:hover::after {
transform: scaleX(1);
}

.header-cta .sign-up-button {
background-color: #f47d26; /* Secondary color */
color: #fff;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}


.hero-section {
background: url('hero.jpg') center/cover no-repeat;
color: #fff;
padding: 4rem 2rem;
position: relative;
min-height: 60vh;
padding-left: 0;

}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
text-align: center;
}

.hero-title {
font-size: 54px;
margin: 0px 0px 7px ;
font-family: 'Montserrat';
font-weight: 800;
line-height: 1.4;
margin-bottom: 20px;
color: #fff;
}

em.highlight{
color: #fff;
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-color: #f47d26;
text-decoration-thickness: 10px;
text-decoration-skip-ink: none;
}



.hero-text {
font-size: 20px;
font-family: 'poppins';
background-color: #243e90;
padding-top: 3%;
padding-bottom: 3%;
padding-right: 8%;
padding-left: 8%;
}

/* Programs section styles */

.programs {
display: grid;
grid-template-columns: 1fr 1fr;
/* Two columns */
gap: 20px;
max-width: fit-content;
}

.programs-section {
padding: 160px;
margin-left: 60px;
font-size: 25px;
color: #444;
}

.programs-section h2 {
font-weight: 900;
margin-bottom: 70px;
color: #444444;
font-size: 27.2;
font-family: 'Montserrat';
}

.programs-section h2 .highlight {
font-style: normal;
color: #444444;
font-size: 27.2;
font-family: 'Montserrat';
padding: 0px 3px;
text-underline-offset: 1px;
}

.programs-section li {
list-style: none;
}

.programs li h3 {
margin-bottom: 40px;
font-size: 22px;
}

.programs li p {
font-weight: lighter;
font-family: 'Poppins';
color: #676767;
font-size: small;
font-weight: 400;
}
.footer {
text-align: center;
color: #3c3c3c;
margin: 3px 0px 0px;
font: 14px 'Poppins';
}
/* === Media Queries for Responsiveness === */

/* Tablets */
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
padding: 15px;
}

.header-top-menu {
flex-direction: column;
align-items: flex-start;
width: 100%;
gap: 10px;
}

.hero-title {
font-size: 36px;
}

.hero-text {
font-size: 18px;
padding: 20px;
}

.programs {
grid-template-columns: 1fr; /* Stack programs vertically */
padding: 0 20px;
}

.programs-section {
padding: 60px 20px;
margin-left: 0;
font-size: 20px;
}
}

/* Phones */
@media (max-width: 480px) {
.header-logo img {
max-width: 120px;
}

.hero-title {
font-size: 28px;
}

.hero-text {
font-size: 16px;
padding: 15px;
}

.programs-section h2 {
font-size: 22px;
}

.programs li h3 {
font-size: 18px;
margin-bottom: 20px;
}

.programs li p {
font-size: 14px;
}

.header-top-menu {
gap: 5px;
}

}