Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: about section layout #69

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/components/aboutsection.tsx
gxnca marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"use client";

import CustomLink from "./link";
import { useDictionary } from "@/contexts/dictionary-provider";


interface AboutSectionProps {
title: string;
subtitle: string;
children: React.ReactNode;
}

const AboutsectionLayout = ({ title, subtitle, children }: AboutSectionProps) => {
const dict = useDictionary();

return (
<div className="flex flex-col items-stretch px-6 pt-10 sm:flex-row sm:p-12">
<div className="flex w-full mb-4 sm:mr-6 sm:w-20">
<div className="flex h-fit items-start justify-center sm:h-full sm:w-full">
<span className="w-fit origin-right font-title text-2xl font-medium sm:translate-x-[-50%] sm:translate-y-[-50%] sm:-rotate-90 sm:pr-1 sm:text-3xl">
{title}
</span>
</div>
</div>

<div>
<div className="flex justify-start">{subtitle}</div>

<div className="sm:my-10 my-7">{children}</div>

<div className="hidden sm:block">
<CustomLink title={dict.button.see_more} href="#" arrow="forward" />
gxnca marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
</div>
);
};

export default AboutsectionLayout;
1 change: 1 addition & 0 deletions src/internationalization/dictionaries/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"button": {
"see_team": "Go to team",
"learn_more": "Learn more",
"see_more": "See more",
"back": "Go Back"
},
"collaborate_card": {
Expand Down
1 change: 1 addition & 0 deletions src/internationalization/dictionaries/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"button": {
"see_team": "Ver direção",
"learn_more": "Saber mais",
"see_more": "Ver mais",
"back": "Voltar"
},
"collaborate_card": {
Expand Down