Skip to content

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

chore: Migrate Lottie animation (#19922)

Francesco Sansalvadore8da4fd2f18e4
diff --git a/apps/studio/components/ui/Loading/Loading.anim.json b/apps/studio/components/ui/Loading/Loading.anim.json
deleted file mode 100644
index b105cbb5561..00000000000
--- a/apps/studio/components/ui/Loading/Loading.anim.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "v": "5.7.3",
- "fr": 30,
- "ip": 0,
- "op": 45,
- "w": 150,
- "h": 150,
- "nm": "Loading-brand-green 2",
- "ddd": 0,
- "assets": [],
- "layers": [
- {
- "ddd": 0,
- "ind": 1,
- "ty": 4,
- "nm": "Livello forma 1",
- "sr": 1,
- "ks": {
- "o": { "a": 0, "k": 100, "ix": 11 },
- "r": { "a": 0, "k": 0, "ix": 10 },
- "p": { "a": 0, "k": [75, 75, 0], "ix": 2 },
- "a": { "a": 0, "k": [0, 0, 0], "ix": 1 },
- "s": { "a": 0, "k": [70, 70, 100], "ix": 6 }
- },
- "ao": 0,
- "shapes": [
- {
- "ty": "gr",
- "it": [
- {
- "ind": 0,
- "ty": "sh",
- "ix": 1,
- "ks": {
- "a": 0,
- "k": {
- "i": [
- [8.191, 0],
- [0, 0],
- [0, 0],
- [2.859, -3.601],
- [0, 0],
- [-8.191, 0],
- [0, 0],
- [0, 0],
- [-2.859, 3.601],
- [0, 0]
- ],
- "o": [
- [0, 0],
- [0, 0],
- [-0.069, -4.598],
- [0, 0],
- [-5.093, 6.415],
- [0, 0],
- [0, 0],
- [0.069, 4.598],
- [0, 0],
- [5.093, -6.415]
- ],
- "v": [
- [44.681, -16.115],
- [-0.239, -16.115],
- [-0.469, -51.136],
- [-9.195, -54.106],
- [-52.347, 0.24],
- [-44.681, 16.115],
- [-0.055, 16.115],
- [0.469, 51.137],
- [9.195, 54.107],
- [52.347, -0.24]
- ],
- "c": true
- },
- "ix": 2
- },
- "nm": "Tracciato 1",
- "mn": "ADBE Vector Shape - Group",
- "hd": false
- },
- {
- "ty": "st",
- "c": { "a": 0, "k": [0.243137255311, 0.811764717102, 0.556862771511, 1], "ix": 3 },
- "o": { "a": 0, "k": 100, "ix": 4 },
- "w": { "a": 0, "k": 5, "ix": 5 },
- "lc": 1,
- "lj": 2,
- "bm": 0,
- "nm": "Traccia 1",
- "mn": "ADBE Vector Graphic - Stroke",
- "hd": false
- },
- {
- "ty": "tr",
- "p": { "a": 0, "k": [0, 0], "ix": 2 },
- "a": { "a": 0, "k": [0, 0], "ix": 1 },
- "s": { "a": 0, "k": [100, 100], "ix": 3 },
- "r": { "a": 0, "k": 0, "ix": 6 },
- "o": { "a": 0, "k": 100, "ix": 7 },
- "sk": { "a": 0, "k": 0, "ix": 4 },
- "sa": { "a": 0, "k": 0, "ix": 5 },
- "nm": "Trasformazione"
- }
- ],
- "nm": "Forma 1",
- "np": 2,
- "cix": 2,
- "bm": 0,
- "ix": 1,
- "mn": "ADBE Vector Group",
- "hd": false
- },
- {
- "ty": "tm",
- "s": {
- "a": 1,
- "k": [
- {
- "i": { "x": [0.423], "y": [1] },
- "o": { "x": [0.501], "y": [0] },
- "t": 9,
- "s": [100]
- },
- { "t": 44, "s": [2] }
- ],
- "ix": 1
- },
- "e": {
- "a": 1,
- "k": [
- {
- "i": { "x": [0.667], "y": [1] },
- "o": { "x": [0.571], "y": [-0.005] },
- "t": 0,
- "s": [98]
- },
- { "t": 22, "s": [0] }
- ],
- "ix": 2
- },
- "o": {
- "a": 1,
- "k": [
- {
- "i": { "x": [0.676], "y": [1] },
- "o": { "x": [0.376], "y": [0] },
- "t": 0,
- "s": [105]
- },
- { "t": 44, "s": [-260] }
- ],
- "ix": 3
- },
- "m": 1,
- "ix": 2,
- "nm": "Taglia tracciati 1",
- "mn": "ADBE Vector Filter - Trim",
- "hd": false
- }
- ],
- "ip": 0,
- "op": 45,
- "st": 0,
- "bm": 0
- }
- ],
- "markers": []
-}
diff --git a/apps/studio/components/ui/Loading/Loading.tsx b/apps/studio/components/ui/Loading/Loading.tsx
index 3b3b9ed6e51..1db8aaa9e5a 100644
--- a/apps/studio/components/ui/Loading/Loading.tsx
+++ b/apps/studio/components/ui/Loading/Loading.tsx
@@ -1,12 +1,3 @@
-import Lottie from 'lottie-light-react'
-import loadingAnim from './Loading.anim.json'
+import Loading from 'ui/src/components/LogoLoader'
-const Connecting = () => (
- <div className="w-full h-full flex flex-col items-center justify-center">
- <div className="w-28">
- <Lottie loop={true} autoplay={true} animationData={loadingAnim} />
- </div>
- </div>
-)
-
-export default Connecting
+export default Loading
diff --git a/apps/studio/components/ui/Loading/archive/Loading.anim.json b/apps/studio/components/ui/Loading/archive/Loading.anim.json
deleted file mode 100644
index b3c5bc4f192..00000000000
--- a/apps/studio/components/ui/Loading/archive/Loading.anim.json
+++ /dev/null
@@ -1,475 +0,0 @@
-{
- "assets": [
- {
- "id": "comp_Combined-Shape_BF73096D-B400-4871-BC74-C00F039296BF",
- "layers": [
- {
- "ty": 3,
- "ao": 0,
- "ddd": 0,
- "ind": 15,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "s": true, "x": { "a": 0, "k": 113 }, "y": { "a": 0, "k": 101 } },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Combined-Shape-null",
- "op": 61,
- "sr": 1,
- "st": 0,
- "tt": 0
- },
- {
- "ty": 4,
- "ao": 0,
- "ddd": 0,
- "ind": 18,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Combined-Shape-size",
- "op": 61,
- "shapes": [
- {
- "ty": "gr",
- "cix": 2,
- "it": [
- {
- "ty": "rc",
- "d": 1,
- "nm": "sizeElement",
- "p": { "a": 0, "k": [187.5, 187.5] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [375, 375] }
- },
- {
- "ty": "fl",
- "c": { "a": 0, "k": [0, 0, 0, 0] },
- "nm": "Fill1",
- "o": { "a": 0, "k": 0 },
- "r": 1
- },
- {
- "ty": "tr",
- "a": { "a": 0, "k": [0, 0] },
- "nm": "Transform",
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] },
- "sa": { "a": 0, "k": 0 },
- "sk": { "a": 0, "k": 0 }
- }
- ],
- "nm": "Combined-Shape-size",
- "np": 3
- }
- ],
- "sr": 1,
- "st": 0,
- "tt": 0
- },
- {
- "ty": 4,
- "ao": 0,
- "ddd": 0,
- "ind": 11,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Combined-Shape-stroke",
- "op": 61,
- "parent": 15,
- "shapes": [
- {
- "ty": "gr",
- "cix": 2,
- "it": [
- {
- "ty": "sh",
- "ind": 0,
- "ks": {
- "a": 0,
- "k": {
- "c": true,
- "i": [
- [0, 0],
- [0, -1.5774979571739018],
- [0, 0],
- [0, 0],
- [0, -4.1410576386918905],
- [0.9255199999998638, -1.2470810337555633],
- [0, 0],
- [0, 0],
- [0.8663779999999406, -0.060411534501071174],
- [0, 0],
- [0, 0],
- [0, 1.5774239565191124],
- [0, 0],
- [0, 0],
- [0, 4.140773636179105],
- [-0.9253779999999092, 1.2470810337555918],
- [0, 0],
- [0, 0],
- [-0.9496219999999482, 0]
- ],
- "o": [
- [1.5779769999999473, 0],
- [0, 0],
- [0, 0],
- [4.14215999999999, 0],
- [0, 1.671847791949645],
- [0, 0],
- [0, 0],
- [-0.4826290000000597, 0.661415851986078],
- [0, 0],
- [0, 0],
- [-1.5779769999999473, 0],
- [0, 0],
- [0, 0],
- [-4.142126999999958, 0],
- [0, -1.6721317944625582],
- [0, 0],
- [0, 0],
- [0.5194710000000526, -0.7124533035483542],
- [0, 0]
- ],
- "v": [
- [72.142911, 0],
- [75, 2.8563202717656835],
- [75, 67.44501973095933],
- [142.5, 67.44501973095933],
- [150, 74.94310207148214],
- [148.52722000000006, 79.40599555766988],
- [145.63866000000002, 83.46085143367749],
- [80.16748600000005, 171.86465860097266],
- [78.05883900000003, 173.03298993797728],
- [77.857089, 173.04],
- [77.857089, 173.04],
- [75, 170.18373672873858],
- [75, 105.5949792690318],
- [7.5, 105.5949792690318],
- [0, 98.09718193103066],
- [1.4727789999999457, 93.63400444233007],
- [4.361228999999984, 89.57914756631368],
- [69.83251399999996, 1.1754323998324296],
- [72.142911, 0]
- ]
- }
- },
- "nm": "Combined-Shape-path"
- },
- {
- "ty": "st",
- "c": {
- "a": 0,
- "k": [0.24313725490196078, 0.8117647058823529, 0.5568627450980392, 1]
- },
- "d": [{ "n": "o", "nm": "offset", "v": { "a": 0, "k": 0 } }],
- "lc": 1,
- "lj": 1,
- "ml": 4,
- "nm": "Stroke1",
- "o": { "a": 0, "k": 100 },
- "w": { "a": 0, "k": 7 }
- },
- {
- "ty": "tm",
- "e": {
- "a": 1,
- "k": [
- {
- "i": { "x": [0.58], "y": [1] },
- "o": { "x": [0.42], "y": [0] },
- "s": [0],
- "t": 0
- },
- {
- "i": { "x": [0.58], "y": [1] },
- "o": { "x": [0.42], "y": [0] },
- "s": [100],
- "t": 30
- },
- {
- "i": { "x": [1], "y": [1] },
- "o": { "x": [0], "y": [0] },
- "s": [100],
- "t": 60
- }
- ]
- },
- "m": 2,
- "nm": "TrimPaths1",
- "o": { "a": 0, "k": 0 },
- "s": {
- "a": 1,
- "k": [
- {
- "i": { "x": [1], "y": [1] },
- "o": { "x": [0], "y": [0] },
- "s": [0],
- "t": 0
- },
- {
- "i": { "x": [0.58], "y": [1] },
- "o": { "x": [0.42], "y": [0] },
- "s": [0],
- "t": 27
- },
- {
- "i": { "x": [0.58], "y": [1] },
- "o": { "x": [0.42], "y": [0] },
- "s": [100],
- "t": 60
- }
- ]
- }
- },
- {
- "ty": "tr",
- "a": { "a": 0, "k": [0, 0] },
- "nm": "Transform",
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] },
- "sa": { "a": 0, "k": 0 },
- "sk": { "a": 0, "k": 0 }
- }
- ],
- "nm": "Combined-Shape-stroke",
- "np": 3
- }
- ],
- "sr": 1,
- "st": 0,
- "tt": 0
- },
- {
- "ty": 4,
- "ao": 0,
- "ddd": 0,
- "ind": 14,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Combined-Shape-content",
- "op": 61,
- "parent": 15,
- "shapes": [
- {
- "ty": "gr",
- "cix": 2,
- "it": [
- {
- "ty": "sh",
- "ind": 0,
- "ks": {
- "a": 0,
- "k": {
- "c": true,
- "i": [
- [0, 0],
- [0, -1.5774979571739018],
- [0, 0],
- [0, 0],
- [0, -4.1410576386918905],
- [0.9255199999998638, -1.2470810337555633],
- [0, 0],
- [0, 0],
- [0.8663779999999406, -0.060411534501071174],
- [0, 0],
- [0, 0],
- [0, 1.5774239565191124],
- [0, 0],
- [0, 0],
- [0, 4.140773636179105],
- [-0.9253779999999092, 1.2470810337555918],
- [0, 0],
- [0, 0],
- [-0.9496219999999482, 0]
- ],
- "o": [
- [1.5779769999999473, 0],
- [0, 0],
- [0, 0],
- [4.14215999999999, 0],
- [0, 1.671847791949645],
- [0, 0],
- [0, 0],
- [-0.4826290000000597, 0.661415851986078],
- [0, 0],
- [0, 0],
- [-1.5779769999999473, 0],
- [0, 0],
- [0, 0],
- [-4.142126999999958, 0],
- [0, -1.6721317944625582],
- [0, 0],
- [0, 0],
- [0.5194710000000526, -0.7124533035483542],
- [0, 0]
- ],
- "v": [
- [72.142911, 0],
- [75, 2.8563202717656835],
- [75, 67.44501973095933],
- [142.5, 67.44501973095933],
- [150, 74.94310207148214],
- [148.52722000000006, 79.40599555766988],
- [145.63866000000002, 83.46085143367749],
- [80.16748600000005, 171.86465860097266],
- [78.05883900000003, 173.03298993797728],
- [77.857089, 173.04],
- [77.857089, 173.04],
- [75, 170.18373672873858],
- [75, 105.5949792690318],
- [7.5, 105.5949792690318],
- [0, 98.09718193103066],
- [1.4727789999999457, 93.63400444233007],
- [4.361228999999984, 89.57914756631368],
- [69.83251399999996, 1.1754323998324296],
- [72.142911, 0]
- ]
- }
- },
- "nm": "Combined-Shape-path"
- },
- {
- "ty": "fl",
- "c": { "a": 0, "k": [0, 0, 0, 1] },
- "nm": "Fill1",
- "o": { "a": 0, "k": 0 },
- "r": 1
- },
- {
- "ty": "tr",
- "a": { "a": 0, "k": [0, 0] },
- "nm": "Transform",
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] },
- "sa": { "a": 0, "k": 0 },
- "sk": { "a": 0, "k": 0 }
- }
- ],
- "nm": "Combined-Shape-content",
- "np": 3
- }
- ],
- "sr": 1,
- "st": 0,
- "tt": 0
- }
- ]
- }
- ],
- "ddd": 0,
- "fonts": { "list": [] },
- "fr": 30,
- "h": 375,
- "ip": 0,
- "layers": [
- {
- "ty": 0,
- "ao": 0,
- "ddd": 0,
- "h": 375,
- "ind": 10,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Combined-Shape-composition",
- "op": 61,
- "refId": "comp_Combined-Shape_BF73096D-B400-4871-BC74-C00F039296BF",
- "sr": 1,
- "st": 0,
- "tt": 0,
- "w": 375
- },
- {
- "ty": 4,
- "ao": 0,
- "ddd": 0,
- "ind": 2,
- "ip": 0,
- "ks": {
- "a": { "a": 0, "k": [0, 0] },
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] }
- },
- "nm": "Scene-background",
- "op": 61,
- "shapes": [
- {
- "ty": "gr",
- "cix": 2,
- "it": [
- {
- "ty": "rc",
- "d": 1,
- "nm": "Scene-background",
- "p": { "a": 0, "k": [187.5, 187.5] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [375, 375] }
- },
- {
- "ty": "fl",
- "c": { "a": 0, "k": [0.9440000000000001, 0.968, 1, 1] },
- "nm": "Fill1",
- "o": { "a": 0, "k": 0 },
- "r": 1
- },
- {
- "ty": "tr",
- "a": { "a": 0, "k": [0, 0] },
- "nm": "Transform",
- "o": { "a": 0, "k": 100 },
- "p": { "a": 0, "k": [0, 0] },
- "r": { "a": 0, "k": 0 },
- "s": { "a": 0, "k": [100, 100] },
- "sa": { "a": 0, "k": 0 },
- "sk": { "a": 0, "k": 0 }
- }
- ],
- "nm": "Scene-background",
- "np": 3
- }
- ],
- "sr": 1,
- "st": 0,
- "tt": 0
- }
- ],
- "meta": { "a": "", "d": "OutlineTraceLoader(Empty)", "g": "Flow1.8.6", "k": "", "tc": "" },
- "nm": "OutlineTraceLoader(Empty)",
- "op": 61,
- "v": "5.6.4",
- "w": 375
-}
diff --git a/apps/studio/package.json b/apps/studio/package.json
index e83037d3798..221b5f6869d 100644
--- a/apps/studio/package.json
+++ b/apps/studio/package.json
@@ -59,7 +59,6 @@
"jsonrepair": "^3.2.3",
"jwt-simple": "^0.5.6",
"lodash": "^4.17.21",
- "lottie-light-react": "^2.4.0",
"lucide-react": "^0.167.0",
"markdown-table": "=2.0.0",
"mobx": "^6.10.2",
diff --git a/apps/www/components/LaunchWeek/7/Releases/index.tsx b/apps/www/components/LaunchWeek/7/Releases/index.tsx
index 6c04a979ade..891509fe248 100644
--- a/apps/www/components/LaunchWeek/7/Releases/index.tsx
+++ b/apps/www/components/LaunchWeek/7/Releases/index.tsx
@@ -1,7 +1,6 @@
import Image from 'next/image'
import { useEffect } from 'react'
import { Accordion } from 'ui'
-import Lottie from 'lottie-light-react'
import days, { WeekDayProps, endOfLW7 } from '~/components/LaunchWeek/7/lw7_days'
import SectionContainer from '~/components/Layouts/SectionContainer'
@@ -297,21 +296,8 @@ export default function LW7Releases() {
blog={preRelease.steps[0].blog}
/>
{preRelease.steps[0].bg_layers &&
- preRelease.steps[0].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie
- style={{
- position: 'absolute',
- inset: 0,
- width: '100%',
- height: '100%',
- }}
- autoplay={true}
- animationData={layer.lottie}
- />
- </div>
- ) : (
+ preRelease.steps[0].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className="absolute opacity-90 inset-0 w-full h-full -z-10"
@@ -336,7 +322,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
<motion.div
@@ -364,12 +349,8 @@ export default function LW7Releases() {
hackernews={preRelease.steps[1].hackernews}
/>
{preRelease.steps[1].bg_layers &&
- preRelease.steps[1].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie loop={true} autoplay={true} animationData={layer.lottie} />
- </div>
- ) : (
+ preRelease.steps[1].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className="absolute opacity-90 inset-0 w-full h-full -z-10"
@@ -388,7 +369,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
</div>
@@ -430,21 +410,8 @@ export default function LW7Releases() {
hackernews={day1.steps[0].hackernews}
/>
{day1.steps[0].bg_layers &&
- day1.steps[0].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie
- style={{
- position: 'absolute',
- inset: 0,
- width: '100%',
- height: '100%',
- }}
- autoplay={true}
- animationData={layer.lottie}
- />
- </div>
- ) : (
+ day1.steps[0].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className={[
@@ -476,7 +443,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
</div>
@@ -518,21 +484,8 @@ export default function LW7Releases() {
hackernews={day2.steps[0].hackernews}
/>
{day2.steps[0].bg_layers &&
- day2.steps[0].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie
- style={{
- position: 'absolute',
- inset: 0,
- width: '100%',
- height: '100%',
- }}
- autoplay={true}
- animationData={layer.lottie}
- />
- </div>
- ) : (
+ day2.steps[0].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className={[
@@ -564,7 +517,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
</div>
@@ -606,21 +558,8 @@ export default function LW7Releases() {
video={day3.steps[0].video}
/>
{day3.steps[0].bg_layers &&
- day3.steps[0].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie
- style={{
- position: 'absolute',
- inset: 0,
- width: '100%',
- height: '100%',
- }}
- autoplay={true}
- animationData={layer.lottie}
- />
- </div>
- ) : (
+ day3.steps[0].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className={[
@@ -652,7 +591,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
</div>
@@ -696,21 +634,8 @@ export default function LW7Releases() {
mobileGrid
/>
{day4.steps[0].bg_layers &&
- day4.steps[0].bg_layers?.map((layer, i) =>
- !!layer.lottie ? (
- <div className="absolute inset-0 opacity-90 w-full h-full -z-10 transition-all duration-300">
- <Lottie
- style={{
- position: 'absolute',
- inset: 0,
- width: '100%',
- height: '100%',
- }}
- autoplay={true}
- animationData={layer.lottie}
- />
- </div>
- ) : (
+ day4.steps[0].bg_layers?.map(
+ (layer, i) =>
!!layer.img && (
<motion.div
className={['absolute inset-0 w-full h-full -z-10'].join(' ')}
@@ -738,7 +663,6 @@ export default function LW7Releases() {
/>
</motion.div>
)
- )
)}
</motion.div>
</div>
diff --git a/apps/www/components/LaunchWeek/7/lw7_days.ts b/apps/www/components/LaunchWeek/7/lw7_days.ts
index d34c9479754..d043a2212e3 100644
--- a/apps/www/components/LaunchWeek/7/lw7_days.ts
+++ b/apps/www/components/LaunchWeek/7/lw7_days.ts
@@ -85,7 +85,6 @@ export interface StepProps {
className?: string
hideInBlog?: boolean
bg_layers?: {
- lottie?: any
img?: string
mobileImg?: string
}[]
diff --git a/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts b/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts
index eb1a074e26c..a573dbb3f73 100644
--- a/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts
+++ b/apps/www/components/LaunchWeek/8/Releases/lw8_data.ts
@@ -42,7 +42,6 @@ export interface StepProps {
className?: string
hideInBlog?: boolean
bg_layers?: {
- lottie?: any
img?: string
mobileImg?: string
}[]
diff --git a/apps/www/package.json b/apps/www/package.json
index 4fedffe69a9..504ac7ca7ae 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -16,9 +16,9 @@
"@code-hike/mdx": "^0.9.0",
"@heroicons/react": "^1.0.6",
"@mdx-js/react": "^2.3.0",
- "@octokit/rest": "^20.0.2",
"@next/bundle-analyzer": "^13.5.6",
"@next/mdx": "^13.5.6",
+ "@octokit/rest": "^20.0.2",
"@react-three/fiber": "^7.0.29",
"@supabase/auth-helpers-react": "^0.4.2",
"@supabase/auth-ui-react": "^0.4.5",
@@ -32,7 +32,6 @@
"framer-motion": "^6.5.1",
"globby": "^13.2.2",
"gray-matter": "^4.0.3",
- "lottie-light-react": "^2.4.0",
"markdown-toc": "^1.2.0",
"next": "^13.5.6",
"next-mdx-remote": "^4.4.1",
diff --git a/package-lock.json b/package-lock.json
index b422710e1fa..fcba4cebdca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -747,7 +747,6 @@
"jsonrepair": "^3.2.3",
"jwt-simple": "^0.5.6",
"lodash": "^4.17.21",
- "lottie-light-react": "^2.4.0",
"lucide-react": "^0.167.0",
"markdown-table": "=2.0.0",
"mobx": "^6.10.2",
@@ -1035,7 +1034,6 @@
"framer-motion": "^6.5.1",
"globby": "^13.2.2",
"gray-matter": "^4.0.3",
- "lottie-light-react": "^2.4.0",
"markdown-toc": "^1.2.0",
"next": "^13.5.6",
"next-mdx-remote": "^4.4.1",
@@ -23630,21 +23628,6 @@
"loose-envify": "cli.js"
}
},
- "node_modules/lottie-light-react": {
- "version": "2.4.0",
- "license": "MIT",
- "dependencies": {
- "lottie-web": "^5.10.2"
- },
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
- }
- },
- "node_modules/lottie-web": {
- "version": "5.12.2",
- "license": "MIT"
- },
"node_modules/lower-case": {
"version": "2.0.2",
"dev": true,
@@ -36126,7 +36109,6 @@
"date-fns": "^2.30.0",
"formik": "^2.2.9",
"lodash": "^4.17.21",
- "lottie-light-react": "^2.4.0",
"lucide-react": "^0.167.0",
"next-themes": "^0.2.1",
"openai": "^4.17.0",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index dad38427a70..e793c6f33d6 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -61,7 +61,6 @@
"date-fns": "^2.30.0",
"formik": "^2.2.9",
"lodash": "^4.17.21",
- "lottie-light-react": "^2.4.0",
"lucide-react": "^0.167.0",
"next-themes": "^0.2.1",
"openai": "^4.17.0",
diff --git a/packages/ui/src/components/LogoLoader/LogoLoader.anim.json b/packages/ui/src/components/LogoLoader/LogoLoader.anim.json
deleted file mode 100644
index 2a3d102ae4f..00000000000
--- a/packages/ui/src/components/LogoLoader/LogoLoader.anim.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"5.7.3","fr":30,"ip":0,"op":45,"w":150,"h":150,"nm":"Loading-brand-green 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Livello forma 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[75,75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[70,70,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.191,0],[0,0],[0,0],[2.859,-3.601],[0,0],[-8.191,0],[0,0],[0,0],[-2.859,3.601],[0,0]],"o":[[0,0],[0,0],[-0.069,-4.598],[0,0],[-5.093,6.415],[0,0],[0,0],[0.069,4.598],[0,0],[5.093,-6.415]],"v":[[44.681,-16.115],[-0.239,-16.115],[-0.469,-51.136],[-9.195,-54.106],[-52.347,0.24],[-44.681,16.115],[-0.055,16.115],[0.469,51.137],[9.195,54.107],[52.347,-0.24]],"c":true},"ix":2},"nm":"Tracciato 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.243137255311,0.811764717102,0.556862771511,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":5,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Traccia 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Trasformazione"}],"nm":"Forma 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.423],"y":[1]},"o":{"x":[0.501],"y":[0]},"t":9,"s":[100]},{"t":44,"s":[2]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.571],"y":[-0.005]},"t":0,"s":[98]},{"t":22,"s":[0]}],"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.676],"y":[1]},"o":{"x":[0.376],"y":[0]},"t":0,"s":[105]},{"t":44,"s":[-260]}],"ix":3},"m":1,"ix":2,"nm":"Taglia tracciati 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":45,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/ui/src/components/LogoLoader/LogoLoader.tsx b/packages/ui/src/components/LogoLoader/LogoLoader.tsx
index 36646671d0b..2a312e49ba3 100644
--- a/packages/ui/src/components/LogoLoader/LogoLoader.tsx
+++ b/packages/ui/src/components/LogoLoader/LogoLoader.tsx
@@ -1,10 +1,23 @@
-import Lottie from 'lottie-light-react'
-import loadingAnim from './LogoLoader.anim.json'
+import styles from './loading-anim.module.css'
const LogoLoader = () => (
<div className="w-full h-full flex flex-col items-center justify-center">
<div className="w-28">
- <Lottie loop={true} autoplay={true} animationData={loadingAnim} />
+ <svg
+ width="60"
+ height="62"
+ viewBox="0 0 60 62"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className={styles['loading']}
+ >
+ <path
+ d="M30.2571 4.12811L30.257 4.12389C30.2133 1.21067 26.5349 -0.034778 24.7224 2.24311L1.76109 31.0996C-1.21104 34.8348 1.45637 40.34 6.23131 40.34H29.4845L29.7563 58.4432C29.8 61.3564 33.4783 62.6016 35.2908 60.324L34.8996 60.0127L35.2908 60.324L58.2521 31.4674C61.2241 27.7322 58.5568 22.227 53.782 22.227H30.3762L30.2571 4.12811Z"
+ stroke="hsl(var(--brand-default))"
+ strokeWidth={2}
+ strokeLinecap="round"
+ />
+ </svg>
</div>
</div>
)
diff --git a/packages/ui/src/components/LogoLoader/loading-anim.module.css b/packages/ui/src/components/LogoLoader/loading-anim.module.css
new file mode 100644
index 00000000000..856f0be62c4
--- /dev/null
+++ b/packages/ui/src/components/LogoLoader/loading-anim.module.css
@@ -0,0 +1,13 @@
+.loading path {
+ stroke-dasharray: 30 220;
+ animation: dash 1.15s cubic-bezier(0.39, 0.29, 0.5, 0.59) infinite both;
+}
+
+@keyframes dash {
+ from {
+ stroke-dashoffset: 52;
+ }
+ to {
+ stroke-dashoffset: 280;
+ }
+}