Skip to content

Commit a55d039

Browse files
committed
Mobile support for community section
1 parent bf63835 commit a55d039

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/routes/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default function Home() {
248248
</div>
249249
</div>
250250
</div>
251-
<div class="lg:mt-[180px] xl:mt-[300px] mb-[30px] w-full lg:max-w-[754px] xl:max-w-[1060px] mx-auto aspect-square flex justify-center items-center rounded-full border-[2px] border-[#d2d2d2] relative">
251+
<div class="mt-[140px] lg:mt-[180px] xl:mt-[300px] mb-[30px] w-[520px] ml-[calc((100vw-520px)/2)] lg:ml-auto lg:w-full lg:max-w-[754px] xl:max-w-[1060px] mr-auto aspect-square flex justify-center items-center rounded-full border-[2px] border-[#d2d2d2] relative">
252252
<img
253253
src="/divesea/images/2.webp"
254254
class="object-cover rounded-full aspect-square w-52/1060 border-[2px] border-white absolute top-120/1060 left-657/1060"
@@ -282,23 +282,23 @@ export default function Home() {
282282
class="object-cover rounded-full aspect-square w-65/1060 border-[2px] border-white absolute top-50/1060 left-217/1060"
283283
/>
284284
<div class="w-830/1060 aspect-square flex flex-col items-center justify-center rounded-full border-[2px] border-[#d2d2d2]">
285-
<h2 class="capitalize font-[Poppins] font-bold lg:text-[32px]/[38px] xl:text-[45px]/[54px] text-[#18181b] text-center">
285+
<h2 class="capitalize font-[Poppins] font-bold text-[22px]/[26px] lg:text-[32px]/[38px] xl:text-[45px]/[54px] text-[#18181b] text-center">
286286
Join The
287287
<br />
288288
<span class="text-[#c5c5c5]">Community</span>
289289
</h2>
290-
<p class="text-center font-[Poppins] font-normal lg:text-[12px]/[22px] xl:text-[18px]/[32px] text-[#12141d] lg:mt-[22px] xl:mt-[30px] max-w-75/100">
290+
<p class="text-center font-[Poppins] font-normal text-[12px]/[22px] xl:text-[18px]/[32px] text-[#12141d] mt-[14px] lg:mt-[22px] xl:mt-[30px] max-w-75/100">
291291
Our vibrant community is full of collectors, artists, and enthusiasts who share a passion for
292292
one-of-a-kind digital.
293293
</p>
294-
<div class="lg:mt-[34px] xl:mt-[50px]">
294+
<div class="mt-[24px] lg:mt-[34px] xl:mt-[50px]">
295295
<Button size="xs" fill>
296296
Join Our Community
297297
</Button>
298298
</div>
299299
</div>
300300
</div>
301-
<div class="px-[27px] lg:px-[70px] xl:px-[100px] mt-[140px] lg:mt-[120px] w-full">
301+
<div class="px-[27px] lg:px-[70px] xl:px-[100px] mt-[100px] lg:mt-[120px] w-full">
302302
<a class="anchor" id="sell" />
303303
<div class="w-full max-w-[1245px] rounded-2xl bg-[#141416] flex flex-col lg:flex-row gap-[36px] lg:gap-0 justify-between px-[40px] py-[22px] lg:px-[31px] lg:py-[31px] mx-auto">
304304
<div class="flex flex-col lg:mt-[13.22px] lg:ml-[35px] items-center text-center lg:items-start lg:text-start">

src/shared/ui/Button/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ export const button = tv({
44
base: "rounded-xl lg:rounded-2-xl whitespace-nowrap font-semibold cursor-pointer hover:scale-102 transition active:scale-98",
55
variants: {
66
size: {
7-
xs: "capitalize font-[Poppins] font-medium lg:text-[10px] lg:px-[16px] lg:py-[12px] xl:text-[14px] xl:px-[22px] xl:py-[18px]",
7+
xs: "capitalize font-[Poppins] font-medium text-[12px] px-[16px] py-[12px] lg:text-[10px] lg:px-[16px] lg:py-[12px] xl:text-[14px] xl:px-[22px] xl:py-[18px]",
88
sm: "uppercase font-[Poppins] text-[10px] px-[18px] py-[10px] xl:text-[14px] xl:px-[26px] xl:py-[16px]",
99
md: "uppercase font-[Poppins] text-[12px] px-[21px] py-[15px] xl:text-[16px] xl:px-[30px] xl:py-[18px]",
1010
lg: "uppercase font-[Poppins] lg:text-[17px] lg:px-[24px] lg:py-[16px]",
11-
xl: "capitalize font-[Outfit] text-[12px] px-[12px] py-[10px] lg:text-[16px] lg:px-[18px] lg:py-[14px] xl:text-[22px] xl:px-[26px] xl:py-[20px]",
11+
xl: "capitalize font-[Outfit] text-[12px] px-[14px] py-[10px] lg:text-[16px] lg:px-[18px] lg:py-[14px] xl:text-[22px] xl:px-[26px] xl:py-[20px]",
1212
xl2: "capitalize font-[Outfit] text-[12px] px-[14px] py-[10px] lg:text-[16px] lg:px-[22px] lg:py-[14px] xl:text-[22px] xl:px-[30px] xl:py-[20px]",
1313
},
1414
fill: { true: "" },

0 commit comments

Comments
 (0)