Skip to content

Commit

Permalink
moved features array to lib/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tacheraSasi committed Nov 26, 2024
1 parent 25dc3b9 commit 01ed72b
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 60 deletions.
34 changes: 1 addition & 33 deletions website/components/features.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
34 changes: 34 additions & 0 deletions website/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -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,
},
]
79 changes: 62 additions & 17 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 4 additions & 10 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 01ed72b

Please sign in to comment.