Skip to content

rohan-naik/DXP-demo

Repository files navigation

Step Forward

A personalized daily growth dashboard that displays motivational quotes and actionable daily steps.

Step Forward Vite Tailwind

Overview

Step Forward helps users build consistent daily habits through:

  • πŸ“– Personalized Quote of the Day
  • βœ… Small, actionable daily growth steps
  • 🎨 Beautiful, calming interface
  • ☁️ Optional Contentstack CMS integration

Quick Start

# Install dependencies
npm install

# Run development server
npm run dev

Visit http://localhost:5173 to see the app in action.

Features

  • ✨ Clean, Modern UI - Soft gradients, smooth animations, minimal design
  • πŸ“± Fully Responsive - Works beautifully on all devices
  • 🎯 Interactive Steps - Check off completed tasks with smooth animations
  • ☁️ Headless CMS Ready - Integrate with Contentstack or use local data
  • ⚑ Fast & Lightweight - Built with Vite and React 18
  • 🎨 Customizable - Easy to theme and modify
  • πŸ“¦ Zero Backend - Works standalone with mock data

Tech Stack

  • React 18 - Modern functional components with hooks
  • Vite - Lightning-fast build tool
  • Tailwind CSS - Utility-first styling
  • Contentstack - Optional headless CMS integration

Project Structure

step-forward/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/           # React components
β”‚   β”‚   β”œβ”€β”€ Header.jsx       # App header with title
β”‚   β”‚   β”œβ”€β”€ QuoteCard.jsx    # Daily quote display
β”‚   β”‚   β”œβ”€β”€ StepForwardList.jsx  # Steps container
β”‚   β”‚   └── StepItem.jsx     # Individual step with checkbox
β”‚   β”œβ”€β”€ data/                # Local mock data (fallback)
β”‚   β”‚   β”œβ”€β”€ quote.js         # Default quote
β”‚   β”‚   └── steps.js         # Default steps
β”‚   β”œβ”€β”€ services/            # External services
β”‚   β”‚   └── contentstack.js  # Contentstack API integration
β”‚   β”œβ”€β”€ styles/              # Styling
β”‚   β”‚   └── theme.css        # Theme variables and custom styles
β”‚   β”œβ”€β”€ App.jsx              # Main app component
β”‚   β”œβ”€β”€ main.jsx             # App entry point
β”‚   └── index.css            # Global styles
β”œβ”€β”€ contentstack-schemas/    # Contentstack setup
β”‚   β”œβ”€β”€ daily_quote.json     # Quote content type
β”‚   β”œβ”€β”€ daily_steps.json     # Steps content type
β”‚   β”œβ”€β”€ sample-entries/      # Sample data for import
β”‚   └── README.md            # Schema documentation
β”œβ”€β”€ index.html               # HTML entry point
β”œβ”€β”€ package.json             # Dependencies
β”œβ”€β”€ vite.config.js           # Vite configuration
β”œβ”€β”€ tailwind.config.js       # Tailwind configuration
└── README.md                # This file

Documentation

Using With Contentstack

1. Setup (5 minutes)

See CONTENTSTACK_INTEGRATION.md for step-by-step guide.

2. Import Content Types

Located in contentstack-schemas/:

  • daily_quote.json - Quote content type
  • daily_steps.json - Steps content type

3. Add Sample Content

Use provided samples in contentstack-schemas/sample-entries/:

  • 7 motivational quotes
  • 5 step collections
  • Ready to import

4. Configure

cp env.example .env
# Add your Contentstack credentials

Using Without Contentstack

The app works perfectly standalone:

  • Uses mock data from src/data/
  • No configuration needed
  • Great for development and demos

Development

Prerequisites

  • Node.js 18.0.0 or higher
  • npm or yarn

Available Scripts

# Development server with hot reload
npm run dev

# Production build
npm run build

# Preview production build
npm run preview

Customization

Update Colors

Edit src/styles/theme.css:

:root {
  --color-accent: #6366f1;  /* Change accent color */
  --shadow-md: ...;          /* Adjust shadows */
}

body {
  background: linear-gradient(...);  /* Modify gradient */
}

Update Content

Edit mock data:

  • src/data/quote.js - Default quote
  • src/data/steps.js - Default steps

Deployment

Contentstack Launch (Recommended)

Deploy directly to Contentstack Launch for seamless integration:

# Push to Git
git init
git add .
git commit -m "Initial commit"
git push origin main

# Deploy via Launch UI or CLI
# See DEPLOY_LAUNCH.md for complete guide

Quick Steps:

  1. Connect your Git repository to Launch
  2. Configure build settings (Framework: Vite, Output: dist)
  3. Add environment variables
  4. Deploy!

See DEPLOY_LAUNCH.md for detailed instructions.

Vercel

vercel

Netlify

netlify deploy --prod

Environment Variables

For production with Contentstack, set:

  • VITE_CONTENTSTACK_API_KEY
  • VITE_CONTENTSTACK_DELIVERY_TOKEN
  • VITE_CONTENTSTACK_ENVIRONMENT (e.g., dev2, production, staging)

Design Philosophy

Calm & Motivational

  • Soft color palette
  • Subtle animations
  • Generous whitespace
  • Clear typography

Minimal Yet Functional

  • No unnecessary features
  • Every element serves a purpose
  • Clean, uncluttered interface

Production-Ready

  • Clean, maintainable code
  • Semantic HTML
  • Accessible components
  • Error handling
  • Responsive design

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Future Enhancements

  • User accounts and personalization
  • Progress tracking and history
  • Achievement system
  • Social sharing
  • Daily reminders/notifications
  • Mobile app (React Native)
  • Multiple themes
  • Analytics dashboard

Contributing

This is a production-ready starting point. Feel free to:

  • Customize the design
  • Add new features
  • Integrate additional services
  • Extend the data model

License

MIT

Support


Built with ❀️ using React, Vite, and Tailwind CSS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published