Skip to content

sfcjhs/sfc-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

St. Francis Convent Inter College - VitePress Website

A modern, responsive website for St. Francis Convent Inter College built with VitePress and the default theme, enhanced with custom components and Open Props design system.

πŸš€ Quick Start

# Install dependencies
npm install

# Start development server
npm run docs:dev

# Build for production
npm run docs:build

# Preview production build
npm run docs:preview

πŸ—οΈ Architecture

Default VitePress Theme

This site uses the default VitePress theme as the base, providing:

  • βœ… Clean centered navigation without logo or search clutter
  • βœ… Responsive design out of the box
  • βœ… Dark mode support
  • βœ… Accessibility features
  • βœ… Professional documentation layout

Custom Components

Enhanced with custom Vue.js components for school-specific features:

πŸ“’ AnnouncementBanner

Flexible announcement system with multiple display modes.

<AnnouncementBanner 
  type="info"
  title="Important Notice"
  message="Your announcement message here"
  :persistent="true"
/>

πŸ“§ ContactInfo

Comprehensive contact information display with social media integration.

<ContactInfo 
  :phones="['+91 7376338453', '+91 94500 71734']"
  email="sfcicjhansi@gmail.com"
  background="blue"
/>

πŸ”— QuickLinks

Transform navigation into engaging card-based interface.

<QuickLinks 
  title="Important Links"
  :links="linkArray"
  :columns="3"
/>

πŸ–ΌοΈ Gallery

Responsive image gallery with lightbox functionality.

<Gallery 
  title="School Gallery"
  :images="imageArray"
  background="light"
/>

πŸ“ ContentSection

Flexible content sections with markdown support.

<ContentSection 
  title="About Us"
  background="white"
>
  Your **markdown** content here
</ContentSection>

🎨 Design System

Open Props Integration

The theme leverages Open Props for consistent design tokens:

  • Colors: Semantic color system with school brand colors
  • Typography: Fluid typography scale (--font-size-0 to --font-size-6)
  • Spacing: Consistent spacing scale (--space-xs to --space-2xl)
  • Animations: Smooth, accessible animations
  • Responsive: Mobile-first breakpoints

School Brand Colors

:root {
  --school-blue: hsl(218 75% 40%);
  --school-yellow: var(--yellow-5);
  --school-accent: var(--orange-5);
}

πŸ“ Project Structure

docs/
β”œβ”€β”€ .vitepress/
β”‚   β”œβ”€β”€ config.mts          # VitePress configuration
β”‚   └── theme/
β”‚       β”œβ”€β”€ index.ts        # Theme setup (extends default)
β”‚       β”œβ”€β”€ Layout.vue      # Custom layout wrapper
β”‚       β”œβ”€β”€ style.css       # Global styles + Open Props
β”‚       └── components/     # Custom Vue components
β”œβ”€β”€ public/
β”‚   └── images/            # Static assets
β”œβ”€β”€ index.md               # Home page (VitePress home layout)
β”œβ”€β”€ about.md               # About page
β”œβ”€β”€ staff.md               # Staff page
└── theme-guide.md         # Component documentation

βš™οΈ Configuration

Navigation Setup

Navigation is configured in docs/.vitepress/config.mts with centered layout:

export default defineConfig({
  title: "St. Francis Convent Inter College",
  themeConfig: {
    // Clean centered navigation (no logo, no search)
    nav: [
      { text: 'Home', link: '/' },
      { text: 'About', link: '/about' },
      // ... more navigation items
    ],
    // ... other configuration
  }
})

Custom Footer

The custom school footer is added via layout slots:

<DefaultTheme.Layout>
  <template #layout-bottom>
    <Footer />
  </template>
</DefaultTheme.Layout>

Centered Navigation CSS

Navigation is centered using custom CSS:

.VPNav .VPNavBar .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

🏠 Home Page Features

The home page (docs/index.md) uses VitePress home layout with:

Hero Section

hero:
  name: "St. Francis Convent Inter College"
  text: "Excellence in Education Since 1894"
  tagline: "Nurturing Minds, Building Futures in Jhansi"
  image:
    src: /images/logo.png
  actions:
    - theme: brand
      text: About Our School
      link: /about

Features Grid

features:
  - icon: πŸŽ“
    title: ICSE/ISC Curriculum
    details: Comprehensive curriculum for academic excellence
  # ... more features

Custom Components

After the hero and features, custom components provide:

  • πŸ“’ Important announcements banner
  • πŸ“§ Contact information sections
  • πŸ”— Quick navigation links
  • πŸ“° Recent news and achievements
  • πŸ–ΌοΈ Photo gallery
  • πŸ“ž Admission contact section

🎯 Key Features

βœ… Clean Navigation

  • Centered Layout: Navigation items centered for better visual balance
  • No Clutter: Removed logo and search from navbar for cleaner look
  • Professional: Dropdown menus for organized navigation
  • Responsive: Mobile-friendly hamburger menu

βœ… Default Theme Benefits

  • Professional: Clean, modern design
  • Accessible: WCAG compliant
  • SEO Optimized: Built-in meta tags and sitemap
  • Fast: Optimized for performance
  • Maintainable: No complex custom navigation code

βœ… Custom Enhancements

  • School Branding: Custom colors and styling in content
  • Enhanced Components: Rich interactive components
  • Open Props: Modern design system
  • Mobile Optimized: Perfect mobile experience
  • Content Focused: Easy content management

βœ… Contact Information

  • Phone: +91 7376338453, +91 94500 71734
  • Email: sfcicjhansi@gmail.com
  • Social Media: YouTube, Parent Portal, Google Play
  • Online Services: Fee payment, parent portal access

πŸ”§ Development

Adding New Pages

Create .md files in the docs/ directory:

---
title: Your Page Title
---

# Your Page Content

<CustomComponent />

Using Components

Components are globally registered and can be used in any markdown file:

<ContactInfo 
  background="light"
  :phones="['your-phone']"
/>

Styling

Global styles are in docs/.vitepress/theme/style.css with:

  • Open Props imports
  • School brand colors
  • Component styles
  • Responsive utilities
  • Centered navigation CSS

🌐 Deployment

The site can be deployed to any static hosting service:

# Build the site
npm run docs:build

# The built files will be in docs/.vitepress/dist/

Popular deployment options:

  • Netlify: Connect GitHub repo for automatic deployments
  • Vercel: Zero-config deployment
  • GitHub Pages: Free hosting for public repositories
  • Firebase Hosting: Google's hosting platform

πŸ“š Resources

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally with npm run docs:dev
  5. Submit a pull request

πŸ“ž Support

For technical support:


St. Francis Convent Inter College - Excellence in Education Since 1894

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors