diff --git a/mars/package.json b/mars/package.json
index 07e065daf..b29080155 100644
--- a/mars/package.json
+++ b/mars/package.json
@@ -10,20 +10,20 @@
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
- "@headlessui/react": "^2.1.0",
+ "@headlessui/react": "^2.2.0",
"@headlessui/tailwindcss": "^0.2.1",
- "@next/third-parties": "^14.2.4",
- "@tailwindcss/forms": "^0.5.7",
- "@vercel/analytics": "^1.3.1",
- "autoprefixer": "^10.4.19",
+ "@next/third-parties": "^15.0.3",
+ "@tailwindcss/forms": "^0.5.9",
+ "@vercel/analytics": "^1.4.1",
+ "autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
- "framer-motion": "^11.2.11",
- "next": "^14.2.4",
+ "framer-motion": "^11.11.17",
+ "next": "^15.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
- "react-inlinesvg": "^4.1.3",
- "tailwindcss": "^3.4.4",
- "use-debounce": "^10.0.1"
+ "react-inlinesvg": "^4.1.5",
+ "tailwindcss": "^3.4.15",
+ "use-debounce": "^10.0.4"
},
"devDependencies": {
"eslint": "^8.56.0",
diff --git a/mars/src/components/AppDemo.jsx b/mars/src/components/AppDemo.jsx
deleted file mode 100644
index bef214e66..000000000
--- a/mars/src/components/AppDemo.jsx
+++ /dev/null
@@ -1,244 +0,0 @@
-'use client'
-
-import { useId, useRef, useState } from 'react'
-import clsx from 'clsx'
-import { motion, useInView, useMotionValue } from 'framer-motion'
-
-import { AppScreen } from '@/components/AppScreen'
-
-const prices = [
- 997.56, 944.34, 972.25, 832.4, 888.76, 834.8, 805.56, 767.38, 861.21, 669.6,
- 694.39, 721.32, 694.03, 610.1, 502.2, 549.56, 611.03, 583.4, 610.14, 660.6,
- 752.11, 721.19, 638.89, 661.7, 694.51, 580.3, 638.0, 613.3, 651.64, 560.51,
- 611.45, 670.68, 752.56,
-]
-const maxPrice = Math.max(...prices)
-const minPrice = Math.min(...prices)
-
-function Chart({
- className,
- activePointIndex,
- onChangeActivePointIndex,
- width: totalWidth,
- height: totalHeight,
- paddingX = 0,
- paddingY = 0,
- gridLines = 6,
- ...props
-}) {
- let width = totalWidth - paddingX * 2
- let height = totalHeight - paddingY * 2
-
- let id = useId()
- let svgRef = useRef(null)
- let pathRef = useRef(null)
- let isInView = useInView(svgRef, { amount: 0.5, once: true })
- let pathWidth = useMotionValue(0)
- let [interactionEnabled, setInteractionEnabled] = useState(false)
-
- let path = ''
- let points = []
-
- for (let index = 0; index < prices.length; index++) {
- let x = paddingX + (index / (prices.length - 1)) * width
- let y =
- paddingY +
- (1 - (prices[index] - minPrice) / (maxPrice - minPrice)) * height
- points.push({ x, y })
- path += `${index === 0 ? 'M' : 'L'} ${x.toFixed(4)} ${y.toFixed(4)}`
- }
-
- return (
-
- )
-}
-
-export function AppDemo() {
- let [activePointIndex, setActivePointIndex] = useState(null)
- let activePriceIndex = activePointIndex ?? prices.length - 1
- let activeValue = prices[activePriceIndex]
- let previousValue = prices[activePriceIndex - 1]
- let percentageChange =
- activePriceIndex === 0
- ? null
- : ((activeValue - previousValue) / previousValue) * 100
-
- return (
-
- Mega is an unofficial open source implementation of Google Piper. It is a monorepo & monolithic codebase - management system that supports Git. Mega is designed to manage large-scale codebases, + Mega is an unofficial open source implementation of Google Piper. + It is a monorepo & monolithic codebase management system that + supports Git. Mega is designed to manage large-scale codebases, streamline development, and foster collaboration.
- {/**/} {/* As featured in*/} diff --git a/mars/src/components/MegaArch.jsx b/mars/src/components/MegaArch.jsx new file mode 100644 index 000000000..3479550c9 --- /dev/null +++ b/mars/src/components/MegaArch.jsx @@ -0,0 +1,56 @@ +'use client' + +function Chart() { + return ( + + ) +} + +export function MegaArch() { + return ( +