Membuat Tampilan Seperti Telegram Dengan HTML & CSS

 Membuat Tampilan Seperti Telegram Dengan HTML & CSS



1. Membuat Halaman Index
          Dengan Source Code Seperti Dibawah ini :
           
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TELEGRAM</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<div class="header">
<img src="assets/list.svg" alt="menu" class="menu">
<input type="text" name="search" placeholder="Search">
</div>
<div class="content">
<div class="card">
<img src="assets/person-circle.svg" alt="person" class="profile">
<h4>Jonathan</h4>
<p>Jonathan joined Telegram</p>
</div>
<div class="card">
<img src="assets/person-circle.svg" alt="person" class="profile">
<h4>Angel</h4>
<p>Angel joined Telegram</p>
</div>
<div class="card">
<img src="assets/person-circle.svg" alt="person" class="profile">
<h4>Rendi</h4>
<p>Rendi joined Telegram</p>
</div>
</div>
</div>
</body>
</html>

2. Membuat File Style
Menggunakan CSS dan buat file dengan nama style.css

body {
background-image: url('assets/download.png');
margin: 0;
padding: 0;
}

.container{
background-color: white;
height: 660px;
width: 350px;
}

.header {
background-color: white;
width: 350px;
height: 75px;
}

.menu {
width: 100px;
height: 35px;
margin-top: 20px;
float: left;
}

input {
margin-top: 20px;
padding-left: 10px;
width: 200px;
height: 30px;
border-radius: 50px;
border-color: black;
}

.profile {
width: 100px;
height: 50px;
padding-top: 20px;
float: left;
}

h4{
padding-top: 20px;
padding-bottom: 0;
margin-bottom: -10px;
}

p{
color: grey;
}

.card:hover {
background-color: whitesmoke;
height: 80px;
}

Dan Hasilnya Seperti Dibawah Ini 




Komentar