├── public ├── placeholder.jpg ├── placeholder-logo.png ├── placeholder-user.jpg ├── icons │ ├── calendar.svg │ ├── messages.svg │ ├── appstore.svg │ ├── facetime.svg │ ├── health.svg │ ├── reminders.svg │ ├── phone.svg │ ├── camera.svg │ ├── tv.svg │ ├── mail.svg │ ├── news.svg │ ├── music.svg │ └── podcasts.svg ├── placeholder-logo.svg └── placeholder.svg ├── pnpm-lock.yaml ├── postcss.config.mjs ├── components ├── ui │ ├── aspect-ratio.tsx │ ├── skeleton.tsx │ ├── collapsible.tsx │ ├── use-mobile.tsx │ ├── textarea.tsx │ ├── label.tsx │ ├── input.tsx │ ├── separator.tsx │ ├── progress.tsx │ ├── toaster.tsx │ ├── sonner.tsx │ ├── checkbox.tsx │ ├── slider.tsx │ ├── switch.tsx │ ├── badge.tsx │ ├── tooltip.tsx │ ├── hover-card.tsx │ ├── popover.tsx │ ├── avatar.tsx │ ├── radio-group.tsx │ ├── toggle.tsx │ ├── alert.tsx │ ├── scroll-area.tsx │ ├── resizable.tsx │ ├── toggle-group.tsx │ ├── tabs.tsx │ ├── button.tsx │ ├── card.tsx │ ├── accordion.tsx │ ├── input-otp.tsx │ ├── calendar.tsx │ ├── breadcrumb.tsx │ ├── pagination.tsx │ ├── table.tsx │ └── drawer.tsx ├── theme-provider.tsx ├── widget.tsx ├── svg-icon.tsx ├── status-bar.tsx ├── control-center │ ├── modules │ │ ├── screen-module.tsx │ │ ├── focus-module.tsx │ │ ├── slider-module.tsx │ │ ├── music-module.tsx │ │ ├── utility-module.tsx │ │ └── connectivity-module.tsx │ └── control-center.tsx ├── safari │ ├── safari-error.tsx │ ├── share-menu.tsx │ ├── mock-websites │ │ └── google-website.tsx │ └── tab-switcher.tsx ├── calendar.tsx ├── icons │ ├── facetime.tsx │ └── appstore.tsx ├── phone │ ├── keypad.tsx │ └── phone-app.tsx ├── messages │ ├── messages-app.tsx │ └── conversation-list.tsx ├── clock.tsx ├── wallpaper-switcher.tsx ├── iphone.tsx ├── iphone-frame.tsx ├── home-indicator.tsx ├── lock-screen.tsx ├── swipe-detector.tsx ├── music │ ├── music-app.tsx │ ├── radio-view.tsx │ └── queue-view.tsx ├── app-screen.tsx ├── persistent-audio-player.tsx ├── app-icon.tsx ├── settings.tsx ├── app-view.tsx ├── weather.tsx ├── notes │ ├── note-editor.tsx │ └── folder-view.tsx ├── photos │ └── photo-detail.tsx └── dynamic-island │ └── music-island.tsx ├── next.config.js ├── next.config.mjs ├── app ├── providers.tsx └── layout.tsx ├── .gitignore ├── components.json ├── hooks └── use-mobile.tsx ├── tsconfig.json ├── lib ├── music-state.ts ├── types.ts ├── ai-chat.ts ├── utils.ts ├── use-local-storage.ts ├── app-state.tsx ├── wallpaper-state.tsx ├── music-data.ts └── messages-state.ts ├── tailwind.config.js ├── package.json └── styles └── globals.css /public/placeholder.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muhammadsiddiq-code/v0_2-sayt/HEAD/public/placeholder.jpg -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '9.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false -------------------------------------------------------------------------------- /public/placeholder-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muhammadsiddiq-code/v0_2-sayt/HEAD/public/placeholder-logo.png -------------------------------------------------------------------------------- /public/placeholder-user.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Muhammadsiddiq-code/v0_2-sayt/HEAD/public/placeholder-user.jpg -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /components/ui/aspect-ratio.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" 4 | 5 | const AspectRatio = AspectRatioPrimitive.Root 6 | 7 | export { AspectRatio } 8 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | reactStrictMode: true, 4 | images: { 5 | domains: ["v0.blob.com", "hebbkx1anhila5yf.public.blob.vercel-storage.com"], 6 | unoptimized: true, 7 | }, 8 | } 9 | 10 | module.exports = nextConfig 11 | -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = { 3 | eslint: { 4 | ignoreDuringBuilds: true, 5 | }, 6 | typescript: { 7 | ignoreBuildErrors: true, 8 | }, 9 | images: { 10 | unoptimized: true, 11 | }, 12 | } 13 | 14 | export default nextConfig 15 | -------------------------------------------------------------------------------- /components/ui/skeleton.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils" 2 | 3 | function Skeleton({ 4 | className, 5 | ...props 6 | }: React.HTMLAttributes) { 7 | return ( 8 |
12 | ) 13 | } 14 | 15 | export { Skeleton } 16 | -------------------------------------------------------------------------------- /app/providers.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import { ThemeProvider } from "next-themes" 4 | import type { ReactNode } from "react" 5 | 6 | export function Providers({ children }: { children: ReactNode }) { 7 | return ( 8 | 9 | {children} 10 | 11 | ) 12 | } 13 | -------------------------------------------------------------------------------- /components/theme-provider.tsx: -------------------------------------------------------------------------------- 1 | 'use client' 2 | 3 | import * as React from 'react' 4 | import { 5 | ThemeProvider as NextThemesProvider, 6 | type ThemeProviderProps, 7 | } from 'next-themes' 8 | 9 | export function ThemeProvider({ children, ...props }: ThemeProviderProps) { 10 | return {children} 11 | } 12 | -------------------------------------------------------------------------------- /components/ui/collapsible.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | 3 | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible" 4 | 5 | const Collapsible = CollapsiblePrimitive.Root 6 | 7 | const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger 8 | 9 | const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent 10 | 11 | export { Collapsible, CollapsibleTrigger, CollapsibleContent } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | 6 | # next.js 7 | /.next/ 8 | /out/ 9 | 10 | # production 11 | /build 12 | 13 | # debug 14 | npm-debug.log* 15 | yarn-debug.log* 16 | yarn-error.log* 17 | .pnpm-debug.log* 18 | 19 | # env files 20 | .env* 21 | 22 | # vercel 23 | .vercel 24 | 25 | # typescript 26 | *.tsbuildinfo 27 | next-env.d.ts -------------------------------------------------------------------------------- /components/widget.tsx: -------------------------------------------------------------------------------- 1 | import type { ReactNode } from "react" 2 | 3 | interface WidgetProps { 4 | title: string 5 | content: ReactNode 6 | className?: string 7 | } 8 | 9 | export function Widget({ title, content, className = "" }: WidgetProps) { 10 | return ( 11 |
12 |
{content}
13 |
{title}
14 |
15 | ) 16 | } 17 | -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.ts", 8 | "css": "app/globals.css", 9 | "baseColor": "neutral", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils", 16 | "ui": "@/components/ui", 17 | "lib": "@/lib", 18 | "hooks": "@/hooks" 19 | }, 20 | "iconLibrary": "lucide" 21 | } -------------------------------------------------------------------------------- /components/svg-icon.tsx: -------------------------------------------------------------------------------- 1 | import Image from "next/image" 2 | import type { HTMLAttributes } from "react" 3 | 4 | interface SVGIconProps extends HTMLAttributes { 5 | name: string 6 | size?: number 7 | } 8 | 9 | export function SVGIcon({ name, size = 40, className, ...props }: SVGIconProps) { 10 | return ( 11 |
12 | {`${name} 13 |
14 | ) 15 | } 16 | -------------------------------------------------------------------------------- /hooks/use-mobile.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | const MOBILE_BREAKPOINT = 768 4 | 5 | export function useIsMobile() { 6 | const [isMobile, setIsMobile] = React.useState(undefined) 7 | 8 | React.useEffect(() => { 9 | const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`) 10 | const onChange = () => { 11 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 12 | } 13 | mql.addEventListener("change", onChange) 14 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 15 | return () => mql.removeEventListener("change", onChange) 16 | }, []) 17 | 18 | return !!isMobile 19 | } 20 | -------------------------------------------------------------------------------- /components/ui/use-mobile.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | const MOBILE_BREAKPOINT = 768 4 | 5 | export function useIsMobile() { 6 | const [isMobile, setIsMobile] = React.useState(undefined) 7 | 8 | React.useEffect(() => { 9 | const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`) 10 | const onChange = () => { 11 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 12 | } 13 | mql.addEventListener("change", onChange) 14 | setIsMobile(window.innerWidth < MOBILE_BREAKPOINT) 15 | return () => mql.removeEventListener("change", onChange) 16 | }, []) 17 | 18 | return !!isMobile 19 | } 20 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "target": "ES6", 6 | "skipLibCheck": true, 7 | "strict": true, 8 | "noEmit": true, 9 | "esModuleInterop": true, 10 | "module": "esnext", 11 | "moduleResolution": "bundler", 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "jsx": "preserve", 15 | "incremental": true, 16 | "plugins": [ 17 | { 18 | "name": "next" 19 | } 20 | ], 21 | "paths": { 22 | "@/*": ["./*"] 23 | } 24 | }, 25 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 26 | "exclude": ["node_modules"] 27 | } 28 | -------------------------------------------------------------------------------- /components/status-bar.tsx: -------------------------------------------------------------------------------- 1 | import { Battery, Signal, Wifi } from "lucide-react" 2 | import { formatTime } from "@/lib/utils" 3 | 4 | interface StatusBarProps { 5 | time: Date 6 | dark?: boolean 7 | } 8 | 9 | export function StatusBar({ time, dark = false }: StatusBarProps) { 10 | return ( 11 |
14 |
{formatTime(time, false)}
15 |
16 | 17 | 18 | 19 |
20 |
21 | ) 22 | } 23 | -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | const Textarea = React.forwardRef< 6 | HTMLTextAreaElement, 7 | React.ComponentProps<"textarea"> 8 | >(({ className, ...props }, ref) => { 9 | return ( 10 |