|
1 | 1 | import { BellIcon, CalendarIcon, FileTextIcon, GlobeIcon, InputIcon } from '@radix-ui/react-icons' |
2 | | -import { FaMobileAlt, FaNodeJs, FaPython, FaReact, FaServer, FaVuejs } from 'react-icons/fa' |
3 | 2 |
|
4 | 3 | import { BentoCard, BentoGrid } from '@/components/magicui/bento-grid' |
5 | 4 | import RepositorySlider from '@/components/ui/repository-slider' |
| 5 | +import { GitHubOrganizationRepos } from '@/lib/repository' |
| 6 | + |
| 7 | +export default async function Home() { |
| 8 | + const organizationRepos = new GitHubOrganizationRepos() |
| 9 | + const repositories = await organizationRepos.getTopStarredRepos('devopshobbies', 10) |
6 | 10 |
|
7 | | -export default function Home() { |
8 | | - const repositories = [ |
9 | | - { |
10 | | - id: '1', |
11 | | - name: 'React Dashboard', |
12 | | - author: 'by devuser', |
13 | | - description: 'A beautiful admin dashboard built with React, featuring multiple widgets, charts, and a responsive layout.', |
14 | | - stars: 1200, |
15 | | - forks: 45, |
16 | | - watchers: 5700, |
17 | | - language: 'JavaScript', |
18 | | - languageColor: '#61DAFB', |
19 | | - icon: <FaReact />, |
20 | | - updated: 'Updated 2 days ago', |
21 | | - }, |
22 | | - { |
23 | | - id: '2', |
24 | | - name: 'AI Chatbot', |
25 | | - author: 'by mlengineer', |
26 | | - description: 'An intelligent chatbot using natural language processing and machine learning to provide human-like responses.', |
27 | | - stars: 3400, |
28 | | - forks: 128, |
29 | | - watchers: 12500, |
30 | | - language: 'Python', |
31 | | - languageColor: '#3572A5', |
32 | | - icon: <FaPython />, |
33 | | - updated: 'Updated 1 week ago', |
34 | | - }, |
35 | | - { |
36 | | - id: '3', |
37 | | - name: 'Vue E-commerce', |
38 | | - author: 'by frontenddev', |
39 | | - description: 'Complete e-commerce solution with Vue.js, featuring product listings, cart functionality, and secure checkout.', |
40 | | - stars: 876, |
41 | | - forks: 32, |
42 | | - watchers: 4200, |
43 | | - language: 'Vue', |
44 | | - languageColor: '#41B883', |
45 | | - icon: <FaVuejs />, |
46 | | - updated: 'Updated 3 days ago', |
47 | | - }, |
48 | | - { |
49 | | - id: '4', |
50 | | - name: 'API Gateway', |
51 | | - author: 'by backenddev', |
52 | | - description: 'A high-performance API gateway built with Node.js and Express, featuring rate limiting, authentication, and caching.', |
53 | | - stars: 2100, |
54 | | - forks: 87, |
55 | | - watchers: 8900, |
56 | | - language: 'Node.js', |
57 | | - languageColor: '#339933', |
58 | | - icon: <FaNodeJs />, |
59 | | - updated: 'Updated 5 days ago', |
60 | | - }, |
61 | | - { |
62 | | - id: '5', |
63 | | - name: 'Flutter App', |
64 | | - author: 'by mobiledev', |
65 | | - description: 'A cross-platform mobile application with Flutter featuring beautiful UI components and smooth animations.', |
66 | | - stars: 1500, |
67 | | - forks: 56, |
68 | | - watchers: 6300, |
69 | | - language: 'Dart', |
70 | | - languageColor: '#02569B', |
71 | | - icon: <FaMobileAlt />, |
72 | | - updated: 'Updated yesterday', |
73 | | - }, |
74 | | - { |
75 | | - id: '6', |
76 | | - name: 'Microservices', |
77 | | - author: 'by architect', |
78 | | - description: 'A complete microservices architecture with Docker, Kubernetes, and service discovery implemented.', |
79 | | - stars: 3800, |
80 | | - forks: 142, |
81 | | - watchers: 15200, |
82 | | - language: 'Go', |
83 | | - languageColor: '#007396', |
84 | | - icon: <FaServer />, |
85 | | - updated: 'Updated 2 weeks ago', |
86 | | - }, |
87 | | - ] |
88 | 11 | const features = [ |
89 | 12 | { |
90 | 13 | Icon: FileTextIcon, |
|
0 commit comments