From 01ed72b3ccc6ff81bf7be2cb277a27e20f7583e2 Mon Sep 17 00:00:00 2001 From: tacheraSasi Date: Tue, 26 Nov 2024 19:12:41 +0300 Subject: [PATCH] moved features array to lib/utils --- website/components/features.tsx | 34 +------------- website/lib/utils.ts | 34 ++++++++++++++ website/package-lock.json | 79 ++++++++++++++++++++++++++------- website/package.json | 14 ++---- 4 files changed, 101 insertions(+), 60 deletions(-) diff --git a/website/components/features.tsx b/website/components/features.tsx index ecf1fad..60325ec 100644 --- a/website/components/features.tsx +++ b/website/components/features.tsx @@ -1,40 +1,8 @@ 'use client' import { motion } from 'motion/react' -import { Clock, Globe, Network, Type, Variable, Wand2 } from 'lucide-react' -const features = [ - { - name: 'Simple Syntax', - description: 'Write clean, readable code with an intuitive syntax inspired by modern programming practices.', - icon: Type, - }, - { - name: 'Built-in Networking', - description: 'Powerful networking capabilities with the built-in net module for HTTP operations.', - icon: Network, - }, - { - name: 'Time Operations', - description: 'Comprehensive time manipulation and formatting with the native time module.', - icon: Clock, - }, - { - name: 'Dynamic Typing', - description: 'Flexible type system with built-in type conversion and checking capabilities.', - icon: Variable, - }, - { - name: 'Go-Powered', - description: 'Built with Go, ensuring high performance and reliable execution.', - icon: Wand2, - }, - { - name: 'Global Community', - description: 'Join a growing community of developers building with VintLang.', - icon: Globe, - }, -] + export default function Features() { return ( diff --git a/website/lib/utils.ts b/website/lib/utils.ts index bd0c391..b5cf9d8 100644 --- a/website/lib/utils.ts +++ b/website/lib/utils.ts @@ -1,6 +1,40 @@ import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" +import { Clock, Globe, Network, Type, Variable, Wand2 } from 'lucide-react' export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } + +export const features = [ + { + name: 'Simple Syntax', + description: 'Write clean, readable code with an intuitive syntax inspired by modern programming practices.', + icon: Type, + }, + { + name: 'Built-in Networking', + description: 'Powerful networking capabilities with the built-in net module for HTTP operations.', + icon: Network, + }, + { + name: 'Time Operations', + description: 'Comprehensive time manipulation and formatting with the native time module.', + icon: Clock, + }, + { + name: 'Dynamic Typing', + description: 'Flexible type system with built-in type conversion and checking capabilities.', + icon: Variable, + }, + { + name: 'Go-Powered', + description: 'Built with Go, ensuring high performance and reliable execution.', + icon: Wand2, + }, + { + name: 'Global Community', + description: 'Join a growing community of developers building with VintLang.', + icon: Globe, + }, +] diff --git a/website/package-lock.json b/website/package-lock.json index 35eeeda..f0889f8 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -12,12 +12,13 @@ "@radix-ui/react-tabs": "^1.1.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "framer-motion": "^11.11.17", + "ekilirelay": "^1.0.3", "lucide-react": "^0.461.0", + "motion": "^11.11.17", "next": "15.0.3", "next-themes": "^0.4.3", - "react": "19.0.0-rc-66855b96-20241106", - "react-dom": "19.0.0-rc-66855b96-20241106", + "react": "18", + "react-dom": "18", "react-intersection-observer": "^9.13.1", "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7" @@ -2217,6 +2218,19 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "license": "MIT" }, + "node_modules/ekilirelay": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ekilirelay/-/ekilirelay-1.0.3.tgz", + "integrity": "sha512-AhvO7Ls/YMWzkvm4OoMUtSoUgRVqZPLXM761Gl4Kneae4xP+II2p4UgF8Fhh/Vwz+2i0OzXA6M+wa4xmLbphvQ==", + "license": "ISC", + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "individual", + "url": "https://relay.ekilie.com/donate" + } + }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", @@ -3903,7 +3917,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -4055,7 +4068,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" @@ -4133,6 +4145,32 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/motion": { + "version": "11.11.17", + "resolved": "https://registry.npmjs.org/motion/-/motion-11.11.17.tgz", + "integrity": "sha512-y6mXYElvJ5HHwPBUpYG/5wclKVGW4hJhqPkTjWccib5/WrcRM185adg3+4aSmG5iD10XKFt5uBOAiKwuzMHPPQ==", + "license": "MIT", + "dependencies": { + "framer-motion": "^11.11.17", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4788,24 +4826,28 @@ "license": "MIT" }, "node_modules/react": { - "version": "19.0.0-rc-66855b96-20241106", - "resolved": "https://registry.npmjs.org/react/-/react-19.0.0-rc-66855b96-20241106.tgz", - "integrity": "sha512-klH7xkT71SxRCx4hb1hly5FJB21Hz0ACyxbXYAECEqssUjtJeFUAaI2U1DgJAzkGEnvEm3DkxuBchMC/9K4ipg==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "19.0.0-rc-66855b96-20241106", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.0.0-rc-66855b96-20241106.tgz", - "integrity": "sha512-D25vdaytZ1wFIRiwNU98NPQ/upS2P8Co4/oNoa02PzHbh8deWdepjm5qwZM/46OdSiGv4WSWwxP55RO9obqJEQ==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "license": "MIT", "dependencies": { - "scheduler": "0.25.0-rc-66855b96-20241106" + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" }, "peerDependencies": { - "react": "19.0.0-rc-66855b96-20241106" + "react": "^18.3.1" } }, "node_modules/react-intersection-observer": { @@ -5017,10 +5059,13 @@ } }, "node_modules/scheduler": { - "version": "0.25.0-rc-66855b96-20241106", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0-rc-66855b96-20241106.tgz", - "integrity": "sha512-HQXp/Mnp/MMRSXMQF7urNFla+gmtXW/Gr1KliuR0iboTit4KvZRY8KYaq5ccCTAOJiUqQh2rE2F3wgUekmgdlA==", - "license": "MIT" + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } }, "node_modules/semver": { "version": "7.6.3", diff --git a/website/package.json b/website/package.json index c010ad4..a53f244 100644 --- a/website/package.json +++ b/website/package.json @@ -13,23 +13,17 @@ "@radix-ui/react-tabs": "^1.1.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "framer-motion": "^11.11.17", + "ekilirelay": "^1.0.3", "lucide-react": "^0.461.0", - "motion": "12.0.0-alpha.2", + "motion": "^11.11.17", "next": "15.0.3", "next-themes": "^0.4.3", - "react": "19.0.0-rc-66855b96-20241106", - "react-dom": "19.0.0-rc-66855b96-20241106", + "react": "18", + "react-dom": "18", "react-intersection-observer": "^9.13.1", "tailwind-merge": "^2.5.5", "tailwindcss-animate": "^1.0.7" }, - "overrides": { - "framer-motion": { - "react": "19.0.0-rc-66855b96-20241106", - "react-dom": "19.0.0-rc-66855b96-20241106" - } - }, "devDependencies": { "@types/node": "^20", "@types/react": "^18",