Skip to content

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

fix more links

Jonathan Summers-Muir5b8c9ae0db60
diff --git a/www/components/Features/index.tsx b/www/components/Features/index.tsx
index 9f8b6c294d0..fb5dc7d85df 100644
--- a/www/components/Features/index.tsx
+++ b/www/components/Features/index.tsx
@@ -1,8 +1,10 @@
-import { Button, Badge, Typography } from '@supabase/ui'
+import { Button, Badge, Typography, IconArrowRight } from '@supabase/ui'
import SectionHeader from 'components/UI/SectionHeader'
import Solutions from 'data/Solutions.json'
+import Link from 'next/link'
import SectionContainer from '../Layouts/SectionContainer'
import ProductIcon from '../ProductIcon'
+import TextLink from '../TextLink'
const Features = () => {
const IconSections = Object.values(Solutions).map((solution: any) => {
@@ -25,13 +27,7 @@ const Features = () => {
<Badge dot>{label}</Badge>
</div>
)}
- {url && (
- <a href={url} className="block mt-3">
- <Typography.Link style={{ textDecoration: 'underline' }} className="mt-5">
- Learn more
- </Typography.Link>
- </a>
- )}
+ {url && <TextLink label={label ? 'Get notified' : 'Learn more'} url={url} />}
</div>
)
})
diff --git a/www/components/Hero.tsx b/www/components/Hero.tsx
index 64b396948ab..f590868a5b0 100644
--- a/www/components/Hero.tsx
+++ b/www/components/Hero.tsx
@@ -1,4 +1,5 @@
import { Button, IconBookOpen, Space, Typography } from '@supabase/ui'
+import Link from 'next/link'
import { useRouter } from 'next/router'
import SectionContainer from './Layouts/SectionContainer'
@@ -26,21 +27,28 @@ const Hero = () => {
<p className="mt-3 text-base">Storage and serverless functions coming soon</p>
</Typography.Text>
<Space>
- <a href="https://app.supabase.io/api/login">
- <Button className="mt-10 py-3" size="medium">
- Start your project
- </Button>
- </a>
- <a href="https://app.supabase.io/api/login">
- <Button
- className="mt-10 py-3"
- size="medium"
- type="text"
- icon={<IconBookOpen />}
- >
- Documentation
- </Button>
- </a>
+ <Link
+ href="https://app.supabase.io/api/login"
+ as="https://app.supabase.io/api/login"
+ >
+ <a>
+ <Button className="mt-10 py-3" size="medium">
+ Start your project
+ </Button>
+ </a>
+ </Link>
+ <Link href="https://app.supabase.io/docs" as="https://app.supabase.io/docs">
+ <a>
+ <Button
+ className="mt-10 py-3"
+ size="medium"
+ type="text"
+ icon={<IconBookOpen />}
+ >
+ Documentation
+ </Button>
+ </a>
+ </Link>
</Space>
<p className="mt-8 text-sm text-dark-400 tracking-wide sm:mt-10">backed by</p>
<div className="mt-5 w-full sm:max-w-lg lg:ml-0">
diff --git a/www/components/MadeForDevelopers/index.tsx b/www/components/MadeForDevelopers/index.tsx
index 086bf0c9892..cf14c7b2e14 100644
--- a/www/components/MadeForDevelopers/index.tsx
+++ b/www/components/MadeForDevelopers/index.tsx
@@ -6,6 +6,7 @@ import FeatureColumn from '../FeatureColumn'
import CodeExamples from 'data/home/api-examples'
import DeveloperFeatures from 'data/DeveloperFeatures.json'
import Link from 'next/link'
+import TextLink from '../TextLink'
const MadeForDevelopers = () => {
return (
@@ -43,21 +44,9 @@ const MadeForDevelopers = () => {
</div>
)}
{feature.badge ? (
- <Link href={feature.url} as={feature.url}>
- <a>
- <Button type="default" icon={<IconMail />}>
- {'Get notified'}
- </Button>
- </a>
- </Link>
+ <TextLink url={feature.url} label="Get notified" />
) : (
- <Link href={feature.url} as={feature.url}>
- <a>
- <Button type="default" icon={<IconArrowUpRight />}>
- {'Explore more'}
- </Button>
- </a>
- </Link>
+ <TextLink url={feature.url} label="Explore more" />
)}
</dt>
</div>
diff --git a/www/components/TextLink.tsx b/www/components/TextLink.tsx
new file mode 100644
index 00000000000..04dc5e291a3
--- /dev/null
+++ b/www/components/TextLink.tsx
@@ -0,0 +1,19 @@
+import { IconArrowRight } from '@supabase/ui'
+import Link from 'next/link'
+
+function TextLink({ url, label }: any) {
+ return (
+ <Link href={url} as={url}>
+ <a className="block text-sm text-gray-400 dark:text-gray-400 mt-3">
+ <div className="flex items-center">
+ <span>{label}</span>
+ <span className="ml-2">
+ <IconArrowRight size="tiny" />
+ </span>
+ </div>
+ </a>
+ </Link>
+ )
+}
+
+export default TextLink
diff --git a/www/data/DeveloperFeatures.json b/www/data/DeveloperFeatures.json
index 4865fde0ada..536a30dbb94 100644
--- a/www/data/DeveloperFeatures.json
+++ b/www/data/DeveloperFeatures.json
@@ -2,13 +2,13 @@
{
"name": "TypeScript Support",
"description": "Type definitions built directly from your database schema",
- "badge": null,
+ "badge": "",
"url": "/docs/client/generating-types"
},
{
"name": "Install from CDN",
"description": "Use Supabase in the browser without a build process",
- "badge": null,
+ "badge": "",
"url": "/docs/client/initializing"
},
{