Skip to content
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
101 changes: 101 additions & 0 deletions 8.Fancy_Hats-Transitions/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
*{
margin: 0;
padding:0;

box-sizing: border-box;
overflow: auto;
}
body{
background: url('../images/background-image.png');
background-size: cover;
background-color: #c4c0c0;
background-blend-mode: multiply;
font-family: 'Roboto Condensed', sans-serif;
font-weight: 700;
text-transform: uppercase;
color: #fff;
}
a{
text-decoration: none;
color: #fff;
}
/* Toggle Transition Menu Bar */
.menu-bar-icon{
position: absolute;
top: 45px;

width: 90px;
height: 90px;

display: flex;
justify-content: center;
align-items: center;

font-weight: 300;
font-size: 35px;
background-color: #000;
}
.menu-bar-content{
position: absolute;
top:135px;
padding: 30px 70px 10px 75px;
text-align: center;
font-weight: 400;
font-size: 20px;
line-height: 50px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
background-color: #000;

transform: translateX(-270px);
transition: transform 2s;
}
.menu-bar-wrapper:hover .menu-bar-content{
transform: translateX(0px);
}
/* .menu-bar-wrapper:not(:hover) .menu-bar-content{
transform: translateX(-270px);
transition: transform 2s;
} */

/* Content for the page */
.content-heading{
position: absolute;
top:45px;
/* left:640px; */
left: 50%;
transform: translateX(-50%);
font-size: 80px;
}
.content-year{
position: absolute;
top:85px;
right: 15px;
font-size: 65px;

transform: rotate(270deg) translateX(-100px) translateY(120px);
}
.content-year span{
font-size: 120px;
}
.content-description{
position: absolute;
bottom:35px;
left:565px;
/* left: 50%;
transform: translateX(-30%); */
font-size: 120px;
}
.content-description span{
font-size: 160px;
}

.content-social-icons{
position: absolute;
bottom: 15px;
right: 25px;
font-size: 35px;
}
.content-social-icons > *{
margin: 0px 7px 0px 0px;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions 8.Fancy_Hats-Transitions/images/hat-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions 8.Fancy_Hats-Transitions/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fancy Hats</title>

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ==" crossorigin="anonymous" referrerpolicy="no-referrer"/>


<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- ======================MAIN CONTENT=========================== -->
<!-- Toggle Transition Menu Bar -->
<div class="menu-bar-wrapper">
<div class="menu-bar-icon">
<i class="fa fa-bars"></i>
</div>
<ul class="menu-bar-content">
<li><img src="images/hat-icon.svg" alt="Hat Icon"/></li>
<li><a href="#">Cowboy Hats</a></li>
<li><a href="#">Dad Hats</a></li>
<li><a href="#">Fedoras</a></li>
<li><a href="#">Tribal Hats</a></li>
<li><a href="#">Flat Caps</a></li>
<li><a href="#">Derby Hats</a></li>
<li><a href="#">Army Caps</a></li>
<li><a href="#">Cloche Hats</a></li>
<li><a href="#">Beanies</a></li>
<li><a href="#">Traper Hats</a></li>
<li><a href="#">Snapbacks</a></li>
<li><a href="#">Trucker Hats</a></li>
<li><a href="#">Visors</a></li>
</ul>
</div>

<!-- Content for the page -->
<h1 class="content-heading">Fancy hats</h1>
<p class="content-year">Since <span>1867</span></p>
<p class="content-description">Hats for a <span>Lifetime</span></p>
<div class="content-social-icons">
<div class="fa-brands fa-twitter"></div>
<div class="fa-brands fa-facebook"></div>
</div>
</body>
</html>