diff --git a/package.json b/package.json index 731b381..b6a7945 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "@iconify-json/material-symbols": "^1.1.82", + "@iconify-json/simple-icons": "^1.1.109", "@kobalte/core": "^0.13.3", "@solidjs/router": "^0.13.6", "@solidjs/start": "^1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 17fcfb1..9bca235 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@iconify-json/material-symbols': specifier: ^1.1.82 version: 1.1.82 + '@iconify-json/simple-icons': + specifier: ^1.1.109 + version: 1.1.109 '@kobalte/core': specifier: ^0.13.3 version: 0.13.3(solid-js@1.8.18) @@ -500,6 +503,9 @@ packages: '@iconify-json/material-symbols@1.1.82': resolution: {integrity: sha512-E67LgMFiAbEVF7rE38ulZU6NeXcPvayFF4hUUqt3g33tWrLsDNqEFTSsPt03l34rH5uGGtHIakTqtBlZ+/hRkw==} + '@iconify-json/simple-icons@1.1.109': + resolution: {integrity: sha512-vIhIJQDdbS5R6kSyIHVBRCaR2jiFjVlbVtB4PAoLjQL45vJRHMTwkrFa536XcX7yW69HbQkoanydcyDjknI6pw==} + '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} @@ -3634,6 +3640,10 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify-json/simple-icons@1.1.109': + dependencies: + '@iconify/types': 2.0.0 + '@iconify/types@2.0.0': {} '@iconify/utils@2.1.25': diff --git a/src/components/Chip.tsx b/src/components/Chip.tsx index b7d1315..c6dee38 100644 --- a/src/components/Chip.tsx +++ b/src/components/Chip.tsx @@ -4,17 +4,30 @@ import { Dynamic } from 'solid-js/web'; const Chip: ParentComponent<{ icon?: (props: ComponentProps<'svg'>) => JSX.Element; title?: string; + class?: string; + classList?: { + [k: string]: boolean | undefined; + }; + href?: string; }> = (props) => { return ( - {props.children} - + ); }; diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx index fac4b64..7e7bd25 100644 --- a/src/components/Nav.tsx +++ b/src/components/Nav.tsx @@ -6,23 +6,34 @@ export default function Nav() { path == location.pathname ? 'border-sky-600' : 'border-transparent hover:border-sky-600'; + + const navItemClass = 'border-b-2 mx-1.5 sm:mx-6 '; + return (