Giter VIP home page Giter VIP logo

gatsby-starter-elemental's People

Contributors

ahmad-reza619 avatar akzhy avatar baart1989 avatar hoonsubin avatar mensaah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gatsby-starter-elemental's Issues

TypeError: Cannot read property 'fluid' of undefined

I've searched everywhere for a solution but I can't seem to track down what is happening.

When using gatsby develop and viewing in the browser, I get this error:

TypeError: Cannot read property 'fluid' of undefined

All I've done was remove a couple things from gatsby-config.js and add my own images to the static folder.

If you can take a look at my repo I'd appreciate it. It's a great starter, just need to track this down.

Build Blog

Relative paths in Markdown Frontmatter?

Hello.

This isn't really an issue, but, more of a personal preference. I was wondering, if I could store all the images (and videos) used in the blog and/or portfolio in their respective directories in the static folder for better organization of all media files in just one folder. I tried doing it and it works correctly for media inside the Markdown content, however, the images in Frontmatter work only when they're in the same folder as the index.md.

I tried using the following paths in Frontmatter after storing the files in correct folder inside static:

image: /images/cover.png - hoping it would load the image from root of the domain. This didn't work.

image: ../../../static/images/cover.png - a complete relative path of the image according to the location of index.md. This didn't work either.

In both the cases, I get TypeError: Cannot read property 'childImageSharp' of null in browser.

Further, it points to the file src/components/items-portfolio.js:13

<div className="item col s12">
  11 | 	<div className="row flex">
  12 | 		<div className="col m6 image">
> 13 | 			<Img fluid=
  14 | 				{
  15 | 					this.props.data.node.frontmatter.image.childImageSharp.fluid
  16 | 				}/>

Currently, my website and everything is working fine, so, this can be safely ignored if it's not considered worth thinking upon. It currently just bugs me a little that it's not all in one folder. πŸ˜‰

Dark mode flicker in Production

First off, thanks for this great theme! I think I will contribute in due time.
My only problem is that the light mode flickers when I first load the page in production, but dark mode is enabled by default. Any ways around this or am I just doing something wrong?

v1.1.1 Submit button on contact form not working

Hello!

I just noticed that v2.0.0 was released and it looks even better. More importantly, it already has fixed the issue described here. However, I've now customised v1.1.1 a lot and I am happy with the result. So, merging with v2.0.0 will be a big task for me.

The problem is, I just noticed that the Submit button of contact form on the contact page isn't working in the mobile version. I've narrowed the problem down to the point that it stops working at the 800px breakpoint, that is, when the sidebar navigation appears instead of the default desktop navigation.

Can this be considered for fixing? It'd be a great help.

Firefox Dark Mode Switch in footer

I'm using Firefox on Ubuntu 18.04 and the dark mode switch is being displayed as follows on the footer:
image

Also, out of curiosity - how does this not happen on Chrome? I couldn't find any code that turns off the switch on the footer.

Thanks :D

Netlify forms

is there a way to hook up the contact form to netlify? When I try to set the following things on the form the form still tries to make a post request to /contact which fails with a 404

    <form
        method="post"
        data-netlify="true"
        name="contact-form"
    >

Not certain what node version I need to be able to run the project?

Hi, I'd like to use this as a basis for a personal project but dont know which version of node to use to get everything running stably. Once I have this and have the project building, I also intend to update everything to the most recent versions and will create a PR so that others can keep using this lovely theme.

Path prefix issue after build

Everything is fine when developing i.e., gatsby develop

image

But, the same after building for production results in elements with bad paths i.e., gatsby build

image

Except the homepage, all the paths do not contain their path prefixes

image
image

Also tried using gatsby build --prefix-paths while building, did not work.

Comment for blog post

Problems

currently there is no way to add comments in a blog post, it would be nice to add that kind of feature. Since it maybe would attract more people to user's site, and also interactivity of the sites.

Solution

Maybe we can add this plugin so that there will be support for comments

Let me know what you think πŸ˜„

Custom fonts

Hello. I'd like to change the fonts used in this starter. I tried a lot now, but, all I could do was remove the default font, but, couldn't replace it with my custom font.

I removed <link href="https://fonts.googleapis.com/css?family=Work+Sans:800|Poppins&display=swap" rel="stylesheet"/> from src/components/head.js and added <link rel="stylesheet" type="text/css" href="css/fonts.css"/> instead of it. Then, I created a folder named css in my static folder and created the fonts.css file in that folder. I added this code to the file:

@font-face
	{
		font-family: 'Custom Font';
		font-style: normal;
		font-weight: normal;
		font-display: swap;
		src: url('../fonts/CustomFont.ttf') format('truetype');
	}

and added the CustomFont.ttf file in the fonts folder inside my static folder.

Then, in the src/style/theme.less, I changed the value @fontNormal: variable to match the name of the custom font. I tried various other ways in the past 3 hours, nothing worked. This was my first attempt and was the most expected to work, but, this does nothing. The browser is loading the fonts.css file and the contents are even shwoing the correct URL for the font file, however, the font isn't working. The system default font is being shown.

This is my current project file structure:

β”œβ”€β”€ Project
β”‚   β”œβ”€β”€ contents
β”‚   β”‚   β”œβ”€β”€ basepages
β”‚   β”‚   β”œβ”€β”€ blog
β”‚   β”‚   β”œβ”€β”€ portfolio
β”‚   β”œβ”€β”€ node_modules
β”‚   β”œβ”€β”€ src
β”‚   β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”‚   β”œβ”€β”€ page-components
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ grid.js
β”‚   β”‚   β”‚   β”œβ”€β”€ blogposts-latest.js
β”‚   β”‚   β”‚   β”œβ”€β”€ contact.js
β”‚   β”‚   β”‚   β”œβ”€β”€ date.js
β”‚   β”‚   β”‚   β”œβ”€β”€ footer-links.js
β”‚   β”‚   β”‚   β”œβ”€β”€ footer.js
β”‚   β”‚   β”‚   β”œβ”€β”€ head.js
β”‚   β”‚   β”‚   β”œβ”€β”€ icons.js
β”‚   β”‚   β”‚   β”œβ”€β”€ items-blog.js
β”‚   β”‚   β”‚   β”œβ”€β”€ items-portfolio.js
β”‚   β”‚   β”‚   β”œβ”€β”€ layout.js
β”‚   β”‚   β”‚   β”œβ”€β”€ link.js
β”‚   β”‚   β”‚   β”œβ”€β”€ list-blog.js
β”‚   β”‚   β”‚   β”œβ”€β”€ list.portfolio.js
β”‚   β”‚   β”‚   β”œβ”€β”€ logo.js
β”‚   β”‚   β”‚   β”œβ”€β”€ navbar.js
β”‚   β”‚   β”‚   β”œβ”€β”€ navlinks.js
β”‚   β”‚   β”‚   β”œβ”€β”€ pagination.js
β”‚   β”‚   β”‚   β”œβ”€β”€ sectiontitle.js
β”‚   β”‚   β”‚   β”œβ”€β”€ seo.js
β”‚   β”‚   β”‚   β”œβ”€β”€ sociallinks.js
β”‚   β”‚   β”œβ”€β”€ pages
β”‚   β”‚   β”‚   β”œβ”€β”€ 404.js
β”‚   β”‚   β”‚   β”œβ”€β”€ contact.js
β”‚   β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   β”œβ”€β”€ style
β”‚   β”‚   β”‚   β”œβ”€β”€ basepage.less
β”‚   β”‚   β”‚   β”œβ”€β”€ blog-singlepage.less
β”‚   β”‚   β”‚   β”œβ”€β”€ contact.less
β”‚   β”‚   β”‚   β”œβ”€β”€ footer.less
β”‚   β”‚   β”‚   β”œβ”€β”€ list-blog.less
β”‚   β”‚   β”‚   β”œβ”€β”€ list-portfolio.less
β”‚   β”‚   β”‚   β”œβ”€β”€ navbar.less
β”‚   β”‚   β”‚   β”œβ”€β”€ pagination.less
β”‚   β”‚   β”‚   β”œβ”€β”€ portfolio-singlepage.less
β”‚   β”‚   β”‚   β”œβ”€β”€ theme.less
β”‚   β”‚   β”‚   β”œβ”€β”€ wall.less
β”‚   β”‚   β”œβ”€β”€ templates
β”‚   β”‚   β”‚   β”œβ”€β”€ basepage.js
β”‚   β”‚   β”‚   β”œβ”€β”€ blog-list.js
β”‚   β”‚   β”‚   β”œβ”€β”€ blog.js
β”‚   β”‚   β”‚   β”œβ”€β”€ portfolio-list.js
β”‚   β”‚   β”‚   β”œβ”€β”€ portfolio.js
β”‚   β”‚   β”‚   β”œβ”€β”€ single-page.js
β”‚   β”‚   β”œβ”€β”€ sw.js
β”‚   β”œβ”€β”€ static
β”‚   β”‚   β”œβ”€β”€ css
β”‚   β”‚   β”‚   β”œβ”€β”€ fonts.css
β”‚   β”‚   β”œβ”€β”€ fonts
β”‚   β”‚   β”‚   β”œβ”€β”€ CustomFont.ttf
β”‚   β”‚   β”œβ”€β”€ images
β”‚   β”‚   β”‚   β”œβ”€β”€ icon.png
β”‚   β”‚   β”‚   β”œβ”€β”€ logo.png
β”‚   β”‚   β”œβ”€β”€ netlify.toml
β”‚   β”œβ”€β”€ gatsby-config.js
β”‚   β”œβ”€β”€ gatsby-node.js
β”‚   β”œβ”€β”€ package-lock.json
β”‚   β”œβ”€β”€ package.json

Typescript support

Hello @akzhy

This repo is great starter, far best I ever seen.
Also it uses tailwind which is super cool!
The code looks neat and clean!

I was thinking what is the best way to thank you for this awesome theme.
Would you be interested to add typescript support to it ?
This is the area I feel comfortable with.

Would you be interested in this kind of contribution ?

Cannot find module 'graphql/validation/rules/KnownArgumentNamesRule'

Commands Run

  1. gatsby new folder-name https://github.com/akzhy/gatsby-starter-elemental
  2. cd folder-name
  3. gatsby develop

Environment

Node version: 14.17.0
Gatsby versions:

Gatsby CLI version: 4.21.0
Gatsby version: 2.32.13 (version used in folder name)

Error

Error in "/node_modules/gatsby-plugin-codegen/gatsby-node.js": Cannot find module
'graphql/validation/rules/KnownArgumentNamesRule'
Require stack:
- /node_modules/@apollo/federation/dist/composition/validate/preNormalization/tagDirective.js
- /node_modules/@apollo/federation/dist/composition/validate/preNormalization/index.js
- /node_modules/@apollo/federation/dist/composition/validate/index.js
- /node_modules/@apollo/federation/dist/composition/composeAndValidate.js
- /node_modules/@apollo/federation/dist/composition/index.js
- /node_modules/@apollo/federation/dist/index.js
- /node_modules/apollo-language-server/lib/providers/schema/file.js
- /node_modules/apollo-language-server/lib/providers/schema/index.js
- /node_modules/apollo-language-server/lib/project/base.js
- /node_modules/apollo-language-server/lib/index.js
- /node_modules/apollo/lib/Command.js
- /node_modules/apollo/lib/index.js
- /node_modules/gatsby-plugin-codegen/gatsby-node.js
- /node_modules/gatsby/dist/bootstrap/resolve-module-exports.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/validate.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/load.js
- /node_modules/gatsby/dist/bootstrap/load-plugins/index.js
- /node_modules/gatsby/dist/services/initialize.js
- /node_modules/gatsby/dist/services/index.js
- /node_modules/gatsby/dist/state-machines/develop/services.js
- /node_modules/gatsby/dist/state-machines/develop/index.js
- /node_modules/gatsby/dist/commands/develop-process.js
- /.cache/tmp-94599-kzjc7K6RFZCZ

Can't resize window

TypeError on resizing window:

TypeError: this.setState is not a function. (In 'this.setState({
winHeight: window.innerHeight
})', 'this.setState' is undefined)

Use fluid image plugin on title image?

Is it possible to add the fluid plugin image on the title image? Right now, it just puts the source image as is, but it seems like having it as an image that degrades would be useful.

Support for react-helmet v6.0.0

I was trying out this starter and updated all my packages in package.json. Thus, I ended up updating react-helment to 6.0.0. Doing this breaks the build. However, I searched on Google and found this: gatsbyjs/gatsby#10578 (comment). The solution is to change Line 2 in src/components/head.js and Line 3 in src/components/seo.js from import Helmet from "react-helmet"; to import { Helmet } from "react-helmet";

Unable to Install Starter

It appears not possible to install this starter in its current form. This has been attempted on multiple devices, with multiple people. When 'gatsby develop' is run, this error is shown: Issue

Steps to Reproduce:

Given Node.js and Git are installed...

npm install -g gatsby-cli
gatsby new project-name https://github.com/akzhy/gatsby-starter-elemental
cd project-name
gatsby develop

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.