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.
# Install dependencies
npm install
# Start development server
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:previewThis 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
Enhanced with custom Vue.js components for school-specific features:
Flexible announcement system with multiple display modes.
<AnnouncementBanner
type="info"
title="Important Notice"
message="Your announcement message here"
:persistent="true"
/>Comprehensive contact information display with social media integration.
<ContactInfo
:phones="['+91 7376338453', '+91 94500 71734']"
email="sfcicjhansi@gmail.com"
background="blue"
/>Transform navigation into engaging card-based interface.
<QuickLinks
title="Important Links"
:links="linkArray"
:columns="3"
/>Responsive image gallery with lightbox functionality.
<Gallery
title="School Gallery"
:images="imageArray"
background="light"
/>Flexible content sections with markdown support.
<ContentSection
title="About Us"
background="white"
>
Your **markdown** content here
</ContentSection>The theme leverages Open Props for consistent design tokens:
- Colors: Semantic color system with school brand colors
- Typography: Fluid typography scale (
--font-size-0to--font-size-6) - Spacing: Consistent spacing scale (
--space-xsto--space-2xl) - Animations: Smooth, accessible animations
- Responsive: Mobile-first breakpoints
:root {
--school-blue: hsl(218 75% 40%);
--school-yellow: var(--yellow-5);
--school-accent: var(--orange-5);
}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
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
}
})The custom school footer is added via layout slots:
<DefaultTheme.Layout>
<template #layout-bottom>
<Footer />
</template>
</DefaultTheme.Layout>Navigation is centered using custom CSS:
.VPNav .VPNavBar .container {
display: flex !important;
justify-content: center !important;
align-items: center !important;
}The home page (docs/index.md) uses VitePress home layout with:
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: /aboutfeatures:
- icon: π
title: ICSE/ISC Curriculum
details: Comprehensive curriculum for academic excellence
# ... more featuresAfter 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
- 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
- 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
- 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
- Phone: +91 7376338453, +91 94500 71734
- Email: sfcicjhansi@gmail.com
- Social Media: YouTube, Parent Portal, Google Play
- Online Services: Fee payment, parent portal access
Create .md files in the docs/ directory:
---
title: Your Page Title
---
# Your Page Content
<CustomComponent />Components are globally registered and can be used in any markdown file:
<ContactInfo
background="light"
:phones="['your-phone']"
/>Global styles are in docs/.vitepress/theme/style.css with:
- Open Props imports
- School brand colors
- Component styles
- Responsive utilities
- Centered navigation CSS
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
- VitePress Documentation
- Open Props Documentation
- Vue.js Documentation
- Theme Guide - Component usage guide
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
npm run docs:dev - Submit a pull request
For technical support:
- School Contact: +91 7376338453
- Email: sfcicjhansi@gmail.com
- Website: https://www.sfcjhs.in/
St. Francis Convent Inter College - Excellence in Education Since 1894