Skip to content

Commit bb97a24

Browse files
committed
docs: stories readme and example.
1 parent 0dbe262 commit bb97a24

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

public/stories/MarkdownExample.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# A Markdown Test
2+
3+
Dragons have been a staple of fantasy literature and mythology for centuries. From their majestic wings to their fearsome breath, dragons come in various forms across different cultures and stories.
4+
5+
---
6+
7+
## **Interesting Facts About Dragons**
8+
9+
1. **Origins**: In mythology, dragons are often linked to the creation of natural landscapes (e.g., mountains, rivers).
10+
2. **Dragon Lore**: In *Dungeons & Dragons*, dragons have different alignments based on their color, such as lawful good for metallic dragons and chaotic evil for chromatic dragons.
11+
3. **Shape-Shifting**: Some cultures, like in *The NeverEnding Story*, feature dragons that can change their form or size.
12+
4. **Guardians of Treasure**: In many stories, dragons hoard treasures, often seen as symbols of greed or protection.
13+
14+
---
15+
16+
## **Dragon Myths Across Cultures**
17+
18+
- **Greek Mythology**: Dragons were often depicted as guardians of ancient knowledge or treasures, such as the Lernaean Hydra.
19+
- **Chinese Mythology**: The Lung dragons symbolize strength, wisdom, and good fortune, often associated with water and rain.
20+
- **Viking Mythology**: Dragons like Fafnir were seen as tragic figures, representing greed and destruction.
21+
- **Arthurian Legends**: Dragons, such as the one slain by St. George, symbolize the battle between good and evil.
22+
23+
---
24+
25+
### **Fun Fact:**
26+
27+
> "Did you know that in some stories, dragons are depicted as protectors rather than villains, especially in Eastern traditions like those of Japan and China?"
28+
29+
---
30+
31+
## **Dragon-Related Media**
32+
33+
1. **Books**:
34+
- *The Hobbit* by J.R.R. Tolkien
35+
- *A Song of Ice and Fire* by George R.R. Martin
36+
2. **Movies**:
37+
- *How to Train Your Dragon* (2010)
38+
- *Reign of Fire* (2002)
39+
3. **Games**:
40+
- *The Elder Scrolls V: Skyrim*
41+
- *Dungeons & Dragons* (Tabletop RPG)
42+
43+
---
44+
45+
### **Conclusion**
46+
47+
Dragons are more than just mythical creatures; they represent complex themes such as power, wisdom, and the balance between good and evil. Whether they are guarding treasure, controlling the elements, or shaping the fate of kingdoms, dragons will always hold a special place in fantasy lore.
48+
49+
---
50+
51+
#### *Which dragon type would you choose to tame?*

public/stories/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Every file should end with `.txt` format however you can write `markdown` in it
2525

2626
**Important**: Tables are not supported.
2727

28+
[A Markdown Example](./MarkdownExample.md) is added for to show you which elements are supported.
29+
30+
When you don't have to show underline in a `h2` (`##`), use `h3` (`###`) header instead. Do not go under h3. (i.e. do not use h4 and below)
31+
2832
## Book and Author Structure (books.piml)
2933

3034
The `books.piml` file is a PIML document that, when parsed, results in an object containing `authors` and `books` arrays.

src/styles/dnd.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
.dnd-content-box blockquote {
111111
font-style: italic;
112112
padding: 1.5rem 0.1rem 0.5rem 0; /* top, right, bottom, left */
113-
margin: 2rem 1rem;
113+
margin: 2rem 2rem;
114114
border: 1px solid #E8E0B0; /* Border matching text color */
115115
color: #E8E0B0; /* Match paragraph color */
116116
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Match paragraph text shadow */
@@ -214,15 +214,36 @@
214214
}
215215

216216
.dnd-content-box h2 {
217+
217218
color: #FFFACD;
219+
218220
margin-bottom: 1.5rem;
221+
219222
font-size: 1.8rem;
223+
220224
text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
225+
221226
text-decoration: underline;
222227

223228
}
224229

225230

231+
232+
.dnd-content-box h3 {
233+
234+
color: #D4C08C; /* Darker, muted gold/yellow */
235+
236+
margin-bottom: 1.2rem;
237+
238+
font-size: 1.6rem; /* Slightly smaller than h2 */
239+
240+
text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
241+
242+
/* No text-decoration to differentiate from h2 */
243+
244+
}
245+
246+
226247
/* I will add more styles for the navbar and other components later */
227248

228249
.dnd-navbar {

0 commit comments

Comments
 (0)