Git Product home page Git Product logo

ovc's Introduction

Introduction

This repository contains the source code for the Ontario Veterinary College website (https://ovc.uoguelph.ca).

Getting Started

  1. Install NPM
  2. Install Git
  3. Install the Gatsby CLI
  4. Clone this repository
  5. Start the Gatsby development server:
    cd ovc-main-web
    gatsby develop

Build and Test

  1. Build the site
    npm run build
  2. Start the Gatsby server:
    gatsby serve

Deployment

This project is built and deployed to Azure using Azure Pipelines. See azure-pipelines.yml and azuredeploy.json for details.

Site Structure

Phase 1 of the new OVC site consists of a home page, about a dozen landing (or secondary) pages, a news section, and an events calendar.

Most of the landing pages are implemented as Gatsby pages (in the src/pages directory.) Pages that require dynamic queries have (such as the index or news page) have templates (under src/templates.) Pages and templates define the page layout. Content is defined by components under src/components.

.
|-- LICENSE
|-- README.md
|-- azure-pipelines.yml
|-- azuredeploy.json
|-- config
|-- content
|   `-- explore
|-- gatsby-browser.js
|-- gatsby-config.js
|-- gatsby-node.js
|-- src
|   |-- components         Components.
|   |-- data               YAML data for blocks.
|   |-- images             Image data.
|   |-- pages              Page definitions.
|   |-- styles             Stylesheets.
|   |-- templates          Template definitions.
|   `-- utils
`-- static

Page Structure

The general structure of a page is to import required blocks from src/components/blocks and organize the blocks using the Bootstrap grid (containers, rows, and columns.)

Block content is in src/data/block. Content for src/components/blocks/example.js can generally be found in src/data/block/example.yml. Block components use static queries to source data from the YAML files.

Exceptions

Some pages use an older organizational structure. The original implementation used a "portal" template for each landing page with a corresponding YAML file in src/data/portals. Most of these pages have been migrated to use the block structure, but a few remain. There are also some examples of pages that define blocks (with their content) inline within the page file. These are in the process of being converted to define blocks in separate files under src/components/blocks with data in YAML files under src/data/block.

ovc's People

Contributors

spravato avatar brharp avatar mmafe avatar tqureshi-uog avatar snschau avatar abanuog avatar

Stargazers

Rajeev Kumar avatar

Watchers

James Cloos avatar  avatar

Forkers

abanuog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.