Professional Documents
Culture Documents
makalah pro
makalah pro
WEB PROGRAMING
INDEX.HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Web TI-B 2024</title>
</head>
<body>
<!-- header -->
<header>
<div class="logo">
<img src="images/logo.png" alt="" width="30px">
</div>
<div class="dropdown">
<button class="dropbtn">
<img src="images/gambar.jpeg" alt="" width="30px" class="avatar">
</button>
<div class="dropdown-content">
<a href="#">profil</a>
<a href="#">setting</a>
<a href="#">keluar</a>
</div>
</div>
</header>
</section>
<!-- PADA BAGIAN INI SILAHKAN TAMBAHKAN FORM KONTAK SESUAI YANG TELAH
KALIAN PELAJARI-->
</section>
</main>
</body>
</html>
STYLE.CSS
body{
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: #ddd;
}
header{
position: sticky;
top: 0;
z-index: 1000;
background-color: #003285;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
}
.avatar{
vertical-align: middle;
width: 30px;
height: 30px;
border-radius: 50%;
margin-left: 10px;
}
.dropbtn{
background-color: #003285;
color: #fff;
padding: 10px;
font-size: 16px;
border: none;
cursor: pointer;
display: flex;
align-items: center;
}
.dropdown{
position: relative;
display: inline-block;
}
.dropdown-content{
display: none;
position: absolute;
background-color: #fff;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a{
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover{
background-color: #f1f1f1f1;
}
.dropdown:hover .dropdown-content{
display: block;
}
nav ul{
position: sticky;
top: 0;
list-style-type: none;
padding: 0;
margin: 0;
background-color: #ffbb3e;
overflow: hidden;
}
nav ul li{
float: left;
}
nav ul li a{
display: block;
padding: 20px;
text-decoration: none;
color: #fff;
}
nav ul li a:hover{
background-color: #99b4e0d3;
}
/* hero */
.hero{
background-image: url('images/gambar.jpeg');
background-size: cover;
background-position: center;
height: 50vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: #fff;
}
.hero-content{
max-width: 800px;
padding: 20px;
}
.hero-content h2{
font-size: 3em;
margin-bottom: 20px;
}
.hero-content p{
font-size: 1.2em;
margin-bottom: 20px;
}
.hero-content .btn{
display: inline-block;
padding: 10px 20px;
background-color: #003285;
color: #fff;
border-radius: 25px;
transition: background-color 0.3s;
}
.hero-content a{
text-decoration: none;
}
.hero-content .btn:hover{
background-color: #ffbb3e;
}
/* bagian main */
main{
padding: 20px;
}
section{
margin-bottom: 20px;
padding: 20px;
border-radius: 10px;
border: 2px solid #ccc;
background-color: #fff;
}
footer{
background-color: #003285;
color: #fff;
text-align: center;
padding: 20px;
}
img{
display: block;
margin: 0 auto;
border-radius: 10px;
}
video{
display: block;
margin: 0 auto;
border-radius: 10px;
}