diff --git a/package.json b/package.json index 945ee78..46832de 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "@astrojs/image": "0.12.0", "@iconify-icon/react": "1.0.2", "@tippyjs/react": "4.2.6", - "clsx": "1.2.1", "react": "18.2.0", "react-dom": "18.2.0", "react-use": "17.4.0" diff --git a/src/components/atoms/book-tile.astro b/src/components/atoms/book-tile.astro index 9561cf5..279dd53 100644 --- a/src/components/atoms/book-tile.astro +++ b/src/components/atoms/book-tile.astro @@ -8,25 +8,27 @@ export interface Props { value: Book; } -const { value } = Astro.props; +const { + value: { author, cover, title, url }, +} = Astro.props; --- - + {value.title}
- - {value.title} + + {title} - {value.author} + {author}
diff --git a/src/components/atoms/media-tile.astro b/src/components/atoms/media-tile.astro index 7ec2319..6327ad7 100644 --- a/src/components/atoms/media-tile.astro +++ b/src/components/atoms/media-tile.astro @@ -8,25 +8,27 @@ export interface Props { value: Media; } -const { value } = Astro.props; +const { + value: { image, title, type, url }, +} = Astro.props; --- - + {value.title}
- - {value.title} + + {title} - {value.type} + {type}
diff --git a/src/components/atoms/person-tile.astro b/src/components/atoms/person-tile.astro index 5e132c3..44038b9 100644 --- a/src/components/atoms/person-tile.astro +++ b/src/components/atoms/person-tile.astro @@ -8,22 +8,22 @@ export interface Props { value: Person; } -const { value } = Astro.props; +const { + value: { image, name, url }, +} = Astro.props; --- - + {value.name} -
- - {value.name} - -
+ + {name} +
diff --git a/src/components/atoms/typography.astro b/src/components/atoms/typography.astro index 7742a18..58f3d94 100644 --- a/src/components/atoms/typography.astro +++ b/src/components/atoms/typography.astro @@ -24,7 +24,7 @@ const variantToElement = { paragraph: 'p', } as const; -const variantToClassName = { +const variantToClassName /* tw */ = { 'main-title': 'text-3xl sm:text-4xl font-extrabold text-gray-900 dark:text-gray-100', 'main-subtitle': 'text-md sm:text-lg font-medium text-gray-700 dark:text-gray-100', 'section-title': 'text-3xl font-extrabold text-gray-900 dark:text-gray-100', @@ -34,7 +34,7 @@ const variantToClassName = { 'item-subtitle': 'text-md font-medium text-gray-700 dark:text-gray-100', 'tile-title': 'text-sm font-medium text-gray-700 dark:text-gray-200', 'tile-subtitle': 'text-sm font-normal text-gray-500 dark:text-gray-300', - paragraph: 'text-sm sm:text-base leading-relaxed font-normal text-gray-500 dark:text-gray-300', + paragraph: 'text-sm leading-relaxed font-normal text-gray-500 sm:text-base sm:leading-relaxed dark:text-gray-300', }; export interface Props extends Omit { diff --git a/src/components/atoms/video-tile.astro b/src/components/atoms/video-tile.astro index af37697..68b5b1a 100644 --- a/src/components/atoms/video-tile.astro +++ b/src/components/atoms/video-tile.astro @@ -25,9 +25,7 @@ const thumbnail = `https://img.youtube.com/vi/${id}/0.jpg`; src={thumbnail} alt={title} /> -
- - {title} - -
+ + {title} +