fixed design project page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Link from "next/link";
|
||||
|
||||
type Props = {
|
||||
type props = {
|
||||
locale: string;
|
||||
projects: {
|
||||
slug: string;
|
||||
@@ -9,7 +9,7 @@ type Props = {
|
||||
}[];
|
||||
};
|
||||
|
||||
export function OtherProjects({ locale, projects }: Props) {
|
||||
export function OtherProjects({ locale, projects }: props) {
|
||||
if (!projects.length) return null;
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,32 +1,36 @@
|
||||
import Link from "next/link";
|
||||
|
||||
type Props = {
|
||||
import { GoArrowLeft } from "react-icons/go";
|
||||
|
||||
type props = {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
year: number;
|
||||
description: string;
|
||||
dateLabel: string;
|
||||
locale: string;
|
||||
};
|
||||
|
||||
export function ProjectHero({ title, subtitle, year, locale }: Props) {
|
||||
export function ProjectHero({ title, description, dateLabel, locale }: props) {
|
||||
return (
|
||||
<section className="rounded-[28px] bg-[#2b160f] px-6 py-16 text-white md:px-12 md:py-28">
|
||||
<Link
|
||||
href={`/${locale}/works`}
|
||||
className="mb-10 inline-flex text-sm text-white/80 hover:text-white"
|
||||
>
|
||||
← Retour aux projets
|
||||
</Link>
|
||||
<div className="md:pt-22">
|
||||
<section className="rounded-[10px] bg-brand-brown flex flex-col items-center justify-center text-brand-beige px-6 py-4">
|
||||
<Link
|
||||
href={`/${locale}#works`}
|
||||
className="w-full mb-10 inline-flex items-center justify-start gap-2 text-sm text-brand-beige"
|
||||
>
|
||||
<GoArrowLeft /> Retour aux projets
|
||||
</Link>
|
||||
|
||||
<div className="mx-auto flex min-h-[360px] max-w-4xl flex-col items-center justify-center text-center">
|
||||
<h1 className="text-5xl font-semibold md:text-7xl">{title}</h1>
|
||||
<p className="mt-4 text-lg text-white/80 md:text-2xl">{subtitle}</p>
|
||||
<div className="mx-auto flex min-h-90 max-w-4xl flex-col items-center justify-center text-center">
|
||||
<h1 className="text-5xl font-serif md:text-7xl">{title}</h1>
|
||||
<p className="mt-4 font-sans text-base text-brand-beige/80">{description}</p>
|
||||
|
||||
<div className="mt-8 flex items-center gap-4 text-sm text-white/70">
|
||||
<span className="h-px w-16 bg-white/30" />
|
||||
<span>{year}</span>
|
||||
<span className="h-px w-16 bg-white/30" />
|
||||
<div className="mt-8 flex items-center gap-4 text-sm text-brand-beige/70">
|
||||
<span className="h-px w-16 bg-white/30" />
|
||||
<span>{dateLabel}</span>
|
||||
<span className="h-px w-16 bg-white/30" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
type Props = {
|
||||
year: number;
|
||||
type props = {
|
||||
dateLabel: string;
|
||||
category: string;
|
||||
roles: string[];
|
||||
client: string;
|
||||
@@ -20,10 +20,10 @@ function Item({
|
||||
);
|
||||
}
|
||||
|
||||
export function ProjectMeta({ year, category, roles, client }: Props) {
|
||||
export function ProjectMeta({ dateLabel, category, roles, client }: props) {
|
||||
return (
|
||||
<section className="grid gap-8 py-10 md:grid-cols-4">
|
||||
<Item label="Année">{year}</Item>
|
||||
<Item label="Année">{dateLabel}</Item>
|
||||
<Item label="Catégorie">{category}</Item>
|
||||
<Item label="Rôles">
|
||||
<div className="flex flex-col gap-1">
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
type Props = {
|
||||
type props = {
|
||||
technologies: string[];
|
||||
};
|
||||
|
||||
export function ProjectTechnologies({ technologies }: Props) {
|
||||
export function ProjectTechnologies({ technologies }: props) {
|
||||
return (
|
||||
<section className="pb-16">
|
||||
<p className="mb-4 text-sm text-neutral-500">Technologies</p>
|
||||
@@ -11,7 +11,7 @@ export function ProjectTechnologies({ technologies }: Props) {
|
||||
{technologies.map((tech) => (
|
||||
<span
|
||||
key={tech}
|
||||
className="rounded-full bg-[#2b160f] px-4 py-2 text-sm text-white"
|
||||
className="rounded-full bg-brand-brown px-4 py-2 text-sm text-white"
|
||||
>
|
||||
{tech}
|
||||
</span>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Project } from "@/lib/projects/types";
|
||||
import { ProjectCard } from "../ui/ProjectCard";
|
||||
|
||||
type Props = {
|
||||
type props = {
|
||||
projects: Project[];
|
||||
locale: string;
|
||||
};
|
||||
|
||||
export default function WorksSection({ projects, locale }: Props) {
|
||||
export default function WorksSection({ projects, locale }: props) {
|
||||
return (
|
||||
<section id="works" className="w-full flex flex-col items-start justify-start">
|
||||
<h2 className="text-[clamp(80px,10vw,128px)] font-serif text-brand-brown mt-6 mb-4">Travaux</h2>
|
||||
|
||||
Reference in New Issue
Block a user