diff --git a/src/pages/haiku.astro b/src/pages/haiku.astro new file mode 100644 index 0000000..77e2305 --- /dev/null +++ b/src/pages/haiku.astro @@ -0,0 +1,43 @@ +--- +import { getCollection } from 'astro:content'; + +import { sortByDate } from '../utils/sort-by-date'; + +import GridLayout from '../layouts/GridLayout.astro'; +import PageTitle from '../components/PageTitle.astro'; +import { Link } from '../components'; +import { Content as Intro } from '../text/haiku/intro.mdx'; + +import { mapping } from '../mdx-components'; + +const allHaiku = await getCollection('haiku'); +allHaiku.sort(sortByDate).reverse(); +--- + + + Haiku + +
+ +
+ +
+
    + { + allHaiku.map(({ slug }) => ( +
  1. + + {slug} + +
  2. + )) + } +
+
+
diff --git a/src/text/haiku/intro.mdx b/src/text/haiku/intro.mdx new file mode 100644 index 0000000..6938cb0 --- /dev/null +++ b/src/text/haiku/intro.mdx @@ -0,0 +1,6 @@ +Haiku (jap. 俳句) is a short form of Japanese poetry +in three phrases, typically characterized by three qualities: + +1. The essence of haiku is kiru (cutting). This is often represented by the juxtaposition of two images or ideas and a kireji (cutting word) between them. +2. Traditional haiku often consist of 17 syllables, in three phrases of 5, 7, and 5. +3. A kigo (seasonal reference) with topics such as season, heaven, earth, humanity, observances, animals, or plants. diff --git a/tailwind.config.cjs b/tailwind.config.cjs index 681d852..698c07a 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -50,7 +50,8 @@ module.exports = { 18: 'repeat(18, minmax(0, 1fr))', books: 'repeat(auto-fill, minmax(150px, 1fr))', haiku: 'repeat(auto-fit, minmax(15rem, 1fr))', - 'haiku-xl': 'repeat(auto-fit, minmax(25rem, 1fr))', + 'haiku-xl': 'repeat(auto-fit, minmax(25rem, 1fr)', + 'haiku-list': 'repeat(auto-fill, minmax(3rem, 1fr))', }, gridTemplateRows: ({ theme }) => ({ layout: `clamp(3rem, ${theme('spacing.column')}, 9rem)`,