feat: rename 'projects' to 'portfolio'

This commit is contained in:
Youwen Wu 2024-04-03 15:25:52 -07:00
parent 4f6bba661c
commit 13eb780246
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
4 changed files with 8 additions and 6 deletions

View file

@ -16,3 +16,5 @@ bun dev
bun run build bun run build
bun preview bun preview
``` ```
## License

View file

@ -8,7 +8,7 @@
import Coredump from '$lib/assets/Coredump.svelte'; import Coredump from '$lib/assets/Coredump.svelte';
import Separator from '../ui/separator/separator.svelte'; import Separator from '../ui/separator/separator.svelte';
let current: 'blog' | 'about' | 'home' | 'projects' | string; let current: 'blog' | 'about' | 'home' | 'portfolio' | string;
const updateCurrent = () => { const updateCurrent = () => {
const path = window.location.pathname; const path = window.location.pathname;
@ -44,9 +44,9 @@
class:selected={current === 'about'}>About</a class:selected={current === 'about'}>About</a
> >
<a <a
href="/projects" href="/portfolio"
class="text-md sm:text-lg md:text-xl font-medium dark:text-zinc-50 text-zinc-700 px-4 py-1 rounded-3xl hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors duration-200" class="text-md sm:text-lg md:text-xl font-medium dark:text-zinc-50 text-zinc-700 px-4 py-1 rounded-3xl hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors duration-200"
class:selected={current === 'projects'}>Projects</a class:selected={current === 'portfolio'}>Portfolio</a
> >
<a <a
href="/blog" href="/blog"

View file

@ -79,14 +79,14 @@
</Card.Content> </Card.Content>
<Card.Footer> <Card.Footer>
<span class="flex gap-2"> <span class="flex gap-2">
<Button variant="outline" href="/projects"
>My Projects<ArrowRight class="ml-2" /></Button
>
<Button <Button
variant="secondary" variant="secondary"
size="icon" size="icon"
href="https://github.com/couscousdude?tab=repositories"><GithubLogo /></Button href="https://github.com/couscousdude?tab=repositories"><GithubLogo /></Button
> >
<Button variant="outline" href="/portfolio"
>My Portfolio<ArrowRight class="ml-2" /></Button
>
</span> </span>
</Card.Footer> </Card.Footer>
</Card.Root> </Card.Root>