Skip to content

Commit

Permalink
Update footer
Browse files Browse the repository at this point in the history
  • Loading branch information
adamplesnik committed Nov 14, 2024
1 parent 76f4a22 commit de6d018
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/components/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Heading = ({ size = 1, className, children }: TitleProps) => {
if (size === 1) {
return <h1 className={clsx(className, 'text-5xl font-semibold tracking-tight')}>{children}</h1>
} else if (size === 2) {
return <h2 className={clsx(className, 'mb-7 font-serif text-3xl italic')}>{children}</h2>
return <h2 className={clsx(className, 'font-serif text-3xl italic')}>{children}</h2>
} else if (size === 3) {
return (
<h3 className={clsx(defaultClasses, 'mb-4 text-lg text-zinc-700 dark:text-zinc-300')}>
Expand Down
17 changes: 17 additions & 0 deletions src/content/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Heading from '@/components/Heading'
import Link from '@/components/Link'

const Footer = () => {
return (
<div className="flex flex-col gap-1 p-12">
<Heading size={2}>Adam Plesník</Heading>
<span className="mb-12">Design engineer</span>
Bratislava, Slovakia
<Link href="mailto:adam@adamplesnik.com">adam@adamplesnik.com</Link>
<Link href="https://github.com/adamplesnik">github.com/adamplesnik</Link>
<Link href="https://www.linkedin.com/in/adamplesnik/">linkedin.com/in/adamplesnik</Link>
</div>
)
}

export default Footer
10 changes: 3 additions & 7 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
import Heading from '@/components/Heading'
import AboutMe from '@/content/AboutMe'
import Chart from '@/content/Chart'
import Footer from '@/content/Footer'
import Intro from '@/content/Intro'
import Tech from '@/content/Tech'
import WorkKolbord from '@/content/WorkKolbord'
import WorkScrollDriven from '@/content/WorkScrollDriven'
import WorkScrollDrivenShowcase from '@/content/WorkScrolldrivenShowcase'
import WorkWebUmenia from '@/content/WorkWebUmenia'
import Footer from '@/partials/Footer'

const Home = () => {
return (
<>
<div className="flex flex-col gap-48">
<Intro />
<Chart />
<AboutMe />
<Tech />
<Heading size={2} className="print:mt-12">
Work
</Heading>
<WorkKolbord />
<WorkScrollDriven />
<WorkScrollDrivenShowcase />
<WorkWebUmenia />
<Footer />
</>
</div>
)
}

Expand Down
22 changes: 0 additions & 22 deletions src/partials/Footer.tsx

This file was deleted.

0 comments on commit de6d018

Please sign in to comment.