diff --git a/astro.config.ts b/astro.config.ts index 04399d2..0a13bee 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -96,5 +96,8 @@ export default defineConfig({ build: { cssMinify: 'lightningcss' } + }, + redirects: { + '/oss': '/oss/0' } }) diff --git a/public/oss.webp b/public/oss.webp deleted file mode 100644 index 50a5f23..0000000 Binary files a/public/oss.webp and /dev/null differ diff --git a/public/oss2.webp b/public/oss2.webp new file mode 100644 index 0000000..8664037 Binary files /dev/null and b/public/oss2.webp differ diff --git a/public/oss3.webp b/public/oss3.webp new file mode 100644 index 0000000..3e87360 Binary files /dev/null and b/public/oss3.webp differ diff --git a/public/oss4.webp b/public/oss4.webp new file mode 100644 index 0000000..71dee0a Binary files /dev/null and b/public/oss4.webp differ diff --git a/src/components/featured-and-projects/projects.tsx b/src/components/featured-and-projects/projects.tsx index 650d353..1d64102 100644 --- a/src/components/featured-and-projects/projects.tsx +++ b/src/components/featured-and-projects/projects.tsx @@ -1,6 +1,9 @@ import { data } from '@data/projects.json' - import { shuffle } from '@utils' +import simpleIcons, { type toExportType } from '@components/icons/simple-icon' +import { DoubleLeft, DoubleRight } from './icons' +import { signal, effect } from '@preact/signals' +import { h } from 'preact' const shuffledData = import.meta.env.DEV ? data : shuffle([...data]) @@ -12,8 +15,6 @@ const concatedData = featured.concat(notFeatured) const screenWidth = window.innerWidth const isScreenWidthEnough = screenWidth >= 1024 -import { signal, effect } from '@preact/signals' - const index = signal(0) const imagesIndex = signal(0) @@ -22,11 +23,8 @@ type ResourcesProps = { lang?: string } -import simpleIcons, { type toExportType } from '@components/icons/simple-icon' -import { DoubleLeft, DoubleRight } from './icons' - export const DoubleLeftButton = ({ _f }: { _f: () => void }) => ( -
+
@@ -35,7 +33,7 @@ export const DoubleLeftButton = ({ _f }: { _f: () => void }) => ( export const DoubleRightButton = ({ _f }: { _f: () => void }) => (
) -import { h } from 'preact' - function SimpleIcon(key: string) { if (key === 'javascript') { console.log('key', key) diff --git a/src/components/featured-and-projects/resources.tsx b/src/components/featured-and-projects/resources.tsx index a42c388..5ee021e 100644 --- a/src/components/featured-and-projects/resources.tsx +++ b/src/components/featured-and-projects/resources.tsx @@ -38,7 +38,7 @@ const DoubleDownButton = ({ _f }: { _f: () => void }) => ( ) const DoubleLeftButton = ({ _f }: { _f: () => void }) => ( -