interface FormattedTeaDatabasePage {
/** Name of the tea. */
name: string;
/** Caffeine level. */
caffeine: string;
/** Temperature to steep the tea at. */
temperature: string;
/** How long to steep the tea for. */
steepTime: string;
/** How many tea leaves to use per amount of water. */
serving: string;
/** Type of tea, such as "Black tea" or "Herbal tea". */
type: string;
/** Where in the house the tea is located at. */
location: readonly string[];
}
Slide 12
Slide 12 text
RENDERING
NAME CAFFEINE TEMP STEEP TIME SERVING SIZE TYPE
Hazy Hills ★★☆ 93°C 4 mins 9 g / 12 oz Black tea
function TeaInfo({ tea, position }) {
return (
{tea.name}
{tea.type}, {CAFFEINE_LEVELS[tea.caffeine]}
{tea.serving}, steep {tea.steepTime}, {tea.temperature}
);
}
OTHER DESIGNS
DIFFERENT CONTENT
Use a different number of
groups and reposition
them.
DIFFERENT FONTS
Swap font-family with
CSS.
DIFFERENT BACKGROUND
Change out the
background shown under
the text.
Slide 17
Slide 17 text
LOADING IMAGE
ONTO E-READER
Set as custom
screensaver image
NOOK & IPAD
Use the image as a
book cover
KINDLE & KOBO
Slide 18
Slide 18 text
E-BOOK MENU
Creating ePub files to load
onto the eReader
2
Slide 19
Slide 19 text
EPUB FORMAT
BOOK.EPUB
RENAMED ZIP FILE
Simply renaming book.zip
to book.epub creates
an e-Book.
Standard format used by
almost all e-Readers.
Slide 20
Slide 20 text
Directory with XML
sitemap pointing to
HTML files, CSS, and images
ZIP folder with XML
table of contents pointing to
XHTML files, CSS, and images
E-BOOKS ARE LIKE WEBSITES
WEBSITE E-BOOK
▪ sitemap.xml
▪ index.html
▪ image.png
▪ css/
▪ style.css
▪ myfont.ttf
▪ content.opf
▪ chapter1.xhtml
▪ image.png
▪ css/
▪ style.css
▪ myfont.ttf
Slide 21
Slide 21 text
XHTML VS HTML
vs vs
Heading
Paragraph
IDENTICAL ELEMENTS
IDENTICAL CSS
ONLY LOWERCASE TAGS
STRICT CLOSING TAGS
S C
E
O
Slide 22
Slide 22 text
CONTENT.OPF
METADATA
Book title, author,
cover
1
SPINE
The chapters, in order
3
MANIFEST
List of every file in the
ZIP folder
GUIDE
Important pages
2
4
Slide 23
Slide 23 text
CONTENT.OPF
uuid
Tea Book
Tiger Oakes
Slide 24
Slide 24 text
CONTENT.OPF
uuid
Tea Book
Tiger Oakes
Slide 25
Slide 25 text
SCRIPTING
Write these files with
automated tooling
3
Slide 26
Slide 26 text
PANDOC
Statically generate an ePub file using
markdown as input.
pandoc.org
Slide 27
Slide 27 text
MARKDOWN
TEMPLATE
Each top-level heading is
turned into a chapter in the
eBook.
---
title: Tea Book
creator: Tiger Oakes
cover-image: image.png
css: css/style.css
...
# Chapter 1
Hello world
…
# Chapter 2
Slide 28
Slide 28 text
DENO
Write JavaScript to run on your
desktop (like Node) but with much
more built-in functionality
Slide 29
Slide 29 text
github.com/NotWoods/tea-book
SOLUTION
More fun than pen and paper!
Slide 30
Slide 30 text
CREDITS: This presentation template was
created by Slidesgo, including icons by
Flaticon, infographics & images by Freepik.
THANK YOU!
github.com/NotWoods/tea-book
tigeroakes.com
@[email protected]
@not_woods