-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link rel="stylesheet" href="./style.css" /> | ||
<title>Content | Placeholder</title> | ||
</head> | ||
<body> | ||
<div class="card"> | ||
<div class="card-header animated-bg" id="header"> | ||
<img | ||
src="https://images.unsplash.com/photo-1581013793663-dedd7e462266?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=375&q=80" | ||
alt="unsplash" | ||
/> | ||
</div> | ||
|
||
<div class="card-contant"> | ||
<h3 class="card-title animated-bg animated-bg-text" id="title"> | ||
Lorem ipsum dolor sit amet | ||
</h3> | ||
<p class="card-excerpt" id="excerpt"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi, | ||
sapiente | ||
<span class="animated-bg animated-bg-text"> </span> | ||
<span class="animated-bg animated-bg-text"> </span> | ||
<span class="animated-bg animated-bg-text"> </span> | ||
</p> | ||
<div class="author"> | ||
<div class="profile-img animated-bg" id="profile-img"> | ||
<img | ||
src="https://randomuser.me/api/portraits/men/45.jpg" | ||
alt="profile-img" | ||
/> | ||
</div> | ||
<div class="author-info"> | ||
<strong class="animated-bg animated-bg-text" id="name" | ||
>Jhon Doe</strong | ||
> | ||
<small class="animated-bg animated-bg-text" id="date" | ||
>oct 08, 2021</small | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="./app.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
*::after, | ||
*::before { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
font-family: "Roboto", sans-serif; | ||
background-color: #ecf0f1; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
overflow: hidden; | ||
margin: 0; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
} | ||
|
||
.card { | ||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); | ||
border-top-left-radius: 10px; | ||
border-top-right-radius: 10px; | ||
overflow: hidden; | ||
width: 350px; | ||
} | ||
|
||
.card-header { | ||
height: 200px; | ||
} | ||
|
||
.card-header img { | ||
object-fit: cover; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.card-contant { | ||
background-color: #fff; | ||
padding: 30px; | ||
} | ||
|
||
.card-title { | ||
height: 20px; | ||
margin: 0; | ||
} | ||
|
||
.card-excerpt { | ||
color: #777; | ||
margin: 10px 0 20px; | ||
} | ||
|
||
.author { | ||
display: flex; | ||
} | ||
|
||
.profile-img { | ||
height: 40px; | ||
width: 40px; | ||
border-radius: 50%; | ||
overflow: hidden; | ||
} | ||
|
||
.author-info { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
margin-left: 10px; | ||
width: 100px; | ||
} | ||
|
||
.author-info small { | ||
color: #aaa; | ||
margin-top: 5px; | ||
} |