this is a simple portfolio created by html and css code following below
HTML SOURCE
simply use navbar and with four nav button
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="hero">
<nav>
<h2 class="logo">News <span> city</span></h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Service</a></li>
</ul>
<button type="button">Post</button>
</nav>
</div>
</body>
</html>
CSS SOURCE
simple css use for upper portfolio page
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'josefin sans', sans-serif;
}
.hero{
height: 100vh;
width: 100%;
background-color: rgb(212, 208, 208);
background-size: cover;
background-position: center;
background-image: url(black.jpg);
}
nav{
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 40px;
padding-left: 10%;
padding-right: 10%;
}
.logo{
color: white;
font-size: 28px;
}
span{
color:pink ;
}
nav ul li{
list-style-type: none;
display: inline-block;
padding: 10px 20px;
}
nav ul li a{
color: white;
text-decoration: none;
font-weight: bold;
}
nav ul li a:hover{
color:pink ;
transition: .3s;
}
button{
border: none;
background: pink;
padding: 12px 30px;
border-radius: 30px;
color: white;
font-weight: bold;
font-size: 15px;
transition: .4s;
}
button:hover{
transform: scale(1.3);
cursor: pointer;
}
Comments
Post a Comment