-
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.
Merge pull request #24 from firehawk89/add-projects-section
Add Projects Section
- Loading branch information
Showing
27 changed files
with
404 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: 'iTour' | ||
image: '/iTour.jpg' | ||
technologies: ['JavaScript', 'React', 'Next.js', 'TailwindCSS', 'i18n'] | ||
--- | ||
|
||
iTour project info goes here |
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,7 @@ | ||
--- | ||
title: 'Skauna' | ||
image: '/Skauna.jpg' | ||
technologies: ['HTML', 'CSS', 'JavaScript'] | ||
--- | ||
|
||
Skauna project info goes here |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ raleway | |
Bochkovskyi | ||
clsx | ||
Nextdotjs | ||
Tailwindcss | ||
Tailwindcss | ||
Skauna |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import About from '@/components/sections/about' | ||
import Hero from '@/components/sections/hero/hero' | ||
import Projects from '@/components/sections/projects/projects' | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Hero /> | ||
<About /> | ||
<About className="py-16 md:py-24" id="about-me" /> | ||
<Projects className="py-16 md:py-24" id="my-projects" /> | ||
</> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.hero-container { | ||
margin-top: var(--header-height); | ||
height: calc(100dvh - var(--header-height)); | ||
padding-top: var(--header-height); | ||
height: 100dvh; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import Card from '@/components/ui/card' | ||
import Heading from '@/components/ui/heading' | ||
import ImagePlaceholder from '@/components/ui/image-placeholder' | ||
import Project from '@/types/Project' | ||
import { cn } from '@/utils' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
import { FC, HTMLAttributes } from 'react' | ||
|
||
interface ProjectCardProps extends HTMLAttributes<HTMLDivElement> { | ||
data: Project | ||
imageSizes?: string | ||
} | ||
|
||
const ProjectCard: FC<ProjectCardProps> = ({ | ||
className, | ||
data: { body, image, slug, technologies, title }, | ||
imageSizes, | ||
}) => { | ||
return ( | ||
<article className={cn('group', className)}> | ||
<Card> | ||
<Link className="relative block aspect-video" href={`/${slug}`}> | ||
{image ? ( | ||
<Image | ||
alt={title || slug} | ||
fill | ||
sizes={imageSizes || '100vw'} | ||
src={image} | ||
/> | ||
) : ( | ||
<ImagePlaceholder /> | ||
)} | ||
<div className="absolute left-0 top-0 flex h-full w-full flex-col justify-end gap-3 bg-gradient-to-t from-dark p-4 text-light opacity-0 transition-all group-hover:opacity-100 sm:gap-5 sm:px-6 sm:py-7"> | ||
<Heading size="h3">{title || slug}</Heading> | ||
<p | ||
className="line-clamp-1 sm:line-clamp-2 md:line-clamp-3" | ||
dangerouslySetInnerHTML={{ __html: body }} | ||
/> | ||
{technologies && ( | ||
<div className="flex flex-wrap gap-2"> | ||
{technologies.map((technology, index) => ( | ||
<span | ||
className="rounded-xl bg-accent bg-opacity-75 px-2 py-1 text-sm font-semibold" | ||
key={index + 1} | ||
> | ||
{technology} | ||
</span> | ||
))} | ||
</div> | ||
)} | ||
</div> | ||
</Link> | ||
</Card> | ||
</article> | ||
) | ||
} | ||
|
||
export default ProjectCard |
Oops, something went wrong.