Code Monkey home page Code Monkey logo

ocfstatic's Introduction

OCF Static

A new website for the OCF. Written in Vue with Gridsome, uses Bulma and Buefy for styles.

Development

Dependencies

Getting set up

# Clone the repository
$ git clone https://github.com/ocf/ocfstatic.git && cd ocfstatic
# Install all of our dependencies
$ npm install
# Run dev server (visit http://localhost:8080 to view)
$ npm run develop

Extras

# Build
$ npm run build
# Lint
$ npm run lint
# View GraphQL schema
$ npm run explore

How to contribute

Take a look at the issues, and take your pick!

I would recommend getting familiar with the Bulma styles included in the project, to reuse them and write as little custom css as possible.

Possible pitfalls

Gridsome hydration issues are sneaky--everything works fine in develop mode but the production site won't go to the page when you click a link. Above all, this is caused by invalid or weird HTML. Some examples:

  • HTML comments i.e. <!-- --> inside <p> tags in Vue templates.
  • Nested block elements, for example a <p> tag inside of a <span>
  • Watch out for other HTML errors like nested <a> tags

Remember, you are writing server side rendered code. Don't use Vue hooks like created, instead use mounted to operate on the client side. Read https://vuepress.vuejs.org/guide/using-vue.html#browser-api-access-restrictions

ocfstatic's People

Contributors

bernardzhao avatar kalissaac avatar rhsf avatar jyxzhang avatar bentref avatar ronitnath avatar ben9583 avatar nicklitvin avatar ethanwu10 avatar bjb568 avatar raviriley avatar expedited avatar yjp20 avatar huytt621 avatar dependabot-preview[bot] avatar snowshoes7 avatar boomaa23 avatar bdsomer avatar singingtelegram avatar nikhiljha avatar dependabot[bot] avatar origamiman72 avatar adarshi avatar somaniarushi avatar 64bitpandas avatar axmmisaka avatar joelrodiel avatar ericy3 avatar jefwei avatar

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.