Skip to content

Commit 0084a75

Browse files
committed
adds newpaper article
1 parent dd84663 commit 0084a75

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

newspaper-article/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Newspaper Article</title>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
10+
<main class="newspaper">
11+
<h1 class="name">Daily Chuckles</h1>
12+
<p class="date">July 5, 2024</p>
13+
<h2 class="headline">Breaking: Grandma Edna Saves Earth</h2>
14+
<h3 class="sub-headline">Alien Invasion Foiled by Tech-Savvy Grandma's Wi-Fi Password</h3>
15+
<h4 class="author">By Jane Doe</h4>
16+
<p class="text">In an extraordinary twist of fate, Grandma Edna found herself at the forefront of a potential crisis when her clever Wi-Fi security measures unexpectedly thwarted an alien invasion. As alien spacecraft descended upon the town, panic spread until Grandma Edna calmly intervened, resetting her router with a cryptic passphrase known only to her.</p>
17+
<p class="text">The aliens, encountering unforeseen technological barriers, struggled to breach Grandma Edna's fortified network. Frustrated and bewildered, they eventually retreated to reassess their invasion strategy, leaving residents both relieved and amazed at Grandma Edna's resourcefulness.</p>
18+
</main>
19+
</body>
20+
</html>

newspaper-article/styles.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
html {
2+
font-size: 24px;
3+
}
4+
5+
.newspaper {
6+
font-size: 16px;
7+
font-family: "Open Sans", sans-serif;
8+
}
9+
10+
.name {
11+
font-size: 2rem;
12+
font-family: "Times New Roman", serif;
13+
}
14+
15+
.name,
16+
.author {
17+
text-transform: uppercase;
18+
}
19+
20+
.headline {
21+
font-size: 2em;
22+
font-weight: bold;
23+
}
24+
25+
.sub-headline {
26+
font-weight: 100;
27+
font-size: 1.5em;
28+
font-style: italic;
29+
}
30+
31+
.author {
32+
font-weight: bold;
33+
}
34+
35+
.text {
36+
text-indent: 20px;
37+
line-height: 2em;
38+
}
39+
40+
.text::first-letter {
41+
font-size: 2em;
42+
font-weight: bold;
43+
}

0 commit comments

Comments
 (0)