GithubHelp home page GithubHelp logo

drehimself / gridsome-portfolio-starter Goto Github PK

View Code? Open in Web Editor NEW
376.0 11.0 139.0 5.4 MB

A simple portfolio theme for Gridsome powered by Tailwind CSS v1

Home Page: https://gridsome-portfolio-starter.netlify.com

License: MIT License

JavaScript 13.44% Vue 66.42% CSS 20.14%
gridsome tailwindcss tailwind-css gridsome-starter vuejs static-site static-site-generator gridsome-theme jamstack vue-fuse

gridsome-portfolio-starter's Introduction

Gridsome Portfolio Starter

Check out the Astro version here: https://github.com/drehimself/astro-portfolio-starter

A simple portfolio starter theme for Gridsome

screenshot

Demo URL

https://gridsome-portfolio-starter.netlify.com

Features

  • Clean and minimal design
  • Tailwind CSS v1 (with PurgeCSS). Using this gridsome plugin.
  • Scroll to sections using vue-scrollto
  • Blog with markdown content for posts
  • Documentation type that shows how to use Vue components in Markdown (click Docs)
  • Theme Switcher with Dark Mode
  • Search posts with Fuse.js and vue-fuse
  • Tags for posts
  • Basic pagination
  • Syntax highlighting with Shiki (using this gridsome plugin)
  • 404 Page
  • RSS Feed
  • Sitemap in XML

Installation

  1. Install Gridsome CLI tool if you don't have it: npm install --global @gridsome/cli
  2. Clone the repo: git clone https://github.com/drehimself/gridsome-portfolio-starter.git
  3. cd gridsome-portfolio-starter
  4. npm install (This can be a long download because of Cypress. If you don't care about testing with Cypress, remove it from package.json)
  5. gridsome develop to start a local dev server at http://localhost:8080

Testing

I have some basic end-to-end tests using Cypress. You can find them in /cypress/integration/tests.js.

To run tests, first make sure your dev server is running with gridsome develop. I'm assuming you're using the default port of 8080. If not, change the baseUrl key in the cypress.json file.

After your dev server is running, you can run npm run test or ./node_modules/.bin/cypress open to start Cypress. The Cypress electron app will run. Click the tests.js file and the tests will run in an automated browser.

Notes

  • When Gridsome moves to Vue 3, I'll update this repo as well. I'll also update to Tailwind v2, along with other Tailwind v2 goodies like dark mode and the JIT.
  • Based on my personal portfolio website. I wanted to create an open source version with more features.
  • Check out a screencast I did where I go through the process of building my website.
  • Illustrations from unDraw
  • Search is based on Fuse.js and vue-fuse. It only searches the title and summary of posts for now. Some tweaking may be necessary to get it to search to your liking. Check out the fuse documentation for search settings. This PR added the ability to search both "Post" and "Documentation" types.
  • Check out these other Gridsome Starters where I got some ideas from:

Other versions

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.