mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
update lw archive links with native a tag
This commit is contained in:
1 parent
9686c3462a
commit
c05a62eddf
1 file changed
+6
-15
@@ -1,17 +1,8 @@
|
||||
import React from 'react'
|
||||
import { StyledArticleBadge } from './Releases/components'
|
||||
import Image from 'next/image'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
const LWArchive = () => {
|
||||
const router = useRouter()
|
||||
|
||||
const handleNavigate = (link: string) => {
|
||||
if (typeof window === 'undefined') return
|
||||
window.scrollTo(0, 0)
|
||||
router.push(link)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full text-white flex flex-col lg:flex-row gap-8 lg:gap-16">
|
||||
<div className="lg:basis-1/3 flex flex-col items-start gap-4">
|
||||
@@ -22,8 +13,8 @@ const LWArchive = () => {
|
||||
</p>
|
||||
</div>
|
||||
<div className="lg:basis-2/3 relative grid grid-cols-1 xl:grid-cols-2 gap-4">
|
||||
<button
|
||||
onClick={() => handleNavigate('/launch-week/6')}
|
||||
<a
|
||||
href="/launch-week/6"
|
||||
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111618] hover:border-brand-800 overflow-hidden"
|
||||
>
|
||||
<span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
|
||||
@@ -37,9 +28,9 @@ const LWArchive = () => {
|
||||
objectFit="cover"
|
||||
/>
|
||||
</div>
|
||||
</button>
|
||||
<button
|
||||
onClick={() => handleNavigate('/launch-week/7')}
|
||||
</a>
|
||||
<a
|
||||
href="/launch-week/7"
|
||||
className="relative h-[160px] group w-full rounded-md md:rounded-lg transition-transform bg-[#030A0C] flex items-center justify-center border border-[#111718] hover:border-brand-1200 overflow-hidden"
|
||||
>
|
||||
<span className="relative z-10 stroke-text inline-block text-transparent bg-clip-text bg-gradient-to-b from-scale-1200 to-scale-1000 text-7xl drop-shadow-lg">
|
||||
@@ -53,7 +44,7 @@ const LWArchive = () => {
|
||||
objectFit="cover"
|
||||
/>
|
||||
</div>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user