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
247 changes: 247 additions & 0 deletions css.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
/*font-family: 'Roboto', sans-serif;*/
@font-face{
font-family:jungle;
src:url(jungle.ttf);
}
*{
max-width:100%;
box-sizing:border-box;
margin:0;
padding:0;
}
header{
display:flex;
justify-content: space-between;
width:100%;
height:140px;
padding:20px;
background:rgba(115,167,136,.8);
margin-bottom:20px;
}
header a{
text-decoration:none;
}
.logo{
background:url(images/logo.png) no-repeat;
background-size:100px;
font-family:jungle;
font-size:3rem;
color:#135e46;
padding-left:100px;
text-shadow:3px 3px black;
transition:.3s;
}
.logo:hover{
transform:translate(10px);
color:white;
}
nav{
display:flex;
width:40%;
justify-content: space-around;
align-items:center;
}
nav a{
font-family:jungle;
color:#b67b65;
font-size:1.8rem;
text-shadow:2px 2px black;
transition:.3s;
}
nav a:hover{
color:white;
transform: scale(1.3);
}
.banner{
display:flex;
width:100%;
height:60vh;
background:url(images/slothStare.jpg) no-repeat;
background-position:center;
background-size:cover;
align-items:center;
margin-bottom:20px;
}
.banner:hover .slothText{
opacity:1;
}
.slothText{
width:30%;
height:auto;
background:rgba(115,167,136,.8);
border-radius:10px;
padding:15px;
margin-right:20px;
color:white;
text-shadow:1px 1px black;
font-family: 'Roboto', sans-serif;
opacity:0;
transition:.5s;
font-size:1.1rem;
}
.meetSloths{
height:50vh;
width:100%;
background:rgba(115,167,136,.8)
}
.sloths{
width:100%;
display:flex;
justify-content: space-evenly;
}
h1{
font-family: 'Roboto', sans-serif;
font-size:1.7rem;
color:white;
text-shadow:2px 2px black;
margin:0 0 40px 30px;
padding-top:40px;
}
.sloths div{
width:25%;
height:30vh;
border:5px white solid;
border-radius:20px;
display:flex;
flex-direction:column;
justify-content: center;
align-items:center;
background-position:center;
background-size:cover;
}
.sloth1{
background:url(images/slothHanging.jpg) no-repeat;
}
.sloth2{
background:url(images/slothClimbing.jpg) no-repeat;
}
.sloth3{
background:url(images/slothChilling.jpg) no-repeat;
}
.sloths div div{
width:70%;
height:auto;
background:rgba(115,167,136,.9);
border-radius:10px;
padding:15px;
font-size:1rem;
color:white;
text-shadow:1px 1px black;
font-family: 'Roboto', sans-serif;
text-align:center;
opacity:0;
transition:.5s;
}
.sloths div:hover div{
opacity:1;
}
footer{
display:flex;
height:10vh;
width:100%;
justify-content: space-evenly;
align-items:center;
}
footer img{
width:50px;
}
footer span{
font-family: 'Roboto', sans-serif;
}
footer a{
text-decoration:none;
font-family: 'Roboto', sans-serif;
color:black;
font-size:1rem;
transition:.3s;
}
footer a:hover{
color:#135e46;
transform:scale(1.2);
}
/*************MOBILE STYLES*****************/
@media(max-width:800px){/*anything less than 800px will inherit the styles*/
header{
display:flex;
flex-direction:column;
justify-content: space-around;
align-items:center;
height:180px;
padding:10px;
margin-bottom:10px;
}
.logo{
background-size:80px;
font-size:2.3rem;
color:#135e46;
padding-left:80px;
}
nav{
display:flex;
width:100%;
justify-content: space-evenly;
}
nav a{
font-size:1.5rem;
}
.banner{
display:flex;
width:100%;
height:60vh;
align-items:center;
margin-bottom:20px;
}
.banner:hover .slothText{
opacity:1;
}
.slothText{
width:100%;
padding:10px;
margin-right:20px;
opacity:1;
font-size:.9rem;
position: relative;
top:30%;
}
.meetSloths{
height:auto;
width:100%;
background:rgba(115,167,136,.8);
text-align:center;
}
.sloths{
width:100%;
display:flex;
flex-direction:column;
justify-content: space-evenly;
align-items:center;
}
h1{
font-size:1.5rem;
}
.sloths div{
width:90%;
height:35vh;
margin-bottom:20px;
}
.sloths div div{
width:90%;
height:auto;
padding:10px;
font-size:1rem;
text-align:center;
opacity:1;
position: relative;
top:35%;
}
footer{
display:flex;
flex-direction:column;
height:15vh;
}
footer img{
display:none;
}
}/*closing media query bracket*/
62 changes: 62 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css.css">
<link rel="shortcut icon" href="images/favicon.png">
<title>Sloth Sanctum - Enjoying Life in the Slow Lane</title>

</head>
<body>
<header>
<a href="index.html">
<div class="logo">
SLOTH<br>
SANCTUM
</div>
</a>
<nav>
<a href="#">HOME</a>
<a href="#">ABOUT</a>
<a href="#">CONTACT</a>
</nav>


</header>
<section class="banner">
<div class="slothText">
<h2>Sloths Are Great</h2>
<p>Sloths are a group of arboreal Neotropical xenathran mammals, constituting the suborder Folivora. Noted for their slowness of movement, they spend most of their lives hanging upside down in the trees of the tropical rainforests of South America and Central America.</p>
</div>
</section>
<section class="meetSloths">
<h1>Come Meet Our Friendly Sloths!</h1>
<div class="sloths">
<div class="sloth1">
<div>
<span>Flash</span>
Works at the DMV, puts everyone to shame with the speed of his service
</div>
</div>
<div class="sloth2">
<div>
<span>Priscilla</span>
She works with Flash, she's awesome.
</div>
</div>
<div class="sloth3">
<div>
<span>Sid</span>
He's been around since the ice age.
</div>
</div>
</div>
</section>
<footer>
<img src="images/logo.png">
<span>Copyright &copy;2020</span>
<a href="tel:8009997777">Call a Sloth</a>
</footer>
</body>
</html>