Skip to content

Commit c913642

Browse files
committed
responsiveness
1 parent ffc2bba commit c913642

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

src/components/card-split/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export function CardSplit({ textPrimary, textSecondary, textSecondarySmall, clas
1111
return (
1212
<Glass
1313
className={cn(
14-
"inline-flex max-w-full overflow-hidden rounded-rectangles border-white/50 bg-background-blur p-0 text-card-foreground",
14+
"inline-flex w-67 overflow-hidden rounded-rectangles border-white/50 bg-background-blur p-0 text-card-foreground md:w-full md:max-w-full",
1515
className
1616
)}
1717
>
18-
<div className="flex flex-col gap-10 px-10 py-5 sm:grid sm:grid-cols-[auto_auto] sm:items-center">
18+
<div className="flex w-full items-center justify-center gap-10 px-6 py-5 md:px-10">
1919
{textPrimary ? <CardSplitPrimaryContent text={textPrimary} /> : null}
2020

2121
{hasSecondaryContent && (

src/components/card-split/primary-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function CardSplitPrimaryContent({ text }: { text: string }) {
22
return (
3-
<p className="typo-display-medium bg-linear-to-b from-blue-secondary to-blue-primary bg-clip-text font-normal text-transparent">
3+
<p className="typo-headline-small md:typo-display-medium bg-linear-to-b from-blue-secondary to-blue-primary bg-clip-text font-normal text-transparent">
44
{text}
55
</p>
66
)

src/components/card-split/secondary-content.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ export function CardSplitSecondaryContent({
1313
}: CardSplitSecondaryContentProps) {
1414
return (
1515
<div className={cn("flex flex-col gap-1", hasPrimaryContent ? "sm:min-w-fit" : "")}>
16-
{textSecondary && <p className="typo-headline-small text-text-primary">{textSecondary}</p>}
17-
{textSecondarySmall && <p className="typo-body-medium text-text-primary">{textSecondarySmall}</p>}
16+
{textSecondary && <p className="typo-label-large md:typo-headline-small text-text-primary">{textSecondary}</p>}
17+
{textSecondarySmall && (
18+
<p className="typo-body-small md:typo-body-medium text-text-primary">{textSecondarySmall}</p>
19+
)}
1820
</div>
1921
)
2022
}

src/components/footer.tsx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Image from "next/image"
2-
import { FaChevronDown, FaGithub } from "react-icons/fa"
2+
import { FaGithub } from "react-icons/fa"
3+
import { FiChevronDown } from "react-icons/fi"
34
import { FiFacebook, FiGithub, FiInstagram, FiLinkedin } from "react-icons/fi"
45
import discord from "@/assets/icons/discord.svg"
56
import telegram from "@/assets/icons/telegram.svg"
@@ -28,12 +29,12 @@ interface FooterAccordionProps {
2829

2930
function FooterAccordion({ title, links }: FooterAccordionProps) {
3031
return (
31-
<details className="group">
32-
<summary className="flex cursor-pointer list-none items-center gap-2 [&::-webkit-details-marker]:hidden">
32+
<details className="group text-text-secondary">
33+
<summary className="flex cursor-pointer list-none items-center gap-1 [&::-webkit-details-marker]:hidden">
3334
{title}
34-
<FaChevronDown className="h-4 w-4 transition-transform group-open:rotate-180" />
35+
<FiChevronDown className="size-4 transition-transform group-open:rotate-180" />
3536
</summary>
36-
<div className="mt-2 flex flex-col gap-2 pl-2 text-gray-500 text-sm">
37+
<div className="mt-2 flex flex-col gap-2 pl-2 text-sm">
3738
{links.map((link) => (
3839
<FooterLink key={link.label} href={link.href}>
3940
{link.label}
@@ -66,7 +67,7 @@ const sitemapSections = [
6667
{ label: "Associations", href: "/" },
6768
],
6869
},
69-
{ type: "text" as const, label: "Terms & conditions" },
70+
{ type: "text" as const, label: "Terms & Conditions" },
7071
{
7172
type: "accordion" as const,
7273
title: "About",
@@ -138,12 +139,12 @@ export function Footer() {
138139
</div>
139140
</div>
140141

141-
<div className="flex flex-col gap-8 max-md:w-full md:max-w-md md:justify-self-end">
142+
<div className="flex flex-col gap-8 max-md:w-full max-md:items-center md:max-w-md md:justify-self-end">
142143
<CardSplit textPrimary="5x1000" textSecondary="Sostienici!" textSecondarySmall="CF: 97927490157" />
143144

144145
<div id="sitemap" className="flex w-full flex-col gap-4">
145146
<h3 className="typo-label-extralarge md:typo-headline-small">Visita il sito</h3>
146-
<div className="typo-body-large grid grid-cols-2 items-start gap-x-4 gap-y-4 text-gray-600">
147+
<div className="typo-body-large grid grid-cols-2 items-start gap-x-4 gap-y-4 text-text-secondary">
147148
{sitemapSections.map((section) =>
148149
section.type === "accordion" ? (
149150
<FooterAccordion key={section.title} title={section.title} links={section.links} />
@@ -158,7 +159,7 @@ export function Footer() {
158159

159160
<div
160161
id="copyright"
161-
className="typo-body-small md:typo-body-large mt-36 mb-12 ml-36 text-center text-text-secondary md:text-left"
162+
className="typo-body-small md:typo-body-large mt-36 text-center text-text-secondary max-md:w-full md:mb-12 md:ml-36 md:text-left"
162163
>
163164
PoliNetwork 2016-2026 © All rights reserved
164165
</div>

0 commit comments

Comments
 (0)