Skip to content

Commit

Permalink
completed content placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
tsr-kairi committed Jul 6, 2021
1 parent f2c7daf commit b02550e
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 0 deletions.
Empty file.
55 changes: 55 additions & 0 deletions Day 24 - Content Placeholder/index.html
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">&nbsp;</span>
<span class="animated-bg animated-bg-text">&nbsp;</span>
<span class="animated-bg animated-bg-text">&nbsp;</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>
78 changes: 78 additions & 0 deletions Day 24 - Content Placeholder/style.css
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;
}

0 comments on commit b02550e

Please sign in to comment.