Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

feat: add new sections (hidden)

Dillion Vermac034d7015161
diff --git a/app/(marketing)/page.tsx b/app/(marketing)/page.tsx
index b5ebd945..34b5e029 100644
--- a/app/(marketing)/page.tsx
+++ b/app/(marketing)/page.tsx
@@ -6,9 +6,11 @@ export default async function Home() {
return (
<>
<Hero />
+ {/* <WhatIsMagicUI /> */}
<Testimonials />
{/* <FeatureGrid /> */}
{/* <FeatureSections /> */}
+ {/* <ChangelogSection /> */}
<Faq />
</>
);
diff --git a/components/landing/changelog-section.tsx b/components/landing/changelog-section.tsx
new file mode 100644
index 00000000..c9c03492
--- /dev/null
+++ b/components/landing/changelog-section.tsx
@@ -0,0 +1,114 @@
+"use client";
+import { motion } from "framer-motion";
+
+const timelineData = [
+ {
+ time: "12:05PM",
+ title: 'Created "Preline in React" task',
+ // content: "Find more detailed instructions here.",
+ },
+ {
+ time: "12:05PM",
+ title: "Release v5.2.0 quick bug fix 🐞",
+ content: null,
+ },
+ {
+ time: "12:05PM",
+ title: "Take a break ⛳️",
+ // content: "Just chill for now... πŸ˜‰",
+ },
+ {
+ time: "12:05PM",
+ title: "Take a break ⛳️",
+ // content: "Just chill for now... πŸ˜‰",
+ },
+ {
+ time: "12:05PM",
+ title: "Take a break ⛳️",
+ // content: "Just chill for now... πŸ˜‰",
+ },
+ {
+ time: "12:05PM",
+ title: "Take a break ⛳️",
+ // content: "Just chill for now... πŸ˜‰",
+ },
+ {
+ time: "12:05PM",
+ title: 'Marked "Install Charts" completed',
+ // content: "Finally! You can check it out here.",
+ },
+ {
+ time: "12:05PM",
+ title: "Take a break ⛳️",
+ // content: "Just chill for now... πŸ˜‰",
+ },
+];
+
+const TimelineItem = ({
+ time,
+ icon,
+ children,
+}: {
+ time: string;
+ icon?: React.ReactNode;
+ children: React.ReactNode;
+}) => (
+ <motion.div
+ className="flex gap-x-3"
+ variants={{
+ hidden: { opacity: 0, y: -10 },
+ show: { opacity: 1, y: 0, transition: { type: "spring" } },
+ }}
+ >
+ <div className="w-16 text-end">
+ <span className="text-xs text-gray-500 dark:text-gray-400">{time}</span>
+ </div>
+ <div className="relative after:absolute after:bottom-0 after:start-3.5 after:top-7 after:w-px after:-translate-x-[0.5px] after:bg-gray-200 last:after:hidden dark:after:bg-gray-700">
+ <div className="relative z-10 flex size-7 items-center justify-center">
+ <div className="size-2 rounded-full bg-gray-400 dark:bg-gray-600">
+ {icon}
+ </div>
+ </div>
+ </div>
+ <div className="grow pb-4 pt-0.5">{children}</div>
+ </motion.div>
+);
+
+export default function ChangelogSection() {
+ return (
+ <section id="changelog">
+ <div className="container mx-auto max-w-2xl py-14">
+ <h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
+ Fast updates
+ </h2>
+ <h3 className="mb-8 text-center text-lg font-medium tracking-tight text-foreground/80">
+ Check out our changelog
+ </h3>
+ <motion.div
+ className="relative h-full w-full"
+ initial="hidden"
+ whileInView="show"
+ animate="show"
+ viewport={{ once: false }}
+ variants={{
+ hidden: {},
+ show: {
+ transition: {
+ staggerChildren: 0.04,
+ },
+ },
+ }}
+ >
+ {timelineData.map((item, idx) => (
+ <TimelineItem key={idx} time={item.time}>
+ <h3 className="flex gap-x-1.5 font-semibold text-gray-800 dark:text-white">
+ {item.title}
+ </h3>
+ </TimelineItem>
+ ))}
+ <div className="absolute bottom-0 h-1/2 w-full bg-gradient-to-b from-transparent to-background" />
+ </motion.div>
+ </div>
+ </section>
+ );
+}
diff --git a/components/landing/what-is-magic-ui.tsx b/components/landing/what-is-magic-ui.tsx
new file mode 100644
index 00000000..5cf0312a
--- /dev/null
+++ b/components/landing/what-is-magic-ui.tsx
@@ -0,0 +1,12 @@
+export default function WhatIsMagicUI() {
+ return (
+ <section id="what-is-magicui">
+ <div className="container mx-auto max-w-2xl py-14">
+ <h2 className="mb-4 text-center text-5xl font-bold tracking-tight text-foreground">
+ What is Magic UI?
+ </h2>
+ <h3 className="mb-8 text-center text-lg font-medium tracking-tight text-foreground/80"></h3>
+ </div>
+ </section>
+ );
+}
diff --git a/package.json b/package.json
index 6ee77205..8060f5a4 100644
--- a/package.json
+++ b/package.json
@@ -69,12 +69,12 @@
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"eslint": "8.55.0",
- "eslint-config-next": "14.0.4",
+ "eslint-config-next": "14.1.0",
"framer-motion": "^10.12.16",
"geist": "^1.1.0",
"gray-matter": "^4.0.3",
"lucide-react": "^0.274.0",
- "next": "14.0.4",
+ "next": "14.1.0",
"next-auth": "^4.24.4",
"next-contentlayer": "^0.3.4",
"next-themes": "^0.2.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8b81b186..eb7ee6a2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -147,14 +147,14 @@ dependencies:
specifier: 8.55.0
version: 8.55.0
eslint-config-next:
- specifier: 14.0.4
+ specifier: 14.1.0
framer-motion:
specifier: ^10.12.16
geist:
specifier: ^1.1.0
- version: 1.2.2([email protected])
+ version: 1.2.2([email protected])
gray-matter:
specifier: ^4.0.3
version: 4.0.3
@@ -162,17 +162,17 @@ dependencies:
specifier: ^0.274.0
version: 0.274.0([email protected])
next:
- specifier: 14.0.4
+ specifier: 14.1.0
next-auth:
specifier: ^4.24.4
next-contentlayer:
specifier: ^0.3.4
next-themes:
specifier: ^0.2.1
nodemailer:
specifier: ^6.9.3
version: 6.9.10
@@ -2719,21 +2719,21 @@ packages:
next-auth: ^4
dependencies:
'@prisma/client': 5.10.2([email protected])
dev: false
- resolution: {integrity: sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==}
+ resolution: {integrity: sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==}
dev: false
- resolution: {integrity: sha512-U3qMNHmEZoVmHA0j/57nRfi3AscXNvkOnxDmle/69Jz/G0o/gWjXTDdlgILZdrxQ0Lw/jv2mPW8PGy0EGIHXhQ==}
+ resolution: {integrity: sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==}
dependencies:
- glob: 7.1.7
+ glob: 10.3.10
dev: false
- resolution: {integrity: sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==}
+ resolution: {integrity: sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@@ -2741,8 +2741,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==}
+ resolution: {integrity: sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@@ -2750,8 +2750,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==}
+ resolution: {integrity: sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -2759,8 +2759,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==}
+ resolution: {integrity: sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@@ -2768,8 +2768,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==}
+ resolution: {integrity: sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -2777,8 +2777,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==}
+ resolution: {integrity: sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@@ -2786,8 +2786,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==}
+ resolution: {integrity: sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@@ -2795,8 +2795,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==}
+ resolution: {integrity: sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@@ -2804,8 +2804,8 @@ packages:
dev: false
optional: true
- resolution: {integrity: sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==}
+ resolution: {integrity: sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@@ -6806,8 +6806,8 @@ packages:
engines: {node: '>=12'}
dev: true
- resolution: {integrity: sha512-9/xbOHEQOmQtqvQ1UsTQZpnA7SlDMBtuKJ//S4JnoyK3oGLhILKXdBgu/UO7lQo/2xOykQULS1qQ6p2+EpHgAQ==}
+ resolution: {integrity: sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==}
peerDependencies:
eslint: ^7.23.0 || ^8.0.0
typescript: '>=3.3.1'
@@ -6815,7 +6815,7 @@ packages:
typescript:
optional: true
dependencies:
- '@next/eslint-plugin-next': 14.0.4
+ '@next/eslint-plugin-next': 14.1.0
'@rushstack/eslint-patch': 1.7.2
'@typescript-eslint/parser': 6.21.0([email protected])([email protected])
eslint: 8.55.0
@@ -7452,12 +7452,12 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
resolution: {integrity: sha512-uRDrxhvdnPwWJmh+K5+/5LXSKwvJzaYCl9tDXgiBi4hj7hB4K7+n/WLcvJMFs5btvyn0r9OSwCd1s6CmqAsxEw==}
peerDependencies:
next: '>=13.2.0 <15'
dependencies:
dev: false
@@ -7520,10 +7520,6 @@ packages:
dependencies:
is-glob: 4.0.3
- resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
- dev: false
-
resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}
engines: {node: '>=16 || 14 >=14.17'}
@@ -7535,17 +7531,6 @@ packages:
minipass: 7.0.4
path-scurry: 1.10.1
- resolution: {integrity: sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==}
- dependencies:
- fs.realpath: 1.0.0
- inflight: 1.0.6
- inherits: 2.0.4
- minimatch: 3.1.2
- once: 1.4.0
- path-is-absolute: 1.0.1
- dev: false
-
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
dependencies:
@@ -9693,7 +9678,7 @@ packages:
resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}
dev: false
resolution: {integrity: sha512-djQt3ZEaWEIxcsuh3HTW2uuzLfXMRjHH+ugAsichlQSbH4iA5MRcgMA2HvTNvsDTDLh44tyU72+/gWsxgTbAKg==}
peerDependencies:
next: ^12.2.5 || ^13 || ^14
@@ -9708,7 +9693,7 @@ packages:
'@panva/hkdf': 1.1.1
cookie: 0.5.0
jose: 4.15.4
nodemailer: 6.9.10
oauth: 0.9.15
openid-client: 5.6.4
@@ -9719,7 +9704,7 @@ packages:
uuid: 8.3.2
dev: false
resolution: {integrity: sha512-UtUCwgAl159KwfhNaOwyiI7Lg6sdioyKMeh+E7jxx0CJ29JuXGxBEYmCI6+72NxFGIFZKx8lvttbbQhbnYWYSw==}
peerDependencies:
contentlayer: 0.3.4
@@ -9730,7 +9715,7 @@ packages:
'@contentlayer/core': 0.3.4([email protected])
'@contentlayer/utils': 0.3.4
contentlayer: 0.3.4([email protected])
react: 18.2.0
react-dom: 18.2.0([email protected])
transitivePeerDependencies:
@@ -9740,20 +9725,20 @@ packages:
- supports-color
dev: false
resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==}
peerDependencies:
next: '*'
react: '*'
react-dom: '*'
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
dev: false
- resolution: {integrity: sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==}
+ resolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==}
engines: {node: '>=18.17.0'}
hasBin: true
peerDependencies:
@@ -9767,7 +9752,7 @@ packages:
sass:
optional: true
dependencies:
- '@next/env': 14.0.4
+ '@next/env': 14.1.0
'@opentelemetry/api': 1.7.0
'@swc/helpers': 0.5.2
busboy: 1.6.0
@@ -9777,17 +9762,16 @@ packages:
react: 18.2.0
react-dom: 18.2.0([email protected])
styled-jsx: 5.1.1(@babel/[email protected])([email protected])
- watchpack: 2.4.0
optionalDependencies:
- '@next/swc-darwin-arm64': 14.0.4
- '@next/swc-darwin-x64': 14.0.4
- '@next/swc-linux-arm64-gnu': 14.0.4
- '@next/swc-linux-arm64-musl': 14.0.4
- '@next/swc-linux-x64-gnu': 14.0.4
- '@next/swc-linux-x64-musl': 14.0.4
- '@next/swc-win32-arm64-msvc': 14.0.4
- '@next/swc-win32-ia32-msvc': 14.0.4
- '@next/swc-win32-x64-msvc': 14.0.4
+ '@next/swc-darwin-arm64': 14.1.0
+ '@next/swc-darwin-x64': 14.1.0
+ '@next/swc-linux-arm64-gnu': 14.1.0
+ '@next/swc-linux-arm64-musl': 14.1.0
+ '@next/swc-linux-x64-gnu': 14.1.0
+ '@next/swc-linux-x64-musl': 14.1.0
+ '@next/swc-win32-arm64-msvc': 14.1.0
+ '@next/swc-win32-ia32-msvc': 14.1.0
+ '@next/swc-win32-x64-msvc': 14.1.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@@ -12931,14 +12915,6 @@ packages:
makeerror: 1.0.12
dev: false
- resolution: {integrity: sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==}
- engines: {node: '>=10.13.0'}
- dependencies:
- glob-to-regexp: 0.4.1
- graceful-fs: 4.2.11
- dev: false
-
resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}
dependencies: