up
This commit is contained in:
BIN
hlgiomuc.ttf
Normal file
BIN
hlgiomuc.ttf
Normal file
Binary file not shown.
27
index.html
Normal file
27
index.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=s, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="./main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<form action="">
|
||||
<input type="text" placeholder="username">
|
||||
<br>
|
||||
<input type="password" placeholder="password">
|
||||
<br>
|
||||
<button>register</button>
|
||||
</form>
|
||||
|
||||
<p>1asasa xin chào hihiha haa</p>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
95
index2.html
Normal file
95
index2.html
Normal file
@@ -0,0 +1,95 @@
|
||||
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css"
|
||||
integrity="sha512-2SwdPD6INVrV/lHTZbO2nodKhrnDdJK9/kg2XD1r9uGqPo1cUbujc+IYdlYdEErWNu69gVcYgdxlmVmzTWnetw=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<style>
|
||||
|
||||
.post_card {
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background-color: white;
|
||||
/* box-shadow: 3px 5px 3px 3px #888888; */
|
||||
/* padding: 5px;
|
||||
box-sizing: border-box; */
|
||||
}
|
||||
|
||||
.front {
|
||||
height: 375px;
|
||||
background-image: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSgVfHORQFLyUf_rNove-xUmxIskDeMJ63REz_YIMQ6S0vCyQdkBvJos4igKspvCgpqnpy8h0xM--1uckzZIxDgyoHy37-MowkF-YzvVx8&s=10);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.front_title {
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
background-color: rgba(35, 34, 36, 1);
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.eye_box {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background-color: orange;
|
||||
color: white;
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.front_title>span {
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 21px;
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 10px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.under {
|
||||
height: 125px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="post_card">
|
||||
<div class="front">
|
||||
<div class="front_title">
|
||||
<div class="eye_box">
|
||||
<i class="fa-solid fa-eye"></i>
|
||||
</div>
|
||||
<span>79.174 lượt xem</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="under">
|
||||
<h2>Sao Việt 14/8 Hoài Lâm Từ Thiện Cùng Hoài Linh asdsad sgdhg. dfgdf ge</h2>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
27
main.css
Normal file
27
main.css
Normal file
@@ -0,0 +1,27 @@
|
||||
@font-face {
|
||||
font-family: "font_lop_minh";
|
||||
src: url(hlgiomuc.ttf);
|
||||
}
|
||||
|
||||
|
||||
form {
|
||||
width: fit-content;
|
||||
border: 2px solid black;
|
||||
padding: 5px;
|
||||
|
||||
position:fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
transition: all 2s;
|
||||
|
||||
}
|
||||
|
||||
form:hover {
|
||||
transform: translate(-50%, -50%) scale(2);
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "font_lop_minh";
|
||||
}
|
||||
Reference in New Issue
Block a user