Skip to content

Commit

Permalink
giftcard page is added
Browse files Browse the repository at this point in the history
  • Loading branch information
MuraliDharan7 committed Jun 10, 2024
1 parent c58fe54 commit 36279ee
Show file tree
Hide file tree
Showing 12 changed files with 173 additions and 0 deletions.
Binary file added gift-card-page/images/apple.webp
Binary file not shown.
Binary file added gift-card-page/images/blackberry.webp
Binary file not shown.
Binary file added gift-card-page/images/cinema.webp
Binary file not shown.
Binary file added gift-card-page/images/flipkart.webp
Binary file not shown.
Binary file added gift-card-page/images/giftcard11.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 added gift-card-page/images/myntra.webp
Binary file not shown.
Binary file added gift-card-page/images/tanishq.webp
Binary file not shown.
Binary file added gift-card-page/images/trends.webp
Binary file not shown.
Binary file added gift-card-page/images/uber.webp
Binary file not shown.
Binary file added gift-card-page/images/zomato.webp
Binary file not shown.
70 changes: 70 additions & 0 deletions gift-card-page/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flipkart Header</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="header">
<div class="container">
<div class="logo">
Flipkart
</div>
<div class="search-bar">
<input type="text" placeholder="Search for products, brands and more">
<button>Search</button>
</div>
<nav class="nav-links">
<a href="#">Login</a>
<a href="#">More</a>
<a href="#">Cart</a>
</nav>
</div>
</header>
<main class="main-content">
<div class="poster">
<img src="images/giftcard11.jpg" alt="Gift Card Poster">
</div>
<div class="gift-cards">
<div class="gift-card">
<img src="images/zomato.webp" alt="Gift Card 2">
<p>$10</p>
</div>
<div class="gift-card">
<img src="images/apple.webp" alt="Gift Card 3">
<p>$20</p>
</div>
<div class="gift-card">
<img src="images/myntra.webp" alt="Gift Card 4">
<p>$30</p>
</div>
<div class="gift-card">
<img src="images/cinema.webp" alt="Gift Card 5">
<p>$40</p>
</div>
<div class="gift-card">
<img src="images/flipkart.webp" alt="Gift Card 6">
<p>$50</p>
</div>
<div class="gift-card">
<img src="images/tanishq.webp" alt="Gift Card 7">
<p>$60</p>
</div>
<div class="gift-card">
<img src="images/trends.webp" alt="Gift Card 8">
<p>$70</p>
</div>
<div class="gift-card">
<img src="images/uber.webp"Gift Card 9">
<p>$80</p>
</div>
<div class="gift-card">
<img src="images/blackberry.webp" alt="Gift Card 10">
<p>$90</p>
</div>
</div>
</main>
</body>
</html>
103 changes: 103 additions & 0 deletions gift-card-page/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
body {
margin: 0;
font-family: Arial, sans-serif;
}

.header {
background-color: #2874f0;
padding: 10px 0;
color: white;
}

.container {
display: flex;
align-items: center;
justify-content: space-between;
width: 90%;
margin: 0 auto;
}

.logo {
font-size: 24px;
font-weight: bold;
}

.search-bar {
display: flex;
flex: 1;
max-width: 600px;
margin: 0 20px;
}

.search-bar input {
width: 100%;
padding: 10px;
border: none;
border-radius: 2px 0 0 2px;
}

.search-bar button {
padding: 10px;
background-color: #ff5722;
border: none;
color: white;
border-radius: 0 2px 2px 0;
cursor: pointer;
font-weight: bold;
}

.nav-links a {
margin-left: 20px;
color: white;
text-decoration: none;
font-weight: bold;
}

.nav-links a:hover {
text-decoration: underline;
}

.main-content {
padding: 20px;
text-align: center;
}

.poster img {
width: 100%;
height: auto;
display: block;
}

.gift-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 20px;
}

.gift-card {
border: 1px solid #ddd;
padding: 10px;
border-radius: 5px;
text-align: center;
background-color: #f9f9f9;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-card img {
max-width: 100%;
height: auto;
border-radius: 5px;
}

.gift-card p {
margin-top: 10px;
font-size: 18px;
font-weight: bold;
color: #333;
}

.gift-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

0 comments on commit 36279ee

Please sign in to comment.