Skip to content

feat: implements css to html file in Chanels Lesson 22 #547

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 5 commits into
base: main
Choose a base branch
from
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
Binary file added lesson_22/chanel_mock_site/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/chanel_mock_site/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/chanel_mock_site/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
156 changes: 156 additions & 0 deletions lesson_22/chanel_mock_site/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
.header-logo img {
width: 151px;
height: 50px;
position: relative;
top: 0;
left: 0;
margin: 10px;
z-index: 10;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background-color: #0a1f2c;
position: sticky;
top: 0;
left: 0;
right: 0;
z-index: 4;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: #243e90;
background-color: #fff;
}

h2, h3 {
font-family: 'Poppins', sans-serif;
}

a {
text-decoration: none;
color: inherit;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background-color: #ffffff;
}

.header-top-menu {
display: flex;
list-style: none;
flex-wrap: wrap;
gap: 20px;
}

.header-top-menu li {
margin-left: 20px;
}

.header-top-menu li a {
color: rgb(33, 44, 165);
font-weight: 600;
font-size: 25px;
text-transform: uppercase;
}

.header-top-menu li a:hover {
color: #ff7f32;
}

.header-cta .sign-up-button {
background-color: #ff7f32;
color: white;
padding: 10px 20px;
font-weight: 600;
border-radius: 5px;
text-transform: uppercase;
letter-spacing: 1px;
transition: background-color 0.3s ease;
}

.header-cta .sign-up-button:hover {
/* Hover tool to highlight the button ~ free codecamp*/
background-color: rgb(33, 44, 165);
}

/* Create the Hero Section to mimick the original; ChatGPT helped with these features*/
.hero-section {
position: relative;
background-image: url('hero.jpg');
background-size: cover;
background-position: center;
height: 400px;
display: flex;
justify-content: right;
align-items: center;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}

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

.hero-content {
position: relative;
text-align: left;
color: white;
max-width: 700px;
}

.hero-content span{
color: #ff7f32;
}

.hero-title {
font-size: 36px;
font-weight: 800;
margin-bottom: 5px;
}

.hero-text {
font-size: 21px;
font-weight: 400;
line-height: 1.8;
background: rgb(33, 44, 165);
}
/* Footer */
.footer {
background-color: white;
color: black;
text-align: center;
padding: 20px;
font-size: 14px;
letter-spacing: 0.5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
.header {
flex-direction: row;
align-items: flex-start;
}
}