-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
133 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use client'; | ||
|
||
import Link from 'next/link'; | ||
import { usePathname } from 'next/navigation'; | ||
|
||
import ThemeToggle from '@components/layout/ThemeToggle'; | ||
|
||
const Navigation = () => { | ||
const path = usePathname(); | ||
|
||
return ( | ||
<nav className="flex overflow-x-visible lg:flex-col gap-4 lg:gap-2 py-2 border-b-2 border-b-primary-100 lg:border-b-0"> | ||
<Link | ||
href="/#ueber-mich" | ||
className={`hidden lg:block font-normal${'/' === path ? ' text-primary-500 dark:text-primary-500' : ''}`} | ||
>Über mich</Link> | ||
{ [ | ||
{ link: '/lebenslauf', label: 'Erfahrung' }, | ||
{ link: '/projekte', label: 'Projekte' }, | ||
{ link: '/kontakt', label: 'Kontakt' }, | ||
].map((item) => ( | ||
<Link | ||
href={item.link} | ||
key={item.link} | ||
className={`font-normal${path.startsWith(item.link) ? ' text-primary-500 dark:text-primary-500' : ''}`} | ||
>{ item.label }</Link> | ||
)) } | ||
<div className="hidden lg:block"> | ||
<ThemeToggle /> | ||
</div> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default Navigation; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
'use client'; | ||
|
||
import Image from 'next/image'; | ||
|
||
import { ProjectImage } from '@models/project'; | ||
import { useState } from 'react'; | ||
|
||
interface ProjectImagesProps { | ||
slug: string; | ||
images: ProjectImage[]; | ||
} | ||
|
||
const ProjectImages = ({ slug, images }: ProjectImagesProps) => { | ||
const [selected, setSelected] = useState(0); | ||
|
||
return ( | ||
<div className="grid gap-4 mt-10"> | ||
<div> | ||
<Image | ||
src={`https://images.schaechinger.com/projects/${slug}/${images[selected].src}`} | ||
width={1024} | ||
height={576} | ||
alt={images[selected].label || ''} | ||
className="h-auto max-w-full rounded-lg" | ||
/> | ||
</div> | ||
{ 1 < images.length | ||
? <div className="grid grid-cols-6 gap-x-2"> | ||
{ images.map((image, i) => ( | ||
<div key={image.src + i} className="cursor-pointer" onClick={() => setSelected(i)}> | ||
<Image | ||
src={`https://images.schaechinger.com/projects/${slug}/${image.src}`} | ||
width={160} | ||
height={90} | ||
alt={image.label || ''} | ||
className={`h-auto max-w-full rounded-lg${i === selected ? ' border-2' : ''} border-slate-300`} | ||
/> | ||
</div> | ||
)) } | ||
</div> : null } | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProjectImages; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters