Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

margin, padding, media query changes

Francisco Mazzoni4ede168ee1d4
diff --git a/apps/www/components/LaunchWeek/Ticket/form.module.css b/apps/www/components/LaunchWeek/Ticket/form.module.css
index 6fe7abf9e9c..bb3534f3fe1 100644
--- a/apps/www/components/LaunchWeek/Ticket/form.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/form.module.css
@@ -47,7 +47,6 @@
.formInfoLeft {
text-align: center;
- margin: 0 auto;
}
.formInfoCenter {
text-align: center;
diff --git a/apps/www/components/LaunchWeek/Ticket/form.tsx b/apps/www/components/LaunchWeek/Ticket/form.tsx
index a7207db51da..04579414957 100644
--- a/apps/www/components/LaunchWeek/Ticket/form.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/form.tsx
@@ -155,16 +155,16 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
useEmailQueryParam('email', setEmail)
return (
- <div className="mt-16">
+ <div className="xs:mt-8 lw_mid:mt-16">
<div
className={cn(
styleUtils['appear-fifth'],
[styles[`formInfo${align}`]].join(' '),
- `grid gap-2 items-center max-w-[420px] !pb-4`
+ `flex flex-col gap-2 sm:items-center lw_mid:items-start !pb-4`
)}
>
<p className="text-scale-1200 text-base w-full">Coming soon</p>
- <p className="text-scale-1000 text-base">
+ <p className="text-scale-1000 text-base max-w-[420px]">
Register to get your ticket and stay tuned all week for daily announcements
</p>
</div>
@@ -188,7 +188,7 @@ export default function Form({ sharePage, align = 'Center' }: Props) {
</div>
</div>
) : (
- <form className="relative max-w-[380px] m-auto" onSubmit={onSubmit}>
+ <form className="relative max-w-[380px] xs:m-auto lw_mid:ml-0" onSubmit={onSubmit}>
<input
className={`
transition-all
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-info.module.css b/apps/www/components/LaunchWeek/Ticket/ticket-info.module.css
index 1bb38c9d1f5..9611ea8d805 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket-info.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/ticket-info.module.css
@@ -17,6 +17,13 @@
}
}
+@media (max-width: 768px) {
+ .info {
+ flex-direction: column;
+ align-items: center;
+ }
+}
+
.logo {
/* margin-bottom: var(--space-6x); */
/* max-width: 96px; */
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css b/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
index 4d95ed40db6..d44937f980d 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
+++ b/apps/www/components/LaunchWeek/Ticket/ticket-visual.module.css
@@ -35,6 +35,12 @@
/* border-image-source: linear-gradient(to left, var(--gold-secondary), var(--gold-accent)); */
}
+@media (max-width: 768px) {
+ .visual {
+ background-size: cover;
+ }
+}
+
/* .svg-shadow {
} */
diff --git a/apps/www/components/LaunchWeek/Ticket/ticket.tsx b/apps/www/components/LaunchWeek/Ticket/ticket.tsx
index 6a9b0c341b0..065ecf22412 100644
--- a/apps/www/components/LaunchWeek/Ticket/ticket.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/ticket.tsx
@@ -45,7 +45,7 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
// scrollTo(divRef.current, -30)
// }
// }, [divRef, sharePage])
- golden = true
+ // golden = true
return (
<div
className={cn(styles['ticket-layout'], {
@@ -54,7 +54,7 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
>
<div ref={divRef}>
<div
- className={`${styles['ticket-text']} text-scale-1200 flex flex-col items-center xl:block`}
+ className={`${styles['ticket-text']} text-scale-1200 flex flex-col items-center lw_mid:items-start xl:block`}
>
<h1
className={cn(
@@ -82,7 +82,7 @@ export default function Ticket({ username, name, ticketNumber, sharePage, golden
</h1>
<h2 className="text-sm dark:text-scale-900 text-[#7E868C] max-w-[380px]">
{sharePage ? (
- <p className="mb-24">
+ <p className="xs:mb-12 lw_mid:mb-24">
Join {name ?? 'us'} on {DATE}.
</p>
) : golden ? (
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 3b2990d9063..4c1a500e06e 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -86,7 +86,7 @@ export default function launchweek() {
Register to get your ticket and stay tuned all week for daily announcements
</p> */}
{/* </SectionContainer> */}
- <SectionContainer className="flex flex-col items-center md:!p-0">
+ <SectionContainer className="flex flex-col items-center xs:!p-0">
{/* <form className="m-4 flex bg-scale-200 border-scale-600 border-2 rounded-full p-0.5 pl-1 min-w-[260px]">
<input
className="mr-0 text-scale-1200 text-xs bg-scale-200 p-1 rounded-full w-full"
diff --git a/packages/config/tailwind.config.js b/packages/config/tailwind.config.js
index 3ca14d61c04..67e56c0c467 100644
--- a/packages/config/tailwind.config.js
+++ b/packages/config/tailwind.config.js
@@ -168,6 +168,10 @@ module.exports = ui({
},
},
}),
+ screens: {
+ xs: '320px',
+ lw_mid: '1200px',
+ },
// screens: {
// sm: '640px',
// // => @media (min-width: 640px) { ... }