-
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
0 parents
commit ba850a2
Showing
3 changed files
with
209 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,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> |
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,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; | ||
} |