Skip to content

Commit d52690b

Browse files
authored
widthing of flathub page fixed (#105)
1 parent b063bfb commit d52690b

File tree

1 file changed

+49
-47
lines changed

1 file changed

+49
-47
lines changed

src/pages/TryNow/FlatHub.tsx

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -46,60 +46,62 @@ const FlatHubPage = () => {
4646

4747
<Header />
4848

49-
<FeatureSection data={flathubData} />
49+
<main className="container mx-auto px-4 sm:px-6 md:px-8 py-6">
50+
<FeatureSection data={flathubData} />
5051

51-
{flathubSections.map((section, index) => (
52-
<Paragraph
53-
key={index}
54-
title={section.title}
55-
content={section.content}
56-
button={section.button}
57-
buttonLink={section.buttonLink}
58-
/>
59-
))}
52+
{flathubSections.map((section, index) => (
53+
<Paragraph
54+
key={index}
55+
title={section.title}
56+
content={section.content}
57+
button={section.button}
58+
buttonLink={section.buttonLink}
59+
/>
60+
))}
6061

61-
<h2 className="text-3xl sm:text-4xl font-semibold border-b-2 border-gray-300 pb-2 font-[Caveat] text-center mx-auto w-fit mt-10">
62-
What can you do with <span className="text-[#68A6F7]">Flathub</span>?
63-
</h2>
62+
<h2 className="text-3xl sm:text-4xl font-semibold border-b-2 border-gray-300 pb-2 font-[Caveat] text-center mx-auto w-fit mt-10">
63+
What can you do with <span className="text-[#68A6F7]">Flathub</span>?
64+
</h2>
6465

65-
<div className="flex justify-center">
66-
<LogoCards data={flathubLogoCards} />
67-
</div>
66+
<div className="flex justify-center">
67+
<LogoCards data={flathubLogoCards} />
68+
</div>
6869

69-
<div className="flex flex-col md:flex-row justify-center space-y-4 md:space-y-0 md:space-x-4 my-8">
70-
<div className="w-full md:w-1/2">
71-
<h2 className="text-2xl font-semibold mb-4 text-center font-Caveat">
72-
Getting Started
73-
</h2>
74-
<div className="grid grid-cols-1 gap-4 mt-6 p-4">
75-
{numberedCards1.map((card, index) => (
76-
<NumberedCard
77-
key={index}
78-
number={card.number}
79-
title={card.title}
80-
description={card.description}
81-
borderColor={card.borderColor}
82-
/>
83-
))}
70+
<div className="flex flex-col md:flex-row justify-center space-y-4 md:space-y-0 md:space-x-4 my-8">
71+
<div className="w-full md:w-1/2">
72+
<h2 className="text-2xl font-semibold mb-4 text-center font-Caveat">
73+
Getting Started
74+
</h2>
75+
<div className="grid grid-cols-1 gap-4 mt-6 p-4">
76+
{numberedCards1.map((card, index) => (
77+
<NumberedCard
78+
key={index}
79+
number={card.number}
80+
title={card.title}
81+
description={card.description}
82+
borderColor={card.borderColor}
83+
/>
84+
))}
85+
</div>
8486
</div>
85-
</div>
86-
<div className="w-full md:w-1/2">
87-
<h2 className="text-2xl font-semibold mb-4 text-center font-[Caveat]">
88-
Next Steps
89-
</h2>
90-
<div className="grid grid-cols-1 gap-4 mt-6 p-4">
91-
{numberedCards2.map((card, index) => (
92-
<NumberedCard
93-
key={index}
94-
number={card.number}
95-
title={card.title}
96-
description={card.description}
97-
borderColor={card.borderColor}
98-
/>
99-
))}
87+
<div className="w-full md:w-1/2">
88+
<h2 className="text-2xl font-semibold mb-4 text-center font-[Caveat]">
89+
Next Steps
90+
</h2>
91+
<div className="grid grid-cols-1 gap-4 mt-6 p-4">
92+
{numberedCards2.map((card, index) => (
93+
<NumberedCard
94+
key={index}
95+
number={card.number}
96+
title={card.title}
97+
description={card.description}
98+
borderColor={card.borderColor}
99+
/>
100+
))}
101+
</div>
100102
</div>
101103
</div>
102-
</div>
104+
</main>
103105

104106
<Footer />
105107
</div>

0 commit comments

Comments
 (0)