Skip to content
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

Exercise 6 #7

Open
wants to merge 2 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
187 changes: 187 additions & 0 deletions Exercise-6/css/styling.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
*{
margin: 0%;
box-sizing: border-box;
background-color: #2a2b30
}
img{
width: 100%;
}
.dropbtn {
padding: 34px;
border-color: #343333;
border: solid;
border-radius: 50%;
margin-bottom: 15px;
background-color: #d8d8d8;
}
.fashion-layout{
margin: 77px 100px 1250px 118px;
}
.dropdown {
position: relative;
display: inline-block;
left: 92.5%;
bottom: 85px;
}
.card{
float: left;
width: 25%;
padding: 25px;
}
.caption{
color: #e3e3e4;
padding-top: 15px;
font-size: 23px;
letter-spacing: 0.5px;
font-family: "Roboto", sans-serif;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
width: 265px;
z-index: 1;
right: 0%;
padding: 18px 0px 16px 22px;
}
.dropdown-content a {
color: black;
font-weight: bold;
padding: 8px;
text-decoration: none;
display: block;
font-family: "Roboto", sans-serif;
background-color: #f1f1f1;
}
.logo-header{
width: 100%;
margin-left: 24px;
}
.shirt-set{
position: relative;
bottom: 60px;
}
.next-shirt-set{
position: relative;
bottom: 50px;
}
.black-container{
position: relative;
width: 325px;
height: 410px;
background-color: #24252a;
}
.image{
position: absolute;
top: 22%;
left: 21%;
width: 180px;
height: 240px;
background-color: #24252a;
}
.pink-shirt{
width: 178px;
height: 250px;
top: 21%;
}
.round-neck{
width: 242px;
left: 12%;
}
.sweatshirt{
width: 230px;
height: 250px;
left: 13%;
top: 20%;
}
.green-circle{
position: absolute;
background-color: #88b181;
border-radius: 50%;
border: solid #88b181;
width: 56px;
height: 56px;
top: 378px;
right: 7%;
}
.mystar{
position: absolute;
background-color: #24252a;
font-size: 24px;
top:5%;
right: 7%;
color: #88b181;
}
.shirt-size{
position: absolute;
color: #111111;
bottom: 25%;
right: 35%;
background-color: #88b181;
font-size: 24px;
font-weight: 500;
font-family: "Roboto", sans-serif;
}
.medium-size{
right: 30%;
}
.logo{
width: 190px;
height: 70px;

}
button{
color: #979797;
border: 1px solid #979797;
width: 143px;
font-size: 16px;
font-weight: 500;
padding: 10px;
font-family: "Roboto", sans-serif;
}
.dropdown-content a:hover {background-color: #ddd;}
.dropbtn:hover {cursor: pointer;}
.dropdown:hover .dropdown-content {display: block; }
.price{
color: #979797;
font-size: 22px;
padding: 6px 0px 12px 0px;
font-family: "Roboto", sans-serif;
}
button:hover{
cursor: pointer;
background-color: #979797;
color: #111111;
}
.mystar:hover{
cursor: pointer;
}
ul{
list-style-type: none;
margin: 0;
padding: 9px 0px 9px 525px;
position: fixed;
bottom: 0;
background-color: black;
width: 100%;
}
li{
float: left;
}
li a{
display: block;
color: #dbdbdb;
font-size: 23px;
background-color: black;
font-family: 'Roboto', sans-serif;
font-weight: 500;
text-align: center;
padding: 30px;
text-decoration: none;
}
li a:hover{
cursor: pointer;
}
.logo:hover{
cursor: pointer;
}
143 changes: 143 additions & 0 deletions Exercise-6/exercise6.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<!DOCTYPE html>
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/styling.css">
<title>SHIRTS</title>
</head>
<body>
<div class="fashion-layout">
<div class="logo-header">
<!-- START:: OUR LOGO -->
<div class="logo"><img src="products/logo.png" alt="Product Logo"></div>
<!-- END:: OUR LOGO -->
<div class="dropdown">
<div class="dropbtn"></div>
<div class="dropdown-content">
<a href="#">My Account</a>
<a href="#">My Orders</a>
<a href="#">My Wish List</a>
<a href="#">Logout</a>
</div>
</div>
</div>
<!-- START:: SHIRT COLLECTIONS-->
<!--Several shirts are available-->
<div class="shirt-set">
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image" src="products/shirt.png" alt="Bath Wardrobe">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Bath Wardrobe</p>
<p class="price">₹ 850</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image pink-shirt" src="products/jacket.png" alt="Winter Jacket">
<div class="green-circle">
<div class="shirt-size medium-size">M</div>
</div>
</div>
<p class="caption">Winter Jacket</p>
<p class="price">₹ 2399</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image round-neck" src="products/tshirt.png" alt="Red Round Neck">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Red Round Neck</p>
<p class="price">₹ 350</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image sweatshirt" src="products/sweatshirt.png" alt="Sweat Shirt">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Sweat Shirt</p>
<p class="price">₹ 1350</p>
<button>ADD TO CART</button>
</div>
</div>
<div class="next-shirt-set">
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image" src="products/shirt.png" alt="Bath Wardrobe">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Bath Wardrobe</p>
<p class="price">₹ 850</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image pink-shirt" src="products/jacket.png" alt="Winter Jacket">
<div class="green-circle">
<div class="shirt-size medium-size">M</div>
</div>
</div>
<p class="caption">Winter Jacket</p>
<p class="price">₹ 2399</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image round-neck" src="products/tshirt.png" alt="Red Round Neck">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Red Round Neck</p>
<p class="price">₹ 350</p>
<button>ADD TO CART</button>
</div>
<div class="card">
<div class="black-container">
<i class="fa fa-star-o mystar"></i>
<img class="image sweatshirt" src="products/sweatshirt.png" alt="Sweat Shirt">
<div class="green-circle">
<div class="shirt-size">S</div>
</div>
</div>
<p class="caption">Sweat Shirt</p>
<p class="price">₹ 1350</p>
<button>ADD TO CART</button>
</div>
</div>
<!-- END:: SHIRT COLLECTIONS-->
</div>
<!-- START:: OTHER COLLECTIONS-->
<div>
<ul>
<li><a href="#">Jackets</a></li>
<li><a href="#">Shirts</a></li>
<li><a href="#">Trousers</a></li>
<li><a href="#">Pants</a></li>
<li><a href="#">Shoes</a></li>
</ul>
</div>
<!-- END:: OTHER COLLECTIONS-->
</body>
</html>
Binary file added Exercise-6/products/jacket.png
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 Exercise-6/products/logo.png
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 Exercise-6/products/shirt.png
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 Exercise-6/products/sweatshirt.png
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 Exercise-6/products/tshirt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion README.md

This file was deleted.