Skip to content

Commit fd9ed9c

Browse files
author
Sameer Ahamed
committed
added prettier
1 parent 082083f commit fd9ed9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1340
-1089
lines changed

.vscode/settings.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"prettier.useTabs": true,
3-
"editor.tabSize": 2,
4-
"html.format.wrapLineLength": 80,
5-
"editor.wordWrap": "on"
6-
}
2+
"prettier.useTabs": true,
3+
"editor.tabSize": 2,
4+
"html.format.wrapLineLength": 80,
5+
"editor.wordWrap": "on"
6+
}

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[![Netlify Status](https://api.netlify.com/api/v1/badges/63521b78-612e-4a2f-a409-3fa8009e7f3b/deploy-status)](https://app.netlify.com/sites/frosty-perlman-9da1cb/deploys) &nbsp;<a href="https://twitter.com/intent/follow?screen_name=stackrole">
2-
<img src="https://img.shields.io/twitter/follow/stackrole.svg?label=Follow%20@Stackrole" alt="Follow @stackrole" />
2+
<img src="https://img.shields.io/twitter/follow/stackrole.svg?label=Follow%20@Stackrole" alt="Follow @stackrole" />
33
</a>
44

55
# Foundation
66

7-
A starter to launch your blazing fast personal website and a blog, Built with [Gatsby][gatsby] and [Netlify CMS][netlifyCMS].
7+
A starter to launch your blazing fast personal website and a blog, Built with [Gatsby][gatsby] and [Netlify CMS][netlifycms].
88

99
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/stackrole/gatsby-starter-foundation)
1010

@@ -13,6 +13,7 @@ Need help launching your website? My DM's are open on <a href="https://twitter.c
1313
[![Gatsby Starter Foundation Screenshot](static/assets/gatsby-starter-foundation-light-mode.jpg)](https://foundation.stackrole.com)
1414

1515
## 👌 Features
16+
1617
- A Blog and Personal website with Netlify CMS.
1718
- Responsive Web Design
1819
- Dark / Light Mode
@@ -28,17 +29,18 @@ Need help launching your website? My DM's are open on <a href="https://twitter.c
2829
- Invite collaborators into Netlify CMS, without giving access to your Github account via Git Gateway
2930
- Gatsby Incremental Builds with Netlify.
3031

31-
3232
[![Gatsby Starter Foundation Screenshot](static/assets/gatsby-starter-foundation-dark-mode.jpg)](https://foundation.stackrole.com)
3333

3434
## 🚀 Quick Deploy
35+
3536
Just click on the **Deploy to Netlify** button.
3637

3738
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/stackrole/gatsby-starter-foundation)
3839

3940
This would fork `gatsby-starter-foundation` to your Github account and start building your website on [Netlify](https://netlify.com). Once the deployment is done. Your website will be live and website address would look like **site-name.netlify.app**
4041

4142
### Further Instructions
43+
4244
- [Access to Netlify CMS](#access-to-netlify-cms)
4345
- [Editing content and Adding posts](#editing-content-and-adding-posts)
4446
- [Customing Site details](#customing-site-details)
@@ -49,34 +51,42 @@ This would fork `gatsby-starter-foundation` to your Github account and start bui
4951
- [Thank you from Stackrole](#thank-you)
5052

5153
## ⚙ Access to Netlify CMS
54+
5255
- Goto app.netlify.com > select your website from the list
5356
- Goto identity and Click **Enable Identiy**
5457
- Click on **Invite Users** and invite yourself. You will receive an email and you need to accept the invitation to set the password.
5558
- Now headover to Settings > Identity > Services and **Enable Git Gateway**
56-
- You can also manage who can register and log in to your CMS. Goto Settings > Identity > Registration >Registration Preferences. I would prefer to keep it to **Invite Only**, if i am the only one using it.
59+
- You can also manage who can register and log in to your CMS. Goto Settings > Identity > Registration >Registration Preferences. I would prefer to keep it to **Invite Only**, if i am the only one using it.
5760
- Now, goto to **site-name.netlify.app/admin/**, and login with your credentials.
5861

5962
## 📝 Editing content and Adding posts
60-
Once you are in your Netlify CMS, you can navigate to Posts and Pages. Here you will find a list of existing pages and posts.
63+
64+
Once you are in your Netlify CMS, you can navigate to Posts and Pages. Here you will find a list of existing pages and posts.
6165

6266
You can select any existing post or page to start editing or add a **New Post**. Have fun :)
6367

6468
## ⚙ Customing Site details
65-
You can find all the website settings such website Site title, Website URL, Google anlaytics etc,.. in your Netlify CMS `Admin > Settings > General`
6669

70+
You can find all the website settings such website Site title, Website URL, Google anlaytics etc,.. in your Netlify CMS `Admin > Settings > General`
6771

6872
## 🌐 Adding Custom domain to netlify website
73+
6974
We have written a short article on [Custom domain with Netlify website](custom-domain)
7075

7176
## 🖥 Install Locally
77+
7278
Use the Gatsby CLI to create a new site, specifying the `gatsby-starter-foundation` starter.
79+
7380
```bash
7481
gatsby new gatsby-starter-foundation https://github.com/stackrole/gatsby-starter-foundation
7582
```
83+
7684
> You need Node and Gatsby-CLI installed, check out Gatsby [Setup Instructions](https://www.gatsbyjs.org/tutorial/part-zero/)
7785
7886
### Start developing
87+
7988
Navigate into your new site’s directory and start it up.
89+
8090
```shell
8191
cd my-hello-world-starter/
8292
gatsby develop
@@ -125,7 +135,7 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje
125135

126136
8. **`LICENSE`**: Gatsby is licensed under the MIT license.
127137

128-
9. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
138+
9. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
129139

130140
10. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
131141

@@ -139,18 +149,18 @@ Looking for more guidance? Full documentation for Gatsby lives [on the website](
139149

140150
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
141151

142-
143152
## 🙏 Thank you
144-
We really appreciate you taking time to build your website with our `gatsby-starter-foundation`.
145153

146-
I would love to get your feedback and contributions.
154+
We really appreciate you taking time to build your website with our `gatsby-starter-foundation`.
155+
156+
I would love to get your feedback and contributions.
147157

148158
Feel free to ping [@stackrole](stackrole) for help regarding your JAMstack website, our DM's are open. And do not forget to share you website with me 😊
149159

150160
[![Check out Stackrole.com - A Jamstack marketplace](static/assets/twitter-header.jpg)](https://stackrole.com)
151161

152162
[gatsby]: https://gatsbyjs.org
153-
[netlifyCMS]: https://www.netlifycms.org
163+
[netlifycms]: https://www.netlifycms.org
154164
[stackrole]: https://stackrole.com
155165
[twitter]: https://twitter.com/stackrole
156166
[custom-domain]: https://stackrole.com/adding-custom-domain-netlify

gatsby-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export const onServiceWorkerUpdateReady = () => {
77
if (answer === true) {
88
window.location.reload()
99
}
10-
}
10+
}

gatsby-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = {
8686
},
8787
`gatsby-plugin-sass`,
8888
`gatsby-plugin-react-helmet`,
89-
'gatsby-plugin-theme-ui',
89+
"gatsby-plugin-theme-ui",
9090
`gatsby-plugin-netlify-cms`,
9191
{
9292
resolve: `gatsby-plugin-google-analytics`,
@@ -107,6 +107,6 @@ module.exports = {
107107
icon: "static" + settings.meta.iconimage,
108108
},
109109
},
110-
'gatsby-plugin-offline',
110+
"gatsby-plugin-offline",
111111
],
112112
}

gatsby-node.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
88

99
const result = await graphql(`
1010
{
11-
allMarkdownRemark(
12-
sort: { order: DESC, fields: [frontmatter___date] }
13-
) {
11+
allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }) {
1412
edges {
1513
node {
1614
id
@@ -54,7 +52,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
5452
})
5553

5654
// Count blog posts.
57-
if (post.node.frontmatter.template === 'blog-post') {
55+
if (post.node.frontmatter.template === "blog-post") {
5856
blogPostsCount++
5957
}
6058
})
@@ -75,7 +73,6 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
7573
},
7674
})
7775
})
78-
7976
}
8077

8178
exports.onCreateNode = ({ node, getNode, actions }) => {
@@ -88,4 +85,4 @@ exports.onCreateNode = ({ node, getNode, actions }) => {
8885
value: slug,
8986
})
9087
}
91-
}
88+
}

src/assets/scss/_defaults.scss

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
*,
22
*:after,
33
*:before {
4-
box-sizing: border-box;
4+
box-sizing: border-box;
55
}
66
html,
77
body {
8-
margin: 0;
9-
padding: 0;
8+
margin: 0;
9+
padding: 0;
1010
}
1111
body {
12-
font-family: var(--font-family);
13-
font-size: 18px;
12+
font-family: var(--font-family);
13+
font-size: 18px;
1414
}
1515
code {
16-
font-family: var(--font-family-mono);
17-
}
16+
font-family: var(--font-family-mono);
17+
}
1818
main {
19-
p { line-height: 1.5; }
19+
p {
20+
line-height: 1.5;
21+
}
2022
}
2123
a {
22-
color: var(--home-link-color);
23-
text-decoration: none;
24-
&:hover {
25-
color: var(--home-link-hover-color);
26-
}
27-
}
24+
color: var(--home-link-color);
25+
text-decoration: none;
26+
&:hover {
27+
color: var(--home-link-hover-color);
28+
}
29+
}

src/assets/scss/_theme-variables.scss

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,26 @@ $breakpoint-lg: 1022px;
55
$breakpoint-xl: 1200px;
66

77
:root {
8-
9-
--font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif;
10-
--font-family-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
8+
--font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
9+
helvetica neue, helvetica, Ubuntu, roboto, noto, segoe ui, arial, sans-serif;
10+
--font-family-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,
11+
monospace;
1112
--font-size-small: 12px;
1213

1314
--home-link-color: #d4d4d4;
14-
--home-link-hover-color: var(--primary-color);
15-
16-
--button-color: #E5C3D3;
17-
--button-alternate-color: #5C2941;
15+
--home-link-hover-color: var(--primary-color);
1816

19-
--post-link-color: #0F070B;
17+
--button-color: #e5c3d3;
18+
--button-alternate-color: #5c2941;
2019

20+
--post-link-color: #0f070b;
2121

2222
--nav-link-hover-bg: #111;
23-
--text-color-meta: rgba(0,0,0,0.5);
23+
--text-color-meta: rgba(0, 0, 0, 0.5);
2424

2525
--label-text: #777;
26-
--input-focus-border: #83AAAC;
27-
28-
// CSS Grid Utility
29-
--grid-gap: 30px;
26+
--input-focus-border: #83aaac;
3027

31-
}
28+
// CSS Grid Utility
29+
--grid-gap: 30px;
30+
}

src/assets/scss/_utility.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
&.-love {
1111
color: red;
1212
}
13-
}
13+
}

0 commit comments

Comments
 (0)