Skip to content

Commit 1829903

Browse files
committed
feat: create dotted borders
1 parent 1506d63 commit 1829903

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/components/sections/homepage/Main.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ export default function MainSection(): ReactElement {
4141
<Section type="default" padding="p-0">
4242
<div className="w-full lg:py-24 pt-24 pb-8">
4343
<h1 className="lg:text-8xl md:text-6xl text-5xl leading-none tracking-tighter">{t("page.index.main.title")}</h1>
44-
<p className="lg:text-8xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-gray-400 tracking-tighter leading-none">
45-
{t("page.index.main.subtitle")}
46-
</p>
44+
<p className="lg:text-8xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-gray-400 tracking-tighter leading-none">{t("page.index.main.subtitle")}</p>
4745
</div>
4846
<div className="flex justify-between">
4947
<div className="w-full max-w-xs hidden lg:block">
@@ -54,9 +52,9 @@ export default function MainSection(): ReactElement {
5452
</Link>
5553
<VideoPopup />
5654
</div>
57-
<div className="flex flex-col md:flex-row md:divide-y-0 divide-y divide-gray-900 divide-dotted space-y-5 md:space-y-0 space-x-0 md:space-x-5 justify-end">
55+
<div className="flex flex-col md:flex-row space-y-5 md:space-y-0 space-x-0 md:space-x-5 justify-end">
5856
{cards.map((card, i) => (
59-
<div key={`numbered-card-${i}`} className="w-full lg:max-w-.5xs pt-5 md:pt-0">
57+
<div key={`numbered-card-${i}`} className="w-full lg:max-w-.5xs divide-dotted-custom">
6058
<NumberedCard index={i + 1} title={t(card.title) as string} text={t(card.body) as string} />
6159
</div>
6260
))}

src/styles/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,16 @@ div {
459459
.markdown-content h2 {
460460
font-size: 1.25rem !important;
461461
}
462+
.divide-dotted-custom:not(:first-child):before {
463+
content: "";
464+
display: block;
465+
height: 0.25rem;
466+
margin-bottom: 1.25rem;
467+
background-image: linear-gradient(to right, #E5E7EB 25%, transparent 20%);
468+
background-size: 0.625rem 0.313rem;
469+
background-repeat: repeat-x;
470+
}
471+
462472
}
463473

464474
.web3modal-modal-lightbox {

0 commit comments

Comments
 (0)