-
-
-
+
+
+
+
+
+
+
- Build in a weekend.
-
- Scale to millions.
-
-
-
- Supabase is an open source Firebase alternative for building secure and
- performant Postgres backends with minimal configuration.
-
-
-
-
+ >
+
Build in a weekend.
+
+ Scale to millions.
+
+
+
+ Supabase is an open source Firebase alternative for building secure and performant
+ Postgres backends with minimal configuration.
+
+
+
-
-
-
-
- )
-}
+
+
+
+)
export default Hero
diff --git a/apps/www/components/Hero/HeroBackground.tsx b/apps/www/components/Hero/HeroBackground.tsx
new file mode 100644
index 00000000000..8d697e08084
--- /dev/null
+++ b/apps/www/components/Hero/HeroBackground.tsx
@@ -0,0 +1,166 @@
+import React, { useEffect, useRef } from 'react'
+import styles from './hero.module.css'
+import { useWindowSize } from 'react-use'
+import { useTheme } from 'common'
+import { motion } from 'framer-motion'
+
+const HeroBackground = () => {
+ const divRef = useRef(null)
+ const { isDarkMode } = useTheme()
+ const { width } = useWindowSize()
+
+ useEffect(() => {
+ const newHeight =
+ width < 768 ? 100000 / width : width > 1800 ? 30000 / width : (70000 / width) * 2
+
+ if (divRef?.current) {
+ ;(divRef.current as HTMLDivElement).style.height = `${Math.round(newHeight)}px`
+ console.log(width, newHeight)
+ }
+ }, [width])
+
+ const svgTraceWidth = 1680
+ const svgTraceHeight = 915
+ const svgPath =
+ // 'M2.16005e-05 -0.000998163L1680 0.129286V234L834.197 1068.2L-0.000248139 234.001L2.16005e-05 -0.000998163Z'
+ 'M2.16005e-05 -0.000998163L1680 0.129286V234L834.197 1068.2L-0.000248139 234.001L2.16005e-05 -0.000998163Z'
+
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+ >
+ )
+}
+
+export default HeroBackground
diff --git a/apps/www/public/images/index/storage-dark-hover.jpg b/apps/www/public/images/index/storage-dark-hover.jpg
index a65a76ed0f2..922218bf781 100644
Binary files a/apps/www/public/images/index/storage-dark-hover.jpg and b/apps/www/public/images/index/storage-dark-hover.jpg differ
diff --git a/apps/www/public/images/index/storage-dark.jpg b/apps/www/public/images/index/storage-dark.jpg
index 049cfd12d5a..c0efe2097a1 100644
Binary files a/apps/www/public/images/index/storage-dark.jpg and b/apps/www/public/images/index/storage-dark.jpg differ