Skip to content

Commit b1fae0f

Browse files
committed
fix: use 24 px gap between each section
1 parent ce2052c commit b1fae0f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/sections/challenges/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function ChallengeHeader(): ReactElement {
1616
const challenge = useSelector((state) => state.challenges.current);
1717

1818
return (
19-
<div>
19+
<div className="space-y-6">
2020
<Header isTeamChallenge={challenge?.isTeamChallenge} title={challenge?.name} subtitle={t("communities.challenge.title")} isHackathon={challenge?.isHackathon} />
2121
<Section subtitle={challenge?.description} />
2222
</div>

src/components/sections/communities/_partials/Section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface SectionProps {
3333
}
3434
* @returns {ReactElement}
3535
*/
36-
export default function Section({ title, titleBold = true, subtitle, id, hideSubtitleOnMobile = false, children, className }: SectionProps): ReactElement {
36+
export default function Section({ title, titleBold = true, subtitle, id, hideSubtitleOnMobile = false, children, className = "" }: SectionProps): ReactElement {
3737
return (
3838
<div id={id} className={`text-xl md:text-.5xl px-0 py-6 ${className}`}>
3939
{title && <H3 bold={titleBold}>{title}</H3>}

src/components/ui/accordion/Accordion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Accordion: React.FC<AccordionProps> = ({ title, subtitle, content, isExpan
1717
};
1818

1919
return (
20-
<div className="mt-2">
20+
<div>
2121
<div className={`flex gap-2 justify-between cursor-pointer ${!title && "items-start"}`} onClick={toggleAccordion}>
2222
<div>
2323
{title && <H3>{title}</H3>}

src/pages/communities/[slug]/challenges/[challenge_id]/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default function ChallengePage() {
125125
<MetaData description={challenge?.description} />
126126
</Head>
127127
<Wrapper paths={headerPaths}>
128-
<div className="flex flex-col py-4 space-y-8 text-gray-700 divide-y divide-gray-200 divide-solid">
128+
<div className="flex flex-col py-4 text-gray-700 divide-y divide-gray-200 divide-solid">
129129
<Header />
130130
<Rewards />
131131
<Objectives />
@@ -141,7 +141,7 @@ export default function ChallengePage() {
141141
<Loader />
142142
</div>
143143
) : (
144-
<div className="grid mt-8 space-y-8">
144+
<div className="grid mt-6">
145145
<Hint>
146146
<p
147147
dangerouslySetInnerHTML={{

0 commit comments

Comments
 (0)