AI-Driven Global E-commerce Consultancy Website built with Vue.js and modern web technologies.
- Modern Vue.js Architecture: Component-based development with Vue 3
- Internationalization: Multi-language support (EN, ZH-CN, ZH-TW, JA)
- Static Site Generation: Fast loading with pre-generated pages
- Blog System: Markdown-based blog with automatic page generation
- Responsive Design: Mobile-first approach with modern CSS
- SEO Optimized: Meta tags, structured data, and performance optimization
- Modular CSS: Organized with CSS variables and component-based styles
ucyx.com/
βββ src/
β βββ assets/
β β βββ css/ # Stylesheets
β β βββ images/ # Images and media
β β βββ js/ # JavaScript utilities
β βββ components/ # Vue components
β β βββ blog/ # Blog-specific components
β β βββ common/ # Shared components
β βββ layouts/ # Page layouts
β βββ pages/ # Page components
β βββ locales/ # Translation files
β βββ config/ # Configuration files
β βββ content/ # Content (blog posts, etc.)
βββ build/ # Build scripts
βββ dist/ # Generated static files
βββ package.json
- Node.js 16+
- npm or yarn
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview- Create a new Vue component in
src/pages/ - Add route configuration in
src/main.js - Update navigation in
src/config/site.config.js - Add translations in
src/locales/
- Create a new Markdown file in
src/content/blog/ - Add frontmatter with title, date, category, etc.
- Run build process to generate static pages
Example blog post:
---
title: "Your Blog Post Title"
date: "2024-01-15"
category: "Category"
tags: ["tag1", "tag2"]
excerpt: "Brief description of the post"
---
# Your Blog Post Content
Write your content here in Markdown format.- Create new translation file in
src/locales/(e.g.,fr.json) - Update language list in
src/config/site.config.js - Add language detection logic in
src/config/i18n.config.js
Edit the JSON files in src/locales/ directory. Changes will be reflected immediately in development mode.
- Variables: Global design tokens in
src/assets/css/variables.css - Components: Reusable component styles in
src/assets/css/components.css - Main: Base styles and utilities in
src/assets/css/main.css
- Use CSS variables for consistency
- Follow BEM naming convention for classes
- Add component-specific styles in Vue SFC
<style>blocks - Update global styles in the CSS files
The website uses a mobile-first approach with breakpoints:
- Mobile: < 768px
- Tablet: 768px - 1024px
- Desktop: > 1024px
Edit src/config/site.config.js to update:
- Navigation structure
- Footer links
- Page metadata
- Language settings
Edit vite.config.js for:
- Build optimization
- Asset handling
- Development server settings
- Code Splitting: Automatic route-based code splitting
- Image Optimization: Lazy loading and responsive images
- CSS Optimization: Purged unused styles in production
- JavaScript Minification: Compressed JS bundles
- Caching: Optimized caching headers
The site includes built-in performance monitoring that logs:
- Page load times
- Resource loading performance
- Core Web Vitals metrics
The built site in dist/ folder can be deployed to:
- Netlify
- Vercel
- GitHub Pages
- AWS S3 + CloudFront
- Any static hosting service
# Production build
npm run build
# The dist/ folder contains all static files ready for deploymentCreate .env file for environment-specific settings:
VITE_API_URL=https://api.ucyx.com
VITE_ANALYTICS_ID=your-analytics-id# Run tests (when implemented)
npm run test
# Run linting
npm run lint
# Type checking
npm run type-checkBlog posts are managed through Markdown files in src/content/blog/. The build process automatically:
- Parses frontmatter metadata
- Converts Markdown to HTML
- Generates individual post pages
- Creates blog listing pages
- Updates navigation and sitemaps
- Text Changes: Update translation files in
src/locales/ - Images: Add to
src/assets/images/and reference in components - New Sections: Create new Vue components and add to page layouts
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Copyright Β© 2024 UCYX. All rights reserved.
For technical support or questions:
- Email: tech@ucyx.com
- Documentation: [Internal Wiki]
- Issues: [GitHub Issues]