Skip to content

aawdls/controlsystemstudio.org

 
 

Repository files navigation

controlsystemstudio.org Netlify Status

Redesign of the website for Control System Studio (CS-Studio). Made using GatsbyJS and hosted on netlify.

https://peaceful-jackson-f187cb.netlify.app/

Developing/Testing locally

Gatsby has a fantastic development server feature, which allows you to preview the page immediately without building it. Make sure to install all npm dependencies using npm install the first time you run the site.

$ npm start

Building

To run the site on a server, it needs to be built first.

$ npm install
$ npm run build

The website files can be found in public.

Editing content

Pages are written in the JSX format, which is similar to HTML, but behaves differently in certain usecases. Simple paragraphs and lists can be written in the familiar HTML format, but images are embedded in a different way. Images are places inside src/images and queried using GraphQL.

opi: file(
    relativePath: { eq: "CS-Studio-OPIs_and_Keyvisual_v03_big.png" }
  ) {
    childImageSharp {
      fluid(maxWidth: 3840, maxHeight: 2160) {
        ...GatsbyImageSharpFluid_withWebp
      }
    }
  }

This query is included inside of the useStaticQuery hook inside of the main component of the page. The image can then be displayed using

<Img
      fluid={images.opi.childImageSharp.fluid}
      style={{ maxWidth: `80%`, margin: `3rem 0 4rem` }}
/>

For more detail please refer to the Gatsby documentation.

Downloads

Because links to downloads can be updated quite frequently, they are separated from the Download page to make editing them a little easier. You can find the file where you can define each link necessary in src/utils/downloadinfo.js

About

Control System Studio website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.9%
  • CSS 16.1%