diff --git a/src/components/categories/category-icons/category-icons.module.css b/src/components/categories/category-icons/category-icons.module.css new file mode 100644 index 0000000..ec78856 --- /dev/null +++ b/src/components/categories/category-icons/category-icons.module.css @@ -0,0 +1,50 @@ +.wrapper { + display: flex; + flex-direction: column; + gap: 20px; + padding-bottom: 80px; + + & .title { + font-family: var(--font-display); + font-size: var(--font-lg); + font-weight: 600; + text-align: center; + } + + & .categoryIconsWrapper { + display: flex; + flex-wrap: wrap; + gap: 15px; + align-items: center; + justify-content: center; + + & a { + color: inherit; + text-decoration: none; + + & .icon { + display: flex; + align-items: center; + justify-content: center; + width: 50px; + height: 50px; + font-size: var(--font-lg); + background: linear-gradient( + var(--color-neutral-50), + var(--color-neutral-100) + ); + border: 1px solid var(--color-neutral-300); + border-radius: 50%; + transition: 0.2s; + + &:hover { + background: linear-gradient( + var(--color-neutral-100), + var(--color-neutral-200) + ); + transform: scale(1.15); + } + } + } + } +} diff --git a/src/components/categories/category-icons/category-icons.tsx b/src/components/categories/category-icons/category-icons.tsx new file mode 100644 index 0000000..55ef4c1 --- /dev/null +++ b/src/components/categories/category-icons/category-icons.tsx @@ -0,0 +1,30 @@ +import { sounds } from '@/data/sounds'; +import { useMemo } from 'react'; +import styles from './category-icons.module.css'; +import { Container } from '@/components/container'; +import { Tooltip } from '@/components/tooltip'; + +export default function CategoryIcons() { + const categories = useMemo(() => sounds.categories, []); + + return ( + +
+

Categories

+
+ {categories.map(category => { + return ( + + + +
{category.icon}
+
+
+
+ ); + })} +
+
+
+ ); +} diff --git a/src/pages/index.astro b/src/pages/index.astro index 94e2adc..510689a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,11 +8,13 @@ import Source from '@/components/source.astro'; import Footer from '@/components/footer.astro'; import { App } from '@/components/app'; +import CategoryIcons from '@/components/categories/category-icons/category-icons'; --- +