-
-
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.
- Loading branch information
1 parent
0a66e3e
commit 4a25abd
Showing
15 changed files
with
175 additions
and
20 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,20 @@ | ||
[ | ||
{ | ||
"title": "Front-End Checklist V1", | ||
"url": "https://frontendchecklist.io/", | ||
"status": "active", | ||
"description_en": "The Front-End Checklist is an exhaustive list of all elements you need to have / to test before launching your website / HTML page to production.", | ||
"description_fr": "", | ||
"category_en": "", | ||
"category_fr": "" | ||
}, | ||
{ | ||
"title": "UI Patterns for developers", | ||
"url": "https://ui-patterns-dev.vercel.app/fr", | ||
"status": "work in progress", | ||
"description_en": "A full guide on all UI Patterns, practices, pitfalls and gotchas for front-end developers.", | ||
"description_fr": "", | ||
"category_en": "", | ||
"category_fr": "" | ||
} | ||
] |
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
33 changes: 33 additions & 0 deletions
33
src/components/LatestProjectsSection/LatestProjectsSection.tsx
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,33 @@ | ||
import useTranslation from 'next-translate/useTranslation' | ||
|
||
import { CustomLink } from '../CustomLink' | ||
import { H5 } from '../Headings' | ||
import { Projects } from '../Projects' | ||
|
||
export type LatestProjectsSectionProps = { | ||
projects: any[] | ||
} | ||
|
||
export const LatestProjectsSection: React.FC<LatestProjectsSectionProps> = ({ projects }) => { | ||
const { t } = useTranslation('common') | ||
|
||
return ( | ||
<section className="border-none mb-5 md:mb-10"> | ||
<header className="mb-5"> | ||
<H5 as="h2">{t('projects.sections.latest-projects')}</H5> | ||
</header> | ||
|
||
<div className="flex flex-col gap-3"> | ||
{projects?.map((project, i) => ( | ||
<Projects key={i} project={project} /> | ||
))} | ||
</div> | ||
|
||
{projects.length ? ( | ||
<footer className="mt-5 text-right"> | ||
<CustomLink href="/projects">{t('projects.sections.viewAll')}</CustomLink> | ||
</footer> | ||
) : null} | ||
</section> | ||
) | ||
} |
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 @@ | ||
export * from './LatestProjectsSection' |
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,52 @@ | ||
import Image from 'next/image' | ||
import useTranslation from 'next-translate/useTranslation' | ||
|
||
import { CustomLink } from '@/components/CustomLink' | ||
import { H5 } from '@/components/Headings' | ||
import { Paragraph } from '@/components/Paragraph' | ||
|
||
import { UsesType } from '@/types' | ||
|
||
type ProjectCardProps = { | ||
tool: UsesType | ||
} | ||
|
||
export const ProjectCard: React.FC<ProjectCardProps> = ({ tool }) => { | ||
const { lang } = useTranslation('common') | ||
|
||
return ( | ||
<article className="flex flex-row relative gap-x-5"> | ||
{tool.image ? ( | ||
<div className="min-w-[5rem]"> | ||
<Image | ||
alt={`Thumbnail of ${tool.title}`} | ||
src={tool.image} | ||
width="75" | ||
height="75" | ||
style={{ | ||
maxWidth: '100%', | ||
height: 'auto', | ||
}} | ||
/> | ||
</div> | ||
) : null} | ||
<div> | ||
<H5 as="h3" className="mb-2"> | ||
<CustomLink | ||
href={tool.url} | ||
className="before:content-[''] before:absolute before:top-0 before:left-0 before:right-0 before:bottom-0 font-medium dark:!text-white" | ||
> | ||
{tool.title} | ||
</CustomLink> | ||
</H5> | ||
<span className="inline-flex items-center gap-x-1.5 rounded-md px-2 py-1 text-xs font-medium dark:text-white ring-1 ring-inset ring-gray-400 dark:ring-gray-700"> | ||
<svg className="h-1.5 w-1.5 fill-blue-400" viewBox="0 0 6 6" aria-hidden="true"> | ||
<circle cx="3" cy="3" r="3" /> | ||
</svg> | ||
{tool.status} | ||
</span> | ||
<Paragraph>{tool[`description_${lang}` as keyof UsesType]}</Paragraph> | ||
</div> | ||
</article> | ||
) | ||
} |
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 @@ | ||
export * from './ProjectCard' |
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,9 @@ | ||
import { ProjectCard } from '../ProjectCard' | ||
|
||
export type ProjectsProps = { | ||
project: any | ||
} | ||
|
||
export const Projects: React.FC<ProjectsProps> = ({ project }) => { | ||
return <ProjectCard tool={project} /> | ||
} |
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 @@ | ||
export * from './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