My personal portfolio & blog. Built with Gatsby.js.
Playful & colorful blog with Parallax effect
Developed upon Gatsby Starter Portfolio: Cara
Checkout my site at Navin-Navi
Google Lighthouse Audit Result
TailwindCSS & styled-components for styling
tailwind.macro
(Babel macro) to have hot-reloading of Tailwind stylesResponsive images
SEO
π‘ The parallax effect can be quite heavy for some older CPUs and the site uses some newer CSS features which will result in incompatibility with older browsers.
Check your development environment! Youβll need Node.js, the Gatsby CLI and node-gyp installed. The official Gatsby website also lists two articles regarding this topic:
Use the Gatsby CLI to create a new site, specifying the blog starter.
gatsby new <project-name> https://github.com/navin-moorthy/navin-moorthy.github.io
cd <project-name>
npm start
Your site is now running at http://0.0.0.0:8080
!
π‘ Youβll also see a second link:
http://0.0.0.0:8080/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial._
Edit src/pages/index.js
, save your changes and the browser will update in real time!
npm run build
Copy the content of the public
folder to your webhost or use a website like Netlify which automates that for you.
npm install [gh-pages](https://www.npmjs.com/package/gh-pages) --save-dev
.config/deploy-github.js
to configure your public
folder to get deployed in mentioned github repository and branch.npm run deploy:github
.π‘ You will be asked to enter your Github Username and Password.
Alternatively, this flow can be automated using Travis CI - Docs
You can add other features by having a look at the official plugins page.
You have multiple options to configure this project.
config/website.js
to configure data passed to the SEO component and other parts of the Gatsby sitetailwind.js
file to configure TailwindCSS. Their documentation explains it step-by-step.src/styles
directory.src/views
directory. They contain the Dividers & SVG icons.content/blog
and blog templates in src/blog-components/...
<SVG icon="triangle" hideMobile width={48} stroke={colors.orange} left="10%" top="20%" />
<SVG icon="hexa" width={48} stroke={colors.red} left="60%" top="70%" />
<SVG icon="box" width={6} fill={colors['grey-darker']} left="60%" top="15%" />
icon
, you have the options: triangle, circle, arrowUp, upDown, box, hexa, cross
hideMobile
to the SVG componentThe colors get defined via the TailwindCSS color option
stroke
or fill
depending on the icon. For reference, have a look at the currently used SVGsleft
and top
position the icon relatively to its parent container<UpDown />
or <UpDownWide />
to animate themInstead of relying on Googleβs CDN to host its fonts, this site self-hosts the fonts and therefore benefits from increased performance. The installed fonts and global styles import can be found in gatsby-browser.js
:
This starter uses typefaces by Kyle Mathews. Have a look at the repository if you want to install & use other fonts.
Youβll also need to configure fonts
in tailwind.js
or in src/styles/globalStyles.css
to reflect the changes.
/root
βββ gatsby-browser.js // font, polyfill, onClientRender ...
βββ gatsby-config.js // Gatsby config
βββ config/website.js // Template meta SEO config
βββ gatsby-node.js // Gatsby Node config
src
βββ blog-components // Blog templates and associated components
β βββ Blog.jsx // Blog Home
β βββ BlogPostTemplate.jsx // Markdown Pages Template
βββ components // Reusable components
β βββ SEO.jsx // SEO customization with REACT HELMET here
βββ elements // Small elements to be used within components
βββ images // Avatar and SVG's
βββ pages // routing
β βββ 404.jsx
β βββ index.jsx
βββ styles // Styles that are used across the site
You can customize styles in src/styles
directory.
src/styles
βββ animation.jsx // All Animations are exported from here
βββ color.jsx // Tailwind Color Shortcut
βββ globalStyles.css // Global Styles
βββ prism-a11y-dark.css // Prism JS Code Highlighting
βββ utils.jsx // Mobile Display Hide Utils
src/images/avatar.jpg
)static/favicon.ico
)static/logo.png
)static/browserconfig.xml
)static/robots.txt
)static/google051e1d59950b0532.html
)Design based on LekoArts - gatsby-starter-portfolio-cara
If you want to quickly bootstrap a design/photography portfolio or use it as a foundation for your personal site, the starters in gatsby-starter-portfolio are a perfect fit for you! The projectβs goal is to offer minimalistic and fast websites.
I hope thier like my starters and create something awesome! To see some of thier other works, you can visit website or support them on Patreon to get some neat rewards (4K images, project files, tutorial insights). Every pledge on Patreon helps them create more free starters!
Also, check out the other starters for gatsby-starter-portfolio:
Check out the Gatsby Starter Portfolio Overview!
Pagination based on Nicky Starter Blog
Dark/Light Theme and more based on JaeYeopHanβs Starter Blog
Thanks to @bradlcβs work on babel-plugin-tailwind-components, we can easily get the power of Tailwind without the stylesheet bloat by passing Tailwind classes into styled-components with Babel macros π.
If you are currently writing in the Medium, consider migration with medium-to-own-blog!
Project by @Navin Moorthyβ