Skip to content

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

Fix/docs arrows (#4055)

Jonathan Summers-Muir62cf98332b4a
diff --git a/web/docs/about.mdx b/web/docs/about.mdx
index 8f6ed1c6df2..231111f3d0c 100755
--- a/web/docs/about.mdx
+++ b/web/docs/about.mdx
@@ -6,6 +6,15 @@ slug: /
hide_table_of_contents: true
---
+import AngularLogo from '@site/static/img/libraries/angular-icon.svg'
+import ExpoLogo from '@site/static/img/libraries/expo-icon.svg'
+import DartLogo from '@site/static/img/libraries/dart-icon.svg'
+import JavascriptLogo from '@site/static/img/libraries/javascript-icon.svg'
+import NextjsLogo from '@site/static/img/libraries/nextjs-icon.svg'
+import ReactLogo from '@site/static/img/libraries/react-icon.svg'
+import SvelteLogo from '@site/static/img/libraries/svelte-icon.svg'
+import VuejsLogo from '@site/static/img/libraries/vuejs-icon.svg'
+
import useBaseUrl from '@docusaurus/useBaseUrl'
import Link from '@docusaurus/Link'
import Tabs from '@theme/Tabs'
@@ -13,24 +22,24 @@ import TabItem from '@theme/TabItem'
const frameworks = [
{
name: 'Angular',
- logo: '/img/libraries/angular-icon.svg',
+ logo: AngularLogo,
href: '/docs/guides/with-angular',
},
{
name: 'Expo',
- logo: '/img/libraries/expo-icon.svg',
+ logo: ExpoLogo,
href: 'https://github.com/supabase/supabase/tree/master/examples/expo-todo-list',
},
- { name: 'Flutter', logo: '/img/libraries/dart-icon.svg', href: '/docs/guides/with-flutter' },
+ { name: 'Flutter', logo: DartLogo, href: '/docs/guides/with-flutter' },
{
name: 'Javascript',
- logo: '/img/libraries/javascript-icon.svg',
+ logo: JavascriptLogo,
href: 'https://github.com/supabase/supabase/tree/master/examples/javascript-auth',
},
- { name: 'Next.js', logo: '/img/libraries/nextjs-icon.svg', href: '/docs/guides/with-nextjs' },
- { name: 'React', logo: '/img/libraries/react-icon.svg', href: '/docs/guides/with-react' },
- { name: 'Svelte', logo: '/img/libraries/svelte-icon.svg', href: '/docs/guides/with-svelte' },
- { name: 'Vue', logo: '/img/libraries/vuejs-icon.svg', href: '/docs/guides/with-vue-3' },
+ { name: 'Next.js', logo: NextjsLogo, href: '/docs/guides/with-nextjs' },
+ { name: 'React', logo: ReactLogo, href: '/docs/guides/with-react' },
+ { name: 'Svelte', logo: SvelteLogo, href: '/docs/guides/with-svelte' },
+ { name: 'Vue', logo: VuejsLogo, href: '/docs/guides/with-vue-3' },
]
Supabase is an open source Firebase alternative.
@@ -84,19 +93,14 @@ Visit [app.supabase.io](https://app.supabase.io) to get started with the hosted
Supabase is just Postgres, which makes it compatible with a large number of tools and frameworks.
-<div class="container" style={{}}>
+<div>
<div class="row is-multiline">
{frameworks.map((x) => (
<div key={x.name} class="col col--3">
<Link class="card" to={x.href}>
<div class="card__body" style={{ display: 'flex', gap: 20, alignItems: 'center' }}>
{x.logo && (
- <img
- src={useBaseUrl(x.logo)}
- alt={x.name}
- width="20"
- style={{ display: 'block', maxHeight: 20 }}
- />
+ <x.logo width="20" alt={x.name} style={{ display: 'block', maxHeight: 20 }} />
)}
<p>{x.name}</p>
</div>
diff --git a/web/src/css/custom.css b/web/src/css/custom.css
index 55eae960ded..95833073212 100755
--- a/web/src/css/custom.css
+++ b/web/src/css/custom.css
@@ -418,7 +418,8 @@ nav.menu {
.navbar-sidebar__items .menu .menu__link.menu__link--sublist::after {
display: none;
}
-.menu__list-item svg, .navbar__link svg {
+.menu__list-item svg,
+.navbar__link svg {
display: none;
}
@@ -533,6 +534,16 @@ a.card:hover {
line-height: calc(var(--ifm-spacing-vertical) * 1);
}
+.menu__link--sublist {
+ margin-bottom: 0;
+ /* padding: 0; */
+}
+
+.menu__link {
+ /* padding: 0;
+ margin: 0; */
+}
+
/*
Link chevrons
*/
@@ -540,21 +551,25 @@ a.card:hover {
background-image: url('data:image/svg+xml;utf8,<svg alt="Arrow" xmlns="http://www.w3.org/2000/svg" viewBox="-6 -6 38 38"><path fill="inherit" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
mask-image: url('data:image/svg+xml;utf8,<svg alt="Arrow" xmlns="http://www.w3.org/2000/svg" viewBox="-6 -6 38 38"><path fill="inherit" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
-webkit-mask-size: cover;
- width: 21px;
+ width: 16px;
+ height: 16px;
mask-size: cover;
- background: var(--ifm-color-gray-900);
+ background: var(--ifm-color-gray-700);
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
transition: var(--ifm-transition-fast) ease;
+ transform-origin: center;
+ filter: none;
}
.menu .menu__link.menu__link--sublist:hover::after,
.menu .menu__link.menu__link--sublist.menu__link--active::after {
background-image: url('data:image/svg+xml;utf8,<svg alt="Arrow" xmlns="http://www.w3.org/2000/svg" viewBox="-6 -6 38 38"><path fill="inherit" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
mask-image: url('data:image/svg+xml;utf8,<svg alt="Arrow" xmlns="http://www.w3.org/2000/svg" viewBox="-6 -6 38 38"><path fill="inherit" d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"></path></svg>');
-webkit-mask-size: cover;
- width: 21px;
+ width: 16px;
+ height: 16px;
mask-size: cover;
- background: var(--ifm-color-gray-900);
+ background: var(--ifm-color-gray-700);
}
.menu .menu__list-item.menu__list-item--collapsed .menu__link--sublist::after {
@@ -949,7 +964,6 @@ html[data-theme='dark'] .DocSearch {
/* font-weight: 400; */
}
-
@media screen and (max-width: 580px) {
.navbar__items .navbar-item-github {
display: none !important;
@@ -978,7 +992,6 @@ html[data-theme='dark'] .navbar-item-github:before {
background-position: center;
}
-
@media screen and (max-width: 580px) {
.navbar__items .navbar-item-twitter {
display: none !important;
@@ -1319,4 +1332,4 @@ h4.method-list-item-label .method-list-item-validation {
details summary:hover {
cursor: pointer;
-}
\ No newline at end of file
+}
diff --git a/web/static/img/libraries/angular-icon.svg b/web/static/img/libraries/angular-icon.svg
index 5f8b0aaac49..cb08c6c22fd 100644
--- a/web/static/img/libraries/angular-icon.svg
+++ b/web/static/img/libraries/angular-icon.svg
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Vectornator for iOS (http://vectornator.io/) --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg height="100%" style="fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="100%" xmlns:vectornator="http://vectornator.io" version="1.1" viewBox="0 0 512 512">
<metadata>
-<vectornator:setting key="DimensionsVisible" value="1"/>
-<vectornator:setting key="PencilOnly" value="0"/>
-<vectornator:setting key="SnapToPoints" value="0"/>
-<vectornator:setting key="OutlineMode" value="0"/>
-<vectornator:setting key="CMYKEnabledKey" value="0"/>
-<vectornator:setting key="RulersVisible" value="1"/>
-<vectornator:setting key="SnapToEdges" value="0"/>
-<vectornator:setting key="GuidesVisible" value="1"/>
-<vectornator:setting key="DisplayWhiteBackground" value="0"/>
-<vectornator:setting key="doHistoryDisabled" value="0"/>
-<vectornator:setting key="SnapToGuides" value="1"/>
-<vectornator:setting key="TimeLapseWatermarkDisabled" value="0"/>
-<vectornator:setting key="Units" value="Points"/>
-<vectornator:setting key="DynamicGuides" value="0"/>
-<vectornator:setting key="IsolateActiveLayer" value="0"/>
-<vectornator:setting key="SnapToGrid" value="0"/>
+<vectornatorSsetting key="DimensionsVisible" value="1"/>
+<vectornatorSsetting key="PencilOnly" value="0"/>
+<vectornatorSsetting key="SnapToPoints" value="0"/>
+<vectornatorSsetting key="OutlineMode" value="0"/>
+<vectornatorSsetting key="CMYKEnabledKey" value="0"/>
+<vectornatorSsetting key="RulersVisible" value="1"/>
+<vectornatorSsetting key="SnapToEdges" value="0"/>
+<vectornatorSsetting key="GuidesVisible" value="1"/>
+<vectornatorSsetting key="DisplayWhiteBackground" value="0"/>
+<vectornatorSsetting key="doHistoryDisabled" value="0"/>
+<vectornatorSsetting key="SnapToGuides" value="1"/>
+<vectornatorSsetting key="TimeLapseWatermarkDisabled" value="0"/>
+<vectornatorSsetting key="Units" value="Points"/>
+<vectornatorSsetting key="DynamicGuides" value="0"/>
+<vectornatorSsetting key="IsolateActiveLayer" value="0"/>
+<vectornatorSsetting key="SnapToGrid" value="0"/>
</metadata>
<defs/>
-<g id="Untitled" vectornator:layerName="Untitled">
+<g id="Untitled" vectornatorLayerName="Untitled">
<path d="M213.57+256L298.42+256L255.99+166.64L213.57+256Z" opacity="1" fill="#ff0000"/>
<path d="M256+32L32+112L78.12+384L256+480L433.75+384L480+112L256+32ZM344+352L317.41+296L194.58+296L168+352L128+352L256+72L384+352L344+352Z" opacity="1" fill="#ff0000"/>
</g>