Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marioramirez90 committed Jun 7, 2024
0 parents commit ba850a2
Show file tree
Hide file tree
Showing 3 changed files with 209 additions and 0 deletions.
Empty file added README.md
Empty file.
81 changes: 81 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>aufgabe1</title>
<link rel="stylesheet" href="style.css">
</head>

</body>

<!--preview-card-right-->

</header>
<h1>Aufgabe: Article Preview Card</h1>
</header>
<main>

<article class="preview-card">
<img src="https://picsum.photos/400" alt="img">
<div class="author">
<p>Veröffentlich 24.4.2024</p>
<img class="avatar-img" src="https://i.pravatar.cc/100" alt="avatar1">
<p class="name">Lian</p>
</div>

<div class="category">
<a>Reisen</a>
</div>

<article class="content">
<header>
<h2>Die besten Reisetipps für den Sommer</h2>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
et quis nostrud exercitation ullamco laboris
et quis nostrud exercitation ullamco laboris
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
</p>
<div class="butten">
<a class="a1">lesen</a>
</div>
</article>
</div>
</article>

<!--preview-card-left-->

<article class="preview-card-2">

<img src="https://picsum.photos/401" alt="img">
<div class="author-2">
<p>Veröffentlich 24.4.2024</p>
<img class="avatar-img-2" src="https://i.pravatar.cc/101" alt="avatar1">
<p class="name">Railey</p>
</div>
<div class="category">
<a> Lifestyle</a>
<a>Tips</a>
</div>

<article class="content-2">
<header>
<h2>So wird 2025 dein Jahr </h2>
</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore
et quis nostrud exercitation ullamco laboris
et quis nostrud exercitation ullamco laboris
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
</p>

<div class="butten">
<a class="a2">lesen</a>
</div>
</article>
</article>
</main>
</body>

</html>
128 changes: 128 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

html {
font-family: sans-serif;
font-size: 1rem;
}

body {
margin: 2rem;
}
/* preview-card-right*/

.preview-card {
display: inline-block;
position: relative;
margin: 5px;
max-width: 400px;
padding: 1rem;
border: 2px solid black;
border-radius: 0.75rem;
box-shadow: 10px 10px blueviolet;
}

.preview-card > img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 0.35rem;
object-position: middle;
}
.author {
display: flex;
margin-block: 1rem 0;
align-items: center;
font-size: 0.75rem;
color: gray;
gap: 0.45rem;
}
.avatar-img {
display: flex;
width: 10%;
border: 2px solid blueviolet;
border-radius: 100%;
}
p:first-child {
flex-grow: 1;
}
.category {
display: flex;
padding: 1rem 0 1rem;
gap: 0.45rem;
}
.category a {
padding: 4px 9px;
background-color: deepskyblue;
color: black;
border-radius: 1rem;
font-size: 14px;
}
h2 {
display: flex;
padding: 0 0 1rem;
margin-block: 0;
font-size: 1.25rem;
}
.butten {
padding: 1rem 0 0.75rem;
}
.a1 {
padding: 8px 16px;
text-decoration: none;
background-color: blueviolet;
color: white;
border-radius: 0.25rem;
}
/* preview-card-left*/

.preview-card-2 {
display: inline-block;
position: relative;
margin: 5px;
max-width: 400px;
padding: 1rem;
border: 2px solid black;
border-radius: 0.75rem;
box-shadow: 10px 10px darkorange;
}

.preview-card-2 > img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 0.35rem;
object-position: middle;
}
.author-2 {
display: flex;
margin-block: 1rem 0;
align-items: center;
font-size: 0.75rem;
color: gray;
gap: 0.45rem;
}
.avatar-img-2 {
display: flex;
width: 10%;
border: 2px solid darkorange;
border-radius: 100%;
}

.content-2 h2 {
display: flex;
padding: 0 0 2.45rem;
margin-block: 0;
font-size: 1.25rem;
align-items: center;
}
.a2 {
padding: 8px 16px;
text-decoration: none;
background-color: darkorange;
color: white;
border-radius: 0.25rem;
}

0 comments on commit ba850a2

Please sign in to comment.