Skip to content

πŸ”₯ ν•˜λ£¨λ₯Ό λ‹¬κΆˆ λͺ©ν‘œμ— λ‹€κ°€μ„ λ‹€, λͺ¨λ£¨ν‹΄!

Notifications You must be signed in to change notification settings

MORUTINE/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

λͺ¨λ£¨ν‹΄ (Morutine) Frontend

ν•˜λ£¨λ₯Ό 달ꡬ고, κΏˆμ— κ°€κΉŒμ›Œμ§€λ‹€

Daily routine & goal achievement diary app built with SvelteKit and TailwindCSS.

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm or pnpm

Installation

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

The app will be available at http://localhost:5173

πŸ“ Project Structure

src/
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Calendar/        # Calendar components
β”‚   β”‚   β”œβ”€β”€ Todo/            # Todo management components
β”‚   β”‚   β”œβ”€β”€ Layout/          # Header & navigation
β”‚   β”‚   └── Common/          # Reusable components
β”‚   β”œβ”€β”€ store/               # Svelte stores
β”‚   β”œβ”€β”€ api/                 # API wrappers
β”‚   └── utils/               # Utility functions
└── routes/
    β”œβ”€β”€ login/               # Login page
    β”œβ”€β”€ home/                # Main calendar & todo page
    └── my/                  # Profile page

✨ Features

  • πŸ“… Calendar View: Monthly calendar with task tracking
  • πŸ”₯ Fire Icon: Visual indicator for fully completed days
  • βœ… Task Management: Add up to 3 tasks per day
  • πŸ“ Status Tracking: Done, Failed, or Replaced
  • 🎨 Premium Design: Minimalist, diary-like aesthetic
  • πŸ“± Responsive: Works on desktop and mobile

🎨 Design System

Colors

  • Fire Orange: #FF6A3D - Primary brand color
  • Selected Background: #FFE8DD - Selected date highlight
  • Text Primary: #1a1a1a - Main text
  • Text Secondary: #6b7280 - Secondary text

Typography

  • Font: Pretendard (Korean optimized)
  • Weights: 500-700
  • Sizes: 0.75rem - 3rem

πŸ”§ Configuration

Environment Variables

Create a .env file (copy from .env.example):

VITE_API_URL=http://localhost:8080

Backend Integration

The app is ready for backend integration. Update the API calls in:

  1. src/lib/api/todo.js - Todo endpoints
  2. src/lib/api/user.js - User endpoints
  3. src/routes/home/+page.svelte - Replace mock data with API calls
  4. src/routes/login/+page.svelte - Implement OAuth flow

πŸ“± Pages

/login

  • Kakao social login
  • Minimalist design
  • Brand colors and typography

/home

  • Calendar with month navigation
  • Todo list for selected date
  • Add/edit/delete tasks
  • Status management

/my

  • User profile
  • Account settings
  • Logout & delete account

πŸ› οΈ Tech Stack

  • Framework: SvelteKit 2.x
  • Styling: TailwindCSS 4.x
  • Language: JavaScript (Svelte 5 runes)
  • State: Svelte stores
  • Build: Vite 7.x

πŸ“ Business Rules

  1. Max 3 tasks per day
  2. No past date additions - Can't add tasks to dates that have passed
  3. Edit restrictions - Tasks can only be modified before their date
  4. Status updates - Always allowed (even on past dates)
  5. Replacement logic - Original task shown with strikethrough

🎯 Task Status Options

  • λŒ€κΈ° (Pending): Not started
  • μ™„λ£Œ (Done): Completed successfully
  • μ‹€νŒ¨ (Failed): Not completed
  • λŒ€μ²΄ (Replaced): Replaced with different task

πŸ”„ Development

Available Scripts

npm run dev          # Start dev server
npm run build        # Build for production
npm run preview      # Preview production build
npm run check        # Run Svelte check
npm run format       # Format code with Prettier
npm run lint         # Lint code with Prettier

Code Style

  • Prettier for formatting
  • Svelte 5 runes syntax
  • Component-based architecture
  • Utility-first CSS with Tailwind

πŸ“¦ Dependencies

Production

  • @sveltejs/kit - SvelteKit framework
  • svelte - Svelte 5
  • tailwindcss - Utility-first CSS
  • @tailwindcss/vite - Tailwind Vite plugin

Development

  • @sveltejs/adapter-auto - SvelteKit adapter
  • @sveltejs/vite-plugin-svelte - Svelte Vite plugin
  • prettier - Code formatter
  • vite - Build tool

πŸš€ Deployment

Build

npm run build

The built files will be in the build directory.

Deploy

Deploy to any static hosting service:

  • Vercel
  • Netlify
  • Cloudflare Pages
  • GitHub Pages

Or use with Node.js adapter for SSR.

πŸ“„ License

Private project - All rights reserved

🀝 Contributing

This is a private project. Contact the maintainer for contribution guidelines.

πŸ“§ Support

For support or inquiries, contact: [email protected]


Built with ❀️ using SvelteKit and TailwindCSS

About

πŸ”₯ ν•˜λ£¨λ₯Ό λ‹¬κΆˆ λͺ©ν‘œμ— λ‹€κ°€μ„ λ‹€, λͺ¨λ£¨ν‹΄!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published