GithubHelp home page GithubHelp logo

eugelogic / hlcchl-gatsby Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 5.53 MB

Latest version (Spring 2019 - Spring 2020) of the HLCCHL website built with Gatsby.js ⚡️offline now :-/

Home Page: https://ex-hlcchl-gatsby.netlify.app/

License: MIT License

JavaScript 78.30% CSS 21.70%
gatsby jamstack netlify

hlcchl-gatsby's People

Contributors

dependabot[bot] avatar eugelogic avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amith1995

hlcchl-gatsby's Issues

Remove all references for `style.css`

Remove all style.css imports except from the ones in the layout files. No child components should need an import, and unlikely any pages need imports for the style.css file

Try converting the main `css` file to `scss` again

If I simply rename the style.css to style.scss I get the following:

Failed to compile with 1 errors
Module build failed (from ./node_modules/postcss-loader/lib/index.js):
Error: ENOENT: no such file or directory
...

Fix style on News posts

Sometime a News post would not load the cs style as per other pages.
Do I need to add import './layout.css' to the /news-post.js file

Add downloads ie to AGMs posts

CG put together a quick solution at the following
https://github.com/crgeary/hlcchl-gatsby/tree/master/static
with some inf from https://www.netlify.com/docs/headers-and-basic-auth/#custom-headers
but after trying to replicate it, when I click on the link (<Button link="/Holly-Lodge-Community-Centre-donation-form.docx" color="white">Download Form</Button>) it leads to the "ugly" 404 page 👎


Before all the above, I put together something gathered from the following documentation
https://www.gatsbyjs.org/docs/adding-images-fonts-files/#using-the-static-folder
but I had the same result as above, ie "ugly" 404 page

Fix all internal links

Most of the internal links currently feature just a # particularly among the News posts.
They should be replaced accordingly.

Do I need to look into `img width 100%` vs `img maxWidth xxx` ?

See for instance the maxWidth of the images on the About Us page.
Their actual max width is greater than the one I set in the query, is it because the <img> style is width: 100%?
And if that's the case, how can I make the actual max width win over?
Or am I just over thinking it?

Refactor the Button component

in the button.js use the following

const Button = ({ children, link, color }) => (
    <Link to={link} className={color}>
      {children}
    </Link>
)

and this is how it should be used
<Button link="/hall-hire/" color="green">Hall Hire</Button>

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.