Skip to content

Commit

Permalink
add Link, update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Feb 13, 2024
1 parent 1a56305 commit 5c777c6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import Heading from '@/components/ui/heading'
import IconsList from '@/components/ui/icons-list/icons-list'
import IconsListItem from '@/components/ui/icons-list/icons-list-item'
import ImagePlaceholder from '@/components/ui/image-placeholder'
import { LINK } from '@/types/enums/Link'
import { SITE_URL } from '@/utils'
import { getProject, getSlugs } from '@/utils/projects'
import Image from 'next/image'
import Link from 'next/link'
import { BiArrowBack } from 'react-icons/bi'
import { FaGithub } from 'react-icons/fa'
import { TfiWorld } from 'react-icons/tfi'

Expand Down Expand Up @@ -45,7 +48,14 @@ export default async function Project({ params: { slug } }: ProjectPageProps) {
return (
<section className="pt-header">
<Content className="pb-16 pt-12 md:pb-24 md:pt-20" size="tight">
<article className="flex flex-col gap-5 md:gap-7">
<Link
className="group flex items-center gap-2 text-accent transition-colors hover:text-accent-light md:text-lg"
href={LINK.projects}
>
<BiArrowBack className="h-5 w-5 transition-transform group-hover:-translate-x-1" />{' '}
Go Back to Projects
</Link>
<article className="mt-3 flex flex-col gap-5 md:mt-5 md:gap-7">
<header>
{website || github ? (
<div className="flex items-center justify-between">
Expand All @@ -72,7 +82,7 @@ export default async function Project({ params: { slug } }: ProjectPageProps) {
)}
{body && (
<p
className="mt-7 md:text-lg"
className="mt-5 md:mt-7 md:text-lg"
dangerouslySetInnerHTML={{ __html: body }}
/>
)}
Expand Down

0 comments on commit 5c777c6

Please sign in to comment.