Codingan web html
Codingan web html
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f2f5;
margin: 0;
.login-container {
background-color: white;
width: 300px;
padding: 20px;
border-radius: 8px;
text-align: center;
h1 {
color: #1877f2;
margin-bottom: 20px;
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 4px;
.login-button {
width: 100%;
padding: 10px;
background-color: #1877f2;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
.login-button:hover {
background-color: #165ec9;
</style>
</head>
<body>
<div class="login-container">
<h1>Facebook</h1>
<form id="loginForm">
</form>
</div>
</body>
</html>
CONTOH HALAMAN BERANDA (FEED) SEDERHANA
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beranda Facebook Sederhana</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f2f5;
margin: 0;
}
.navbar {
background-color: #1877f2;
color: white;
padding: 10px;
text-align: center;
}
.feed {
max-width: 600px;
margin: 20px auto;
padding: 10px;
background-color: white;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.post {
padding: 10px;
border-bottom: 1px solid #e0e0e0;
}
.post:last-child {
border-bottom: none;
}
.post h3 {
margin: 0;
font-size: 18px;
}
.post p {
color: #333;
font-size: 14px;
}
</style>
</head>
<body>
<div class="navbar">
<h2>Facebook</h2>
</div>
<div class="feed">
<div class="post">
<h3>Pengguna 1</h3>
<p>Ini adalah posting pertama di feed Anda!</p>
</div>
<div class="post">
<h3>Pengguna 2</h3>
<p>Bagaimana kabarnya hari ini? 😊</p>
</div>
</div>
</body>
</html>