Skip to content

Commit

Permalink
Hero section changed (#15)
Browse files Browse the repository at this point in the history
![1](https://github.com/user-attachments/assets/9659d22d-9c80-4b0e-bef5-e35e0a403d83)

Changed the font of the website and made UI of Hero section better.
Resolves #5
  • Loading branch information
GarimaSingh0109 authored Oct 1, 2024
2 parents 4e314ec + 4134492 commit d0a5c7b
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 7 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Waste Management</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap" rel="stylesheet">
</head>
<body>
<header>
Expand All @@ -20,8 +21,11 @@ <h1>Waste Management</h1>
</header>

<section class="hero">
<h2>Manage Your Waste Effectively</h2>
<p>Join us in making a cleaner, greener planet.</p>
<div class="hero-content">
<h2>Manage Your Waste Effectively</h2>
<p>Join us in making a cleaner, greener planet.</p>
<a href="#features" class="hero-btn">Explore Features</a>
</div>
</section>

<main>
Expand Down
75 changes: 70 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
body {
font-family: Arial, sans-serif;
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: #e0f7fa; /* Light blue background */
}

header {
background-color: #00796b;
/* Teal color */
background-color: #00796b; /* Teal color */
color: white;
padding: 15px;
display: flex;
Expand Down Expand Up @@ -36,10 +35,76 @@ nav ul li a {
}

.hero {
background-color: #004d40; /* Darker teal */
background: linear-gradient(rgba(0, 77, 64, 0.7), rgba(0, 77, 64, 0.8)), url('https://images.unsplash.com/photo-1628638428099-48fc6fdb98c2?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
color: white;
padding: 40px;
padding: 80px 20px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 55vh;
}

.hero h2 {
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
max-width: 600px;
}

.hero-btn {
background-color: #26a69a;
color: white;
padding: 12px 24px;
text-decoration: none;
border-radius: 25px;
font-size: 1.1rem;
transition: background-color 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
background-color: #004d40;
}

@media (max-width: 768px) {
.hero h2 {
font-size: 2rem;
}

.hero p {
font-size: 1rem;
}

.hero-btn {
padding: 10px 20px;
font-size: 1rem;
}
}

@media (max-width: 480px) {
.hero {
padding: 60px 15px;
}

.hero h2 {
font-size: 1.8rem;
}

.hero p {
font-size: 0.9rem;
}

.hero-btn {
padding: 8px 18px;
font-size: 0.9rem;
}
}

main {
Expand Down

0 comments on commit d0a5c7b

Please sign in to comment.