Skip to content

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

fix: swap <Button as="a" /> for <a /> tags in www

Alaister Young6646d962b8f5
diff --git a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
index a8e0585f81c..e499c4c40ff 100644
--- a/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
+++ b/apps/www/components/LaunchWeek/LaunchSection/TicketBrickWall.tsx
@@ -14,10 +14,10 @@ interface Props {
export default function TicketBrickWall({ users }: Props) {
const isMobile = useMobileViewport(768)
return (
- <div className="relative pt-28 pb-20 md:pt-40">
+ <div className="relative pb-20 pt-28 md:pt-40">
<div className="mx-auto bg-[#1C1C1C]">
<div className="max-w-[38rem] mb-8 mx-auto">
- <h2 className="radial-gradient-text-scale-500 text-center">
+ <h2 className="text-center radial-gradient-text-scale-500">
Explore the unique tickets generated by our community
</h2>
</div>
@@ -34,11 +34,13 @@ export default function TicketBrickWall({ users }: Props) {
/>
{isMobile && <TicketBrickWallSlider users={users.slice(11, 17)} speed={16000} />}
</div>
- <div className="w-full mt-2 lg:mt-4 mx-auto flex justify-center">
+ <div className="flex justify-center w-full mx-auto mt-2 lg:mt-4">
<Link href="/launch-week/tickets">
- <Button as="a" type="outline" size="medium">
- View all tickets
- </Button>
+ <a>
+ <Button type="outline" size="medium">
+ View all tickets
+ </Button>
+ </a>
</Link>
</div>
</div>
diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsx
index f5530239561..17e7eeac174 100644
--- a/apps/www/components/Nav/index.tsx
+++ b/apps/www/components/Nav/index.tsx
@@ -273,41 +273,39 @@ const Nav = () => {
</div>
</div>
<div className="flex items-center gap-2">
- <Button
- as="a"
- className="hidden group lg:flex"
- // @ts-ignore
- href="https://github.com/supabase/supabase"
- target="_blank"
- type="text"
- icon={
- <div className="flex items-center justify-center w-4 h-4 text-brand-800">
- <div
- className={[
- `text-scale-900 flex h-3 w-3 items-center justify-center
+ <a href="https://github.com/supabase/supabase" target="_blank">
+ <Button
+ className="hidden group lg:flex"
+ type="text"
+ icon={
+ <div className="flex items-center justify-center w-4 h-4 text-brand-800">
+ <div
+ className={[
+ `text-scale-900 flex h-3 w-3 items-center justify-center
- transition-all
- group-hover:h-4
- group-hover:w-4
- group-hover:text-yellow-900
- group-focus:h-4
- group-focus:w-4
+ transition-all
+ group-hover:h-4
+ group-hover:w-4
+ group-hover:text-yellow-900
+ group-focus:h-4
+ group-focus:w-4
- group-focus:text-yellow-900`,
- showLaunchWeekNavMode && '!text-white',
- ].join(' ')}
- >
- <IconStar strokeWidth={2} />
+ group-focus:text-yellow-900`,
+ showLaunchWeekNavMode && '!text-white',
+ ].join(' ')}
+ >
+ <IconStar strokeWidth={2} />
+ </div>
</div>
- </div>
- }
- >
- <span
- // className={isLaunchWeekPage ? '!text-white' : ''}
+ }
>
- Star us on GitHub
- </span>
- </Button>
+ <span
+ // className={isLaunchWeekPage ? '!text-white' : ''}
+ >
+ Star us on GitHub
+ </span>
+ </Button>
+ </a>
{isLoggedIn ? (
<Link href="/dashboard/projects">
diff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers/index.tsx
index e69ad552801..b7601649b48 100644
--- a/apps/www/pages/careers/index.tsx
+++ b/apps/www/pages/careers/index.tsx
@@ -110,14 +110,11 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {
<p className="text-sm md:text-base text-scale-1000 max-w-sm sm:max-w-md md:max-w-lg mx-auto">
Explore remote possibilities and join our team to help us achieve it.
</p>
- <Button
- as="a"
- // @ts-ignore
- href="#positions"
- className="text-white xl:text-sm"
- >
- Open positions
- </Button>
+ <a href="#positions">
+ <Button className="text-white xl:text-sm">
+ Open positions
+ </Button>
+ </a>
</div>
<SectionContainer>
diff --git a/apps/www/pages/launch-week/tickets/index.tsx b/apps/www/pages/launch-week/tickets/index.tsx
index 594dd73a240..05c1bdb31df 100644
--- a/apps/www/pages/launch-week/tickets/index.tsx
+++ b/apps/www/pages/launch-week/tickets/index.tsx
@@ -148,9 +148,11 @@ export default function TicketsPage({ users }: Props) {
</p>
<div className="mt-1">
<Link href="/launch-week">
- <Button as="a" type="outline" size="medium">
- Get your ticket now
- </Button>
+ <a>
+ <Button type="outline" size="medium">
+ Get your ticket now
+ </Button>
+ </a>
</Link>
</div>
</motion.div>