Sitdisch

MyThemeWay

Dark-Particle

  Last Edited: February 23, 2023

Preview - Demo

This dark theme website-boilerplate combines Webpack, Jekyll, Bootstrap and much more. Additionally, you can just add other packages from npm and/or gems from RubyGems as you like.

Further, it has an easily exchangeable WebGL canvas header as a 3D animated background. The GLSLX shader files are also watched in the development mode of this boilerplate. That means, if you edit them and save your changes, the shaders will be recompiled and reloaded immediately.

You are welcome to use this boilerplate to edit the existing shaders or to create a completely new WebGL header. I am curious what you will develop. If you need inspiration, check out Shadertoy or GLSL Sandbox for fragment shaders and Vertexshaderart for vertex shaders. There you can see what’s possible.

For a bright version of this boilerplate look here. You can use one of these boilerplates as a starting template to make your web appearance, blogging and portfolio awesome. They base heavily on the magnificent work of Stephen Arsenault, Nathan Randecker, me Sitdisch and many more.

If you don’t need those website-boilerplates with all the bells and whistles, but want a WebGL canvas boilerplate as a quick and easy live editor, or if you just want the pure minimized canvas bundles as 3D animated backgrounds for your website, look here.

Table of Contents

Features

  • Webpack
  • jekyll
  • WebGL Header
  • TWGL
  • GLSLX
  • Squoosh
  • imagemin
  • npm
  • Bootstrap Bootstrap
  • jQuery
  • RubyGems RubyGems
  • Dependabot
  • Babel
  • Sass
  • Devicon Devicon
  • Sweet Scroll Sweet Scroll
  • Font Awesome
  • CodeQL
  • Google Search Console
  • NavBar & Scrollspy
  • Follow Buttons
  • Local hosting & development
  • Screen size adaption
  • Cross browser & device presentation
  • HTMLMinifier
  • mini-css-extract-plugin
  • terser-webpack-plugin
  • css-minimizer-webpack-plugin
  • Local Running

    To enable local operation of this boilerplate on your machine, you have to do the following:

    CONSIDER: If you’ve already installed Ruby, Jekyll, nvm and Node.js you only have to do the last three steps.

    That’s it. Now every time you want to run the website locally in development mode, go to your Dark-Particle directory on your local machine and execute npm start. Your website will then appear at http://localhost:8080.

    If you execute npm run build instead, a one off build of your website in production mode will be put into the ~/Dark-Particle/docs directory.

    The following video shows an outdated example setup of this boilerplate on Ubuntu.

    Embedded YouTube-Video

    The website operator would like to embed videos from the platform of the YouTube LLC., 901 Cherry Ave., 94066 San Bruno, CA, USA.

    If you agree to that, a connection to the YouTube servers will be established and different data processing processes will be triggered. You can find more information about this here.

    Customization

    Customize your site and user settings e. g. while adapting the scss files under ~/Dark-Particle/src/styles/ or the following _config.yml file located at ~/Dark-Particle.

    # Site settings
    title: # insert a page-name
    description: # insert a website description.
    baseurl: /Dark-Particle
    
    # User settings
    username: # insert a username
    user_title: # insert your title
    user_picture: # insert a path to your pic e.g. "/assets/img/User_picture.png" (size e.g. 254x254)
    user_description: # descripe your experiences
    email: # insert your_email_address
    github_username: # insert your Github username
    twitter_username: # insert your Twitter username
    youtube_channel_id: # your Youtube channel id
    linkedin_username: # insert your Linkedin username
    facebook_username: # insert your Facebook username
    instagram_username: # insert your Instagram username
    
    # Google Search Console
    google_site_verification: # your meta tag (no quotation marks)
    

    CONSIDER:

    For an example of how to change the user_picture:, see the video below.

    Embedded YouTube-Video

    The website operator would like to embed videos from the platform of the YouTube LLC., 901 Cherry Ave., 94066 San Bruno, CA, USA.

    If you agree to that, a connection to the YouTube servers will be established and different data processing processes will be triggered. You can find more information about this here.

    Exchangeable WebGL Header

    If you get tired of your current header, you can anytime easily switch to another one.

    Canvas Examples

    The previews below are clickable and linked to their respective GitHub repositories.

    mtw-canvas-disks [included] [default]

    Note: Fragment shader is based on CoordSys - intersection [License: MIT; Copyright: ©️ 2013 Inigo Quilez; Changes: made]

    mtw-canvas-malachite [included]

    Note: Fragment shader is based on Glare of water [License: CC BY 3.0; Copyright: ©️ 2019 Jan Mróz; Changes: made]

    mtw-canvas-spiral

    Note: Fragment shader is based on ARQVOID :: 240 chars [License: CC BY-NC-SA 3.0; Copyright: ©️ 2021 ENDESGA & Xor; Changes: made]

    mtw-canvas-blacksea

    Note: Fragment shader is based on Glare of water [License: CC BY 3.0; Copyright: ©️ 2019 Jan Mróz; Changes: made]

    Exchanging Procedure

    1. open ~/Dark-Particle/canvas.config.js
    2. change the path to canvas (p2c) and save it
    // 
    // SECTION: PATH TO CANVAS (p2c) IN USE
    // 
    
    // const p2c = './src/canvas/mtw-canvas-disks';
    const p2c = './src/canvas/mtw-canvas-malachite';
    

    That’s it.

    Adding Procedure

    1. put mtw-canvas-new into the ~/Dark-Particle/src/canvas directory
    2. follow the Exchanging Procedure
    // 
    // SECTION: PATH TO CANVAS (p2c) IN USE
    // 
    
    // const p2c = './src/canvas/mtw-canvas-disks';
    // const p2c = './src/canvas/mtw-canvas-malachite';
    const p2c = './src/canvas/mtw-canvas-new';
    

    CONSIDER:

    Setup at GitHub Pages

    Here is one procedure of getting your website published at GitHub Pages:

    1. fork the repository to your GitHub account
    2. publicize your repository on GitHub Pages
    3. clone your fork to your local machine git clone https://github.com/<username>/Dark-Particle (replace <username>)
    4. enable local running of your website
    5. customize your website
    6. execute npm run build to put a one off build of your website into the ~/Dark-Particle/docs directory.
    7. add git add ., commit git commit -am "my changes" and push git push your changes to GitHub
    8. access your website at https://<username>.github.io/Dark-Particle/ (replace <username>) and be proud

    Now every time you want to change your published website, go to your Dark-Particle directory on your local machine and repeat steps 58.

    CONSIDER:

    The following video shows an outdated example setup of this boilerplate on Github pages.

    Embedded YouTube-Video

    The website operator would like to embed videos from the platform of the YouTube LLC., 901 Cherry Ave., 94066 San Bruno, CA, USA.

    If you agree to that, a connection to the YouTube servers will be established and different data processing processes will be triggered. You can find more information about this here.

    Credits

    Dark-Particle based on the extraordinary work of:

  • Stephen Arsenault
  • Nathan Randecker
  • Sitdisch
  • and many more...