generated from resir014/nextjs-typescript-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #72 from hanihusam/break-update
Migrate to Vite
- Loading branch information
Showing
31 changed files
with
936 additions
and
485 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,45 @@ | ||
import { Grid } from '@/components/grid' | ||
import { Header } from '@/components/header' | ||
import { Spacer } from '@/components/spacer' | ||
import { clsxm } from '@/utils/clsxm' | ||
|
||
import { type Project } from 'contents/projects' | ||
|
||
type ProjectectionProps = { | ||
title: string | ||
subTitle: string | ||
cta: string | ||
projects: Project[] | ||
} | ||
|
||
export function ProjectSection({ | ||
title, | ||
subTitle, | ||
cta, | ||
projects, | ||
}: ProjectectionProps) { | ||
return ( | ||
<> | ||
<Header | ||
title={title} | ||
subTitle={subTitle} | ||
cta={cta} | ||
ctaUrl="/projects" | ||
reverse | ||
/> | ||
<Spacer size="2xs" /> | ||
<Grid className="gap-10"> | ||
{projects.map((project, idx) => ( | ||
<div | ||
key={idx} | ||
className={clsxm('col-span-4', { | ||
'hidden lg:block': idx >= 2, | ||
})} | ||
> | ||
{project.name} | ||
</div> | ||
))} | ||
</Grid> | ||
</> | ||
) | ||
} |
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,39 @@ | ||
import { AnchorOrLink } from '@/components/links/anchor-or-link' | ||
|
||
import { type Project } from 'contents/projects' | ||
|
||
export function ProjectCard({ project }: { project: Project }) { | ||
return ( | ||
<div className="flex max-w-xl flex-col items-start justify-between"> | ||
<div className="flex items-center gap-x-4 text-xs"> | ||
<a | ||
href={project.link.href} | ||
className="bg-gray-50 text-gray-600 hover:bg-gray-100 relative z-10 rounded-full px-3 py-1.5 font-medium" | ||
> | ||
{project.link.label} | ||
</a> | ||
</div> | ||
<div className="group relative"> | ||
<h3 className="text-gray-900 group-hover:text-gray-600 mt-3 text-lg font-semibold leading-6"> | ||
<a href={project.link.href}> | ||
<span className="absolute inset-0" /> | ||
{project.link.label} | ||
</a> | ||
</h3> | ||
<p className="text-gray-600 mt-5 line-clamp-3 text-sm leading-6"> | ||
{project.description} | ||
</p> | ||
</div> | ||
<div className="relative mt-8 flex items-center gap-x-4"> | ||
<img | ||
src={project.cover} | ||
alt="" | ||
className="bg-gray-50 h-10 w-10 rounded-full" | ||
/> | ||
<AnchorOrLink href={project.link.href}> | ||
{project.link.label} | ||
</AnchorOrLink> | ||
</div> | ||
</div> | ||
) | ||
} |
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
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
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,5 +1,8 @@ | ||
import pkg from 'litefs-js' | ||
import { | ||
getAllInstances, | ||
getInstanceInfo, | ||
getInternalInstanceDomain, | ||
} from 'litefs-js' | ||
|
||
export { ensureInstance, ensurePrimary } from 'litefs-js/remix.js' | ||
const { getAllInstances, getInstanceInfo, getInternalInstanceDomain } = pkg | ||
export { getAllInstances, getInstanceInfo, getInternalInstanceDomain } |
Oops, something went wrong.