Skip to content

BANCS-Norway/home

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

152 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

BANCS - Professional Homepage & Blog

BANCS Logo

Professional software development company homepage and technical blog, built with VitePress, TypeScript, and Tailwind CSS.

🌐 Live Site: www.bancs.no

Features

  • ⚑️ Fast & Modern: Built with VitePress for optimal performance
  • 🎨 Beautiful Design: Custom Tailwind CSS theme with BANCS brand colors
  • πŸŒ“ Dark/Light Mode: Seamless theme switching
  • πŸ“ Technical Blog: Share knowledge with code examples
  • πŸ”§ TypeScript: Full type safety throughout
  • πŸ“¦ Semantic Versioning: Automated releases with semantic-release
  • πŸš€ GitHub Pages: Automated deployment via GitHub Actions
  • 🀝 Open Source: Accept guest blogger contributions via PRs

Tech Stack

  • Framework: VitePress v1.x
  • Language: TypeScript 5.x
  • Styling: Tailwind CSS 4.x
  • Deployment: GitHub Pages
  • CI/CD: GitHub Actions
  • Versioning: Semantic Release

Project Structure

pages/
β”œβ”€β”€ docs/                      # VitePress docs & content
β”‚   β”œβ”€β”€ .vitepress/           # VitePress configuration
β”‚   β”‚   β”œβ”€β”€ config.ts         # Main config
β”‚   β”‚   └── theme/            # Custom theme
β”‚   β”‚       β”œβ”€β”€ index.ts      # Theme entry
β”‚   β”‚       └── custom.css    # Tailwind + custom styles
β”‚   β”œβ”€β”€ public/               # Static assets
β”‚   β”‚   β”œβ”€β”€ bancs.png         # Logo
β”‚   β”‚   └── CNAME             # Custom domain
β”‚   β”œβ”€β”€ blog/                 # Blog posts
β”‚   β”‚   β”œβ”€β”€ index.md          # Blog index
β”‚   β”‚   └── *.md              # Individual posts
β”‚   β”œβ”€β”€ index.md              # Homepage
β”‚   β”œβ”€β”€ about.md              # About page
β”‚   β”œβ”€β”€ projects.md           # Projects showcase
β”‚   └── contact.md            # Contact information
β”œβ”€β”€ examples/                  # Code examples for blog posts
β”‚   └── working-with-claude/  # Example directory
β”œβ”€β”€ .github/workflows/         # GitHub Actions
β”‚   β”œβ”€β”€ deploy.yml            # Pages deployment
β”‚   └── release.yml           # Semantic release
β”œβ”€β”€ tailwind.config.js        # Tailwind configuration
β”œβ”€β”€ postcss.config.js         # PostCSS configuration
└── package.json              # Dependencies & scripts

Getting Started

Prerequisites

  • Node.js 22+ (LTS)
  • npm 10+

Installation

# Clone the repository
git clone https://github.com/BANCS-Norway/home.git
cd pages

# Install dependencies
npm install

# Start development server
npm run dev

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

Development

# Start dev server with hot reload
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Contributing

We welcome contributions, especially guest blog posts!

Writing a Guest Blog Post

  1. Fork the repository at https://github.com/BANCS-Norway/home
  2. Create your blog post:
    • Add your post: docs/blog/your-post-title.md
    • Add code examples: examples/your-post-title/
  3. Follow the format:
    # Your Post Title
    
    **Published**: YYYY-MM-DD
    **Author**: Your Name
    **Reading Time**: X minutes
    
    ## Introduction
    Your content here...
  4. Submit a PR with your changes

Design System

BANCS uses a custom color palette based on our brand:

--bancs-dark: #0f172a       /* Primary dark background */
--bancs-dark-alt: #1e1b4b   /* Alternative dark */
--bancs-accent: #6366f1     /* Indigo accent */
--bancs-accent-alt: #8b5cf6 /* Purple accent */

See ../design/ for complete brand guidelines.

Deployment

GitHub Pages

The site automatically deploys to GitHub Pages on every push to main:

  1. GitHub Actions builds the site
  2. Deploys to gh-pages branch
  3. Available at custom domain via CNAME

Custom Domain Setup

  1. Add CNAME file in docs/public/ with your domain
  2. Configure DNS records:
    CNAME www -> bancs.github.io
    A @ -> GitHub Pages IPs
    
  3. Enable HTTPS in repository settings

Versioning

This project uses Semantic Release for automated versioning:

  • feat: New feature β†’ Minor version bump
  • fix: Bug fix β†’ Patch version bump
  • BREAKING CHANGE: Breaking change β†’ Major version bump

Commits must follow Conventional Commits:

git commit -m "feat: add new blog post about TypeScript"
git commit -m "fix: correct typo in about page"
git commit -m "docs: update contributing guidelines"

Scripts

Script Description
npm run dev Start development server
npm run build Build for production
npm run preview Preview production build
npm run semantic-release Run semantic release (CI only)

License

MIT Β© BANCS

See LICENSE for details.

Contact

Acknowledgments


Built with ❀️ by BANCS

About

The homepage for BANCS AS

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors