akzhy / gatsby-starter-elemental Goto Github PK
View Code? Open in Web Editor NEWGatsby starter for portfolio sites
Home Page: https://elemental.netlify.app
License: MIT License
Gatsby starter for portfolio sites
Home Page: https://elemental.netlify.app
License: MIT License
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.
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. π
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?
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.
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"
>
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.
Hi I was wondering if anyone perhaps knows how to fix the loading issue happening here:https://elemental.netlify.com/
If you point me in the right direction I would be more than happy to fix it but I have no idea why its happening
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.
Maybe we can add this plugin so that there will be support for comments
Let me know what you think π
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
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 ?
gatsby new folder-name https://github.com/akzhy/gatsby-starter-elemental
cd folder-name
gatsby develop
Node version: 14.17.0
Gatsby versions:
Gatsby CLI version: 4.21.0
Gatsby version: 2.32.13 (version used in folder name)
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
What files would I have to change the URL for each of the NavLinks?
TypeError on resizing window:
TypeError: this.setState is not a function. (In 'this.setState({
winHeight: window.innerHeight
})', 'this.setState' is undefined)
Was looking at preview site. Had to go to Google to find this repo again... Maybe add a link back here in the about section? Otherwise, nice design! Cheers!
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.
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";
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:
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
Gatsbyβs component enables linking to internal pages as well as a powerful performance feature called preloading. https://www.gatsbyjs.org/docs/gatsby-link/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.