Steam ์คํ ์ด๋ฅผ ํฝ์ ๋จ์๋ก ์ฌํํ ์น + ๋ฐ์คํฌํ ํด๋ก ํ๋ก์ ํธ
Steam ์คํ ์ด UI๋ฅผ ์ฌํํ ๋ชจ๋ ธ๋ ํฌ ๊ธฐ๋ฐ ํ์คํ ํด๋ก ํ๋ก์ ํธ
Next.js ์น ์ฑ๊ณผ Electron ๋ฐ์คํฌํ ์ฑ์ด ๊ณตํต ํจํค์ง๋ฅผ ๊ณต์ ํ๋ ๋ชจ๋ ธ๋ ํฌ ๊ตฌ์กฐ๋ค. ๊ฒ์ ํ์, ๋ฆฌ๋ทฐ ์กฐํ, ์ฅ๋ฐ๊ตฌ๋ยท์์๋ฆฌ์คํธ ๊ด๋ฆฌ, ๊ฒ์ ๋ฑ Steam ์คํ ์ด์ ํต์ฌ ๊ธฐ๋ฅ์ ์ฌํํ๋ค. ์ค์ ๋ฐฑ์๋๋ Steam API ์ฐ๊ฒฐ์ ์์ผ๋ฉฐ, ๋ชจ๋ ๋ฐ์ดํฐ๋ ๋ธ๋ผ์ฐ์ ์๋น์ค ์์ปค ๊ธฐ๋ฐ์ MSW(Mock Service Worker)๋ก ์๋ฎฌ๋ ์ด์ ๋๋ค.
๋๊ตฌ: pnpm workspaces + Turborepo
steam-clone/
โโโ apps/
โ โโโ web/ # Next.js 15 + React 19 โ ์คํ ์ด ์น์ฌ์ดํธ (ํฌํธ :3000)
โ โโโ desktop/ # Electron 35 + React 19 + Vite 5 โ ๋ฐ์คํฌํ ํด๋ผ์ด์ธํธ
โโโ packages/
โ โโโ ui/ # ๊ณต์ React ์ปดํฌ๋ํธ (GameCard, PriceDisplay, RatingBadge ๋ฑ)
โ โโโ types/ # ๊ณต์ TypeScript ํ์
(Game, User, Cart, Review ๋ฑ)
โ โโโ api/ # ๊ณต์ API ํด๋ผ์ด์ธํธ ํฉํ ๋ฆฌ (createApiClient)
๋ชจ๋ ํจํค์ง๋ TypeScript ์์ค๋ฅผ ์ง์ exportํ๋ค. Next.js์ Vite๊ฐ ๋น๋ ์์ ์ ์ปดํ์ผํ๋ฏ๋ก ๋ณ๋์ ํจํค์ง ๋น๋ ๋จ๊ณ๊ฐ ์๋ค.
- Next.js 15 (App Router, ์น ํ๋ ์์ํฌ)
- Electron 35 + electron-vite 2 (๋ฐ์คํฌํ ์ ธ)
- React 19 (๋ ์ฑ ๊ณตํต)
- TypeScript 5 (์ ํจํค์ง ํ์ ์์ ์ฑ)
- Tailwind CSS 3 (์คํ์ผ๋ง โ CSS ์ปค์คํ ํ๋กํผํฐ ๊ธฐ๋ฐ Steam ๋ธ๋๋ ์ปฌ๋ฌ ํ ํฐ)
- shadcn/ui (Radix UI ํ๋ฆฌ๋ฏธํฐ๋ธ โ ์ฑ๋ณ ์ค์น, Steam ํ ๋ง ์ ์ฉ)
- MSW 2 (๋ธ๋ผ์ฐ์ ์๋น์ค ์์ปค ๊ธฐ๋ฐ ๋ชฉ API ๋ฐฑ์๋)
- TanStack React Query 5 (์๋ฒ ์ํ ๊ด๋ฆฌ โ
staleTime: 60_000) - Jotai 2 (ํด๋ผ์ด์ธํธ ์ ์ฉ ์ํ โ ์ฅ๋ฐ๊ตฌ๋, ์์๋ฆฌ์คํธ, UI, ์ ์ ์ธ์ )
- Embla Carousel 8 (ํ์ด๋ก ์บ๋ฌ์ ๋ฐ ํผ์ฒ๋ ํ)
- wouter 3 (๋ฐ์คํฌํ SPA ๊ฒฝ๋ ๋ผ์ฐํฐ)
- react-resizable-panels (๋ฐ์คํฌํ ํจ๋ ๋ ์ด์์)
- Lucide React (์์ด์ฝ)
| ๊ฒฝ๋ก | ์ค๋ช |
|---|---|
/ |
ํ โ ํ์ด๋ก ์บ๋ฌ์ , ํผ์ฒ๋ ๊ฒ์, ํน๊ฐ ์น์ , ํ ์ ๋ฌ, Steam Deck |
/app/[id]/[slug] |
๊ฒ์ ์์ธ โ ์คํฌ๋ฆฐ์ท, ์ค๋ช , ๋ฆฌ๋ทฐ, ํ์ , ๊ฐ๊ฒฉ |
/cart |
์ฅ๋ฐ๊ตฌ๋ โ ์ํ ๋ชฉ๋ก, ์ฃผ๋ฌธ ์์ฝ, ์ถ์ฒ ๊ฒ์ |
/search |
๊ฒ์ ๊ฒฐ๊ณผ โ ์ฟผ๋ฆฌ ๊ธฐ๋ฐ ํํฐ๋ง |
/login |
๋ก๊ทธ์ธ โ ๋ธ๋ฌ ์ฒ๋ฆฌ๋ ๊ฒ์ ๊ทธ๋ฆฌ๋ ๋ฐฐ๊ฒฝ, QR ์ฝ๋ ์คํ , ๊ณ์ ์์ฑ ํ๋ฆ |
/specials |
์ ์ฒด ํน๊ฐ ๋ชฉ๋ก |
/specials/[slug] |
๋์ ํน๊ฐ ๋๋ฉ ํ์ด์ง |
/explore/new |
์ ์ ๋ฐ ์ธ๊ธฐ ๊ฒ์ (์ ๋ ฌ ์ง์) |
/explore/upcoming |
์ถ์ ์์ ๊ฒ์ |
/genre/[name] |
์ฅ๋ฅด๋ณ ๊ฒ์ ๋ชฉ๋ก |
/ways-to-play/[slug] |
๋์ ํ๋ ์ด ๋ฐฉ์ ํ์ด์ง |
/about |
Steam ์๊ฐ โ ๊ต์ฐจ ๋ฐฐ์น ํผ์ฒ ์น์ , ๊ธฐ๋ฅ ๊ทธ๋ฆฌ๋ |
/community |
์ปค๋ฎค๋ํฐ ์๊ฐ |
/support |
๊ณ ๊ฐ ์ง์ ์๊ฐ |
/hardware |
Steam ํ๋์จ์ด ์ผ์ผ์ด์ค |
/points/shop |
ํฌ์ธํธ ์์ ์คํ |
์ฌ์ด๋๋ฐ ํญ ๋ค๋น๊ฒ์ด์ ๊ณผ ๋ฆฌ์ฌ์ด์ฆ ๊ฐ๋ฅํ ํจ๋๋ก ๊ตฌ์ฑ๋ ๋จ์ผ ํ์ด์ง SPA๋ค.
| ๋ทฐ | ์ค๋ช |
|---|---|
| Store | ๊ฒ์ ํ์ ๋ฐ ๊ตฌ๋งค |
| Library | ๋ณด์ ๊ฒ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ |
| Community | ์ปค๋ฎค๋ํฐ ๊ธฐ๋ฅ |
| Profile | ์ ์ ํ๋กํ ๋ฐ ํต๊ณ |
| Downloads | ๋ค์ด๋ก๋ ํํฉ ๋ฐ ๋๊ธฐ์ด |
| Settings | ์ฑ ํ๊ฒฝ์ค์ |
| Game Launch Screen | ๊ฒ์ ์คํ ํ๋ฉด |
๋ ์ด์์:
[ TitleBar โ ์๋์ฐ ์ปจํธ๋กค, ๊ฒ์ ]
[ ์ฌ์ด๋๋ฐ ๋ค๋น๊ฒ์ด์
] [ ์ฝํ
์ธ ์์ญ โ ํ์ฑ ๋ทฐ ]
Counter-Strike 2, Dota 2, Cyberpunk 2077, Baldur's Gate 3, Elden Ring, Stardew Valley, Civilization VII ๋ฑ 22๊ฐ์ ๋ชฉ ๊ฒ์์ด ์ฅ๋ฅด๋ณ๋ก ํฌํจ๋๋ค. ๊ฐ ๊ฒ์์ ํ ์ธ ๊ฐ๊ฒฉ, ํ์ , ์คํฌ๋ฆฐ์ท, ํ๋ซํผ ์ง์ ์ฌ๋ถ, ์นดํ ๊ณ ๋ฆฌ, ์ฅ๋ฅด, ํ๊ทธ ๋ฑ ์ ์ฒด ๋ฉํ๋ฐ์ดํฐ๋ฅผ ํฌํจํ๋ค.
๋ฆฌ๋ทฐ๋ ๊ฒ์ ID๋ณ๋ก ๊ด๋ฆฌ๋๋ค. ๋ชฉ ์ ์ ๊ณ์ ์ 5๊ฐ์ ๊ฒ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ, ์์๋ฆฌ์คํธ, ์ง๊ฐ ์์ก์ ํฌํจํ๋ค.
MSW๊ฐ ์ธํฐ์ ํธํ๋ API ์๋ํฌ์ธํธ:
GET /api/games/featuredGET /api/games?genre=โฆGET /api/games/search?q=โฆGET /api/games/:idGET /api/games/:gameId/reviewsGET /api/users/mePOST /api/users/me/wishlist
| ์ํฐ | ์ํ |
|---|---|
cartItemsAtom |
์ฅ๋ฐ๊ตฌ๋ ์ํ ๋ชฉ๋ก |
cartCountAtom / cartTotalAtom |
ํ์: ์ฅ๋ฐ๊ตฌ๋ ์๋ ๋ฐ ํฉ๊ณ |
wishlistAtom |
์์๋ฆฌ์คํธ ๊ฒ์ ID ๋ฐฐ์ด |
currentUserAtom / isSignedInAtom |
์ธ์ ์ ์ ๋ฐ ๋ก๊ทธ์ธ ์ฌ๋ถ |
searchQueryAtom |
ํ์ฌ ๊ฒ์ ์ ๋ ฅ๊ฐ |
mobileNavOpenAtom |
๋ชจ๋ฐ์ผ ๋๋ก์ด ์ด๋ฆผ/๋ซํ |
activeVideoAtom |
๊ฒ์ ์์ธ ํ์ด์ง ํ์ฑ ๋ฏธ๋์ด ์ธ๋ฑ์ค |
์ปดํฌ๋ํธ โ useQuery ํ
โ React Query ์บ์
โ
MSW ์๋น์ค ์์ปค โ MOCK_* ๋ฐ์ดํฐ
โ
์๋ต์ด ์บ์์ ๋ฐ์
ํด๋ผ์ด์ธํธ ์ก์
(์ฅ๋ฐ๊ตฌ๋ ์ถ๊ฐ, ์์๋ฆฌ์คํธ ํ ๊ธ) โ Jotai ์ํฐ (๋น์์์ )
์ปฌ๋ฌ๋ Steam ๋ธ๋๋ ํ ํฐ์ ๋งคํ๋ CSS ์ปค์คํ ํ๋กํผํฐ๋ก ์ ์๋๋ค. Tailwind ๊ธฐ๋ณธ ํ๋ ํธ ์ปฌ๋ฌ๋ ์ฌ์ฉํ์ง ์๋๋ค.
| ํ ํฐ | Hex | ์ฉ๋ |
|---|---|---|
backgrounds.pageBase |
#171a21 |
ํ์ด์ง / ๋ค๋น๊ฒ์ด์ ๋ฐฐ๊ฒฝ |
backgrounds.contentDark |
#1b2838 |
์ฝํ ์ธ ํจ๋ |
backgrounds.cardBase |
#16202d |
๊ฒ์ ์นด๋ |
backgrounds.sidebarPanel |
#2a475e |
์ฌ์ด๋๋ฐ / ๋ณด์กฐ ํจ๋ |
brand.steamBlue |
#1a9fff |
์ธํฐ๋ํฐ๋ธ ์ก์ผํธ |
brand.accentLight |
#66c0f4 |
๋งํฌ, ํ์ด๋ผ์ดํธ |
text.primary |
#c7d5e0 |
๋ณธ๋ฌธ ํ ์คํธ |
text.secondary |
#8f98a0 |
๋ฉํ๋ฐ์ดํฐ, ๋ถ๊ฐ ๋ ์ด๋ธ |
price.discountBadgeBg |
#4c6b22 |
ํ ์ธ ๋ฑ์ง ๋ฐฐ๊ฒฝ |
price.discountBadgeText |
#a4d007 |
ํ ์ธ์จ ํ ์คํธ |
price.salePrice |
#acdbf5 |
์ต์ข / ํ ์ธ ๊ฐ๊ฒฉ |
๊ธฐ๋ณธ ํฐํธ: Motiva Sans (๋์ฒด: Arial, Helvetica, sans-serif)
ํต์ฌ ๋๋ฉ์ธ ์ธํฐํ์ด์ค: Game, Price, Rating, Platforms, Category, Genre, Tag, User, CartItem, Cart, Review, NavItem
createApiClient(config) ํฉํ ๋ฆฌ โ games, reviews, users ๋ค์์คํ์ด์ค๋ก ๊ตฌ์ฑ๋ ํ์
์์ ApiClient ๋ฐํ
์น๊ณผ ๋ฐ์คํฌํ์ด ๊ณต์ ํ๋ ์ฌ์ฌ์ฉ React ์ปดํฌ๋ํธ:
- Button โ primary / secondary / ghost ๋ณํ; sm / md / lg ํฌ๊ธฐ
- GameCard โ ํค๋ ์ด๋ฏธ์ง, ์ ๋ชฉ, ๊ฐ๊ฒฉ ํ์, ํค๋ณด๋ ์ ๊ทผ์ฑ ์ง์
- PriceDisplay โ ํ ์ธ ๋ฑ์ง, ์ทจ์์ ์๊ฐ, ํ ์ธ๊ฐ; sm / md / lg ํฌ๊ธฐ
- RatingBadge โ ํ์ ๊ฐ์ฑ๋ณ ์์ ์ฝ๋ฉ (๊ธ์ โ ์ด๋ก, ํผ์ฌ โ ํฉ์, ๋ถ์ โ ๋นจ๊ฐ)
- PlatformIcons โ Windows / Mac / Linux ์ง์ ๋ฑ์ง
pnpm dev # ์น + ๋ฐ์คํฌํ ์ ์ฒด ์คํ
pnpm --filter @steam-clone/web dev # ์น๋ง ์คํ (localhost:3000)
pnpm --filter @steam-clone/desktop dev # ๋ฐ์คํฌํ๋ง ์คํ
pnpm build # ์ ์ฒด ๋น๋
pnpm type-check # ์ ์ฒด TypeScript ๊ฒ์ฌ
pnpm lint # ์ ์ฒด ESLintA pixel-faithful clone of the Steam storefront โ web + desktop.
A monorepo-based full-stack clone replicating the Steam store UI. A Next.js web app and an Electron desktop app share common packages for types, API, and UI components. Core features include game browsing, reviews, cart and wishlist management, and search. All data is simulated via MSW (Mock Service Worker) running as a browser service worker โ there is no real backend or Steam API connection.
Tooling: pnpm workspaces + Turborepo
steam-clone/
โโโ apps/
โ โโโ web/ # Next.js 15 + React 19 โ storefront website (port :3000)
โ โโโ desktop/ # Electron 35 + React 19 + Vite 5 โ desktop client
โโโ packages/
โ โโโ ui/ # Shared React components (GameCard, PriceDisplay, RatingBadge, etc.)
โ โโโ types/ # Shared TypeScript types (Game, User, Cart, Review, etc.)
โ โโโ api/ # Shared API client factory (createApiClient)
All packages export TypeScript source directly โ Next.js and Vite compile them at build time with no separate package build step.
- Next.js 15 (App Router, web framework)
- Electron 35 + electron-vite 2 (desktop shell)
- React 19 (both apps)
- TypeScript 5 (type safety across all packages)
- Tailwind CSS 3 (styling โ Steam brand color tokens via CSS custom properties)
- shadcn/ui (Radix UI primitives โ installed per-app, themed to Steam)
- MSW 2 (browser service worker mock API backend)
- TanStack React Query 5 (server state management โ
staleTime: 60_000) - Jotai 2 (client-only state โ cart, wishlist, UI, user session)
- Embla Carousel 8 (hero carousel and featured rows)
- wouter 3 (lightweight router for desktop SPA)
- react-resizable-panels (desktop panel layout)
- Lucide React (icons)
| Route | Description |
|---|---|
/ |
Home โ hero carousel, featured games, special offers, top sellers, Steam Deck section |
/app/[id]/[slug] |
Game detail โ screenshots, description, reviews, ratings, pricing |
/cart |
Shopping cart โ item list, order summary, recommendations |
/search |
Search results โ query-based filtering |
/login |
Sign in โ form with blurred game grid background, QR code stub, create account flow |
/specials |
All special offers |
/specials/[slug] |
Dynamic special offer landing pages |
/explore/new |
New & trending games with sorting |
/explore/upcoming |
Upcoming releases |
/genre/[name] |
Games filtered by genre |
/ways-to-play/[slug] |
Dynamic ways-to-play pages |
/about |
About Steam โ alternating feature sections, features grid |
/community |
Community overview |
/support |
Support overview |
/hardware |
Steam hardware showcase |
/points/shop |
Points shop stub |
The desktop app is a single-page SPA with sidebar tab navigation and resizable panels.
| View | Description |
|---|---|
| Store | Game browsing and purchasing |
| Library | User's owned game library |
| Community | Community features |
| Profile | User profile and stats |
| Downloads | Active and queued downloads |
| Settings | App preferences |
| Game Launch Screen | In-progress game launch UI |
Layout:
[ TitleBar โ window controls, search ]
[ Sidebar nav ] [ Content area โ active view ]
22 mock games across genres including Counter-Strike 2, Dota 2, Cyberpunk 2077, Baldur's Gate 3, Elden Ring, Stardew Valley, Civilization VII, and more. Each game carries full metadata: pricing with discounts, ratings, screenshots, platform flags, categories, genres, and tags.
Reviews are keyed per game. A mock user account ships with a library of 5 games, a wishlist, and wallet balance.
API handlers intercept:
GET /api/games/featuredGET /api/games?genre=โฆGET /api/games/search?q=โฆGET /api/games/:idGET /api/games/:gameId/reviewsGET /api/users/mePOST /api/users/me/wishlist
| Atom | State |
|---|---|
cartItemsAtom |
Items currently in cart |
cartCountAtom / cartTotalAtom |
Derived cart count and total |
wishlistAtom |
Array of wishlisted game IDs |
currentUserAtom / isSignedInAtom |
Session user and sign-in status |
searchQueryAtom |
Current search input |
mobileNavOpenAtom |
Mobile drawer open/closed |
activeVideoAtom |
Active media index on game detail |
Component โ useQuery hook โ React Query cache
โ
MSW service worker โ MOCK_* data
โ
Response hydrates cache
Client actions (add to cart, wishlist toggle) โ Jotai atoms (no persistence)
Colors are defined as CSS custom properties mapped to Steam brand tokens. No default Tailwind palette colors are used.
| Token | Hex | Usage |
|---|---|---|
backgrounds.pageBase |
#171a21 |
Page / nav background |
backgrounds.contentDark |
#1b2838 |
Content panels |
backgrounds.cardBase |
#16202d |
Game cards |
backgrounds.sidebarPanel |
#2a475e |
Sidebar / secondary panels |
brand.steamBlue |
#1a9fff |
Interactive accent |
brand.accentLight |
#66c0f4 |
Links, highlights |
text.primary |
#c7d5e0 |
Body text |
text.secondary |
#8f98a0 |
Metadata, dimmed labels |
price.discountBadgeBg |
#4c6b22 |
Discount badge background |
price.discountBadgeText |
#a4d007 |
Discount percentage |
price.salePrice |
#acdbf5 |
Final / sale price |
Primary font: Motiva Sans (fallback: Arial, Helvetica, sans-serif)
Core domain interfaces: Game, Price, Rating, Platforms, Category, Genre, Tag, User, CartItem, Cart, Review, NavItem
createApiClient(config) factory returning a typed ApiClient with namespaced methods for games, reviews, and users.
Reusable React components shared between web and desktop:
- Button โ primary / secondary / ghost variants; sm / md / lg sizes
- GameCard โ header image, title, price display, keyboard-accessible click handler
- PriceDisplay โ discount badge, strikethrough original price, sale price; sm / md / lg sizes
- RatingBadge โ color-coded by sentiment (positive โ green, mixed โ amber, negative โ red)
- PlatformIcons โ Windows / Mac / Linux support badges
pnpm dev # Start web + desktop
pnpm --filter @steam-clone/web dev # Web only (localhost:3000)
pnpm --filter @steam-clone/desktop dev # Desktop only
pnpm build # Build all
pnpm type-check # TypeScript check all
pnpm lint # ESLint all