mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add colors on page
This commit is contained in:
1502
src/data/colors-japan.json
Normal file
1502
src/data/colors-japan.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -2,9 +2,10 @@
|
|||||||
import GridLayout from '../layouts/GridLayout.astro';
|
import GridLayout from '../layouts/GridLayout.astro';
|
||||||
|
|
||||||
import PageTitle from '../components/PageTitle.astro';
|
import PageTitle from '../components/PageTitle.astro';
|
||||||
import { AmazonBook } from '../components';
|
import { AmazonBook, ColorSwatch } from '../components';
|
||||||
|
|
||||||
import { Content as Intro } from '../content/traditional-colors-of-japan/intro.mdx';
|
import { Content as Intro } from '../content/traditional-colors-of-japan/intro.mdx';
|
||||||
|
import colors from '../data/colors-japan.json';
|
||||||
|
|
||||||
import { mapping } from '../mdx-components';
|
import { mapping } from '../mdx-components';
|
||||||
---
|
---
|
||||||
@@ -34,20 +35,10 @@ import { mapping } from '../mdx-components';
|
|||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="color-japan-grid col-start-1 col-end-17 grid grid-cols-books gap-[20px]">
|
<article class="color-japan-grid col-start-1 col-end-17 grid grid-cols-books gap-[20px]">
|
||||||
<div>Color 1</div>
|
{
|
||||||
<div>Color 2</div>
|
colors.map(({ name, description, color }) => (
|
||||||
<div>Color 3</div>
|
<ColorSwatch client:visible color={color} title={name} description={description} />
|
||||||
<div>Color 4</div>
|
))
|
||||||
<div>Color 5</div>
|
}
|
||||||
<div>Color 6</div>
|
|
||||||
<div>Color 7</div>
|
|
||||||
<div>Color 8</div>
|
|
||||||
<div>Color 9</div>
|
|
||||||
<div>Color 10</div>
|
|
||||||
<!--
|
|
||||||
{% for item in colorsJapan %}
|
|
||||||
{%- color item.color, item.name, item.description -%}
|
|
||||||
{% endfor %}
|
|
||||||
-->
|
|
||||||
</article>
|
</article>
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user