-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: v4.0 with easily exchangeable WebGl canvas header and severa…
…l other changes prepared
- Loading branch information
Showing
81 changed files
with
3,204 additions
and
4,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
shaders.glslx.min.js | ||
.jekyll-cache | ||
.ncurc.json | ||
.sass-cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<li><a class="nav-link link navbar-link-home navbar-click-stay" data-press-delay title="Go there" href="{{ '/' | prepend: site.baseurl }}" >Home</a></li> | ||
<li><span class="bar navbar-link-home">|</span></li> | ||
<li><div class="dropdown-divider navbar-link-home"></div></li> | ||
<li><a class="nav-link link navbar-link-about{{ header }}" title="Go there" href='#about' data-hash-prefix="{{ '/' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -15}'>Expertise</a></li> | ||
<li><a class="nav-link link navbar-link-about" title="Go there" href='#about' data-hash-prefix="{{ '/' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -15}'>Expertise</a></li> | ||
<li><div class="dropdown-divider"></div></li> | ||
<li><span class="bar">|</span></li> | ||
<li class="nav-item dropdown"> | ||
<a class="btn btn-drop navbar-link-projects{{ header }}" role="button" title="Go to this overview" href="#projects" data-hash-prefix="{{ '/' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -15}'>Projects</a> | ||
<a class="btn btn-drop navbar-link-projects" role="button" title="Go to this overview" href="#projects" data-hash-prefix="{{ '/' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -15}'>Projects</a> | ||
<div class="btn btn-arrow dropdown-toggle dropdown-toggle-split navbar-arrow-projects navbar-click-stay" role="button" title="Toggle Dropdown" data-bs-display='static' data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></div> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item navbar-link-project-1{{ header }}" title="Go there" href="#project-1" data-hash-prefix="{{ '/projects/2020/10/31/project-1.html' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -45}'>- Project 1</a> | ||
<a class="dropdown-item navbar-link-project-2{{ header }}" title="Go there" href="#project-2" data-hash-prefix="{{ '/projects/2020/10/31/project-2.html' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -45}'>- Project 2</a> | ||
<a class="dropdown-item navbar-link-project-1" title="Go there" href="#project-1" data-hash-prefix="{{ '/projects/2020/10/31/project-1.html' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -45}'>- Project 1</a> | ||
<a class="dropdown-item navbar-link-project-2" title="Go there" href="#project-2" data-hash-prefix="{{ '/projects/2020/10/31/project-2.html' | prepend: site.baseurl }}" data-scroll data-scroll-options='{"offset": -45}'>- Project 2</a> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
<div id="particles-js" class="short-particles"> | ||
<ul id="short-hex-header" class="clear">{% for i in (1..18) %} | ||
<li class="hex-header-li" id="#hex{{ forloop.index }}"> | ||
<div class="hex-header-div"> | ||
<span class="hex-header-link" href="#hex{{ forloop.index }}"></span> | ||
</div> | ||
</li>{% endfor %} | ||
</ul> | ||
<div class="short-header"> | ||
<div id="header" class="short"> | ||
<span id="header-canvas-overshadow"></span> | ||
<canvas id="header-canvas"></canvas> | ||
<div class="header-items"> | ||
<a title="Go Home" href="{{ '/' | prepend: site.baseurl }}"> | ||
<img data-press-delay src="{{ site.user_picture | prepend: site.baseurl }}" alt="{{ site.user_name | prepend: site.baseurl }}" ></img> | ||
</a> | ||
<h1 class="site-title">{{site.user_name}}</h1> | ||
<div class="short-header-icons"> | ||
<div class="header-icons"> | ||
{% include follow-banner.html %} | ||
</div> | ||
<ul class="short-header-links"> | ||
{% assign header = " header-link" %} | ||
<ul class="header-links"> | ||
{% include navbar-link-banner.html %} | ||
</ul> | ||
</div> | ||
</div> | ||
<span id="header-end"></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/*! LIGHT-PARTICLE: CANVAS.CONFIG.JS | ||
* | ||
* Author: sitdisch | ||
* Source: https://sitdisch.github.io/#mythemeway | ||
* License: MIT | ||
* Copyright © 2021 sitdisch | ||
*/ | ||
|
||
// | ||
// SECTION: PATH TO CANVAS (p2c) IN USE | ||
// | ||
|
||
// const p2c = './src/canvas/mtw-canvas-disks'; | ||
const p2c = './src/canvas/mtw-canvas-malachite'; | ||
|
||
// | ||
// SECTION: OTHER CONST, VARS & FUNCTIONS | ||
// | ||
|
||
const webpack = require('webpack'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
const prepr = require('prepr'); | ||
const { emptyDirSync, remove, readFileSync, writeFileSync } = require('fs-extra'); | ||
const { spawn, spawnSync } = require('child_process'); | ||
const { resolve } = require('path'); | ||
const { watch } = require('chokidar'); | ||
|
||
function glsl(devMode) { | ||
writeFileSync(`${p2c}/shader.prepr.glslx`, prepr(readFileSync(`${p2c}/shaders.glslx`, "utf8"))); | ||
var glslxCmd = ['glslx', `${p2c}/shader.prepr.glslx`, `--output=${p2c}/shaders.glslx.min.js`, '--format=js' ]; | ||
if (devMode) { | ||
glslxCmd.push('--pretty-print', '--disable-rewriting', '--renaming=none'); | ||
} | ||
const cp = spawnSync('npx', glslxCmd, {stdio: 'inherit'}); | ||
if (cp.status != 0) { | ||
console.log("\x1b[1;31m[ERROR]\x1b[0m => \x1b[0m[\x1b[90mwebpack\x1b[0m]: `\x1b[36mcanvas-glsl-preprocess\x1b[0m` \x1b[1;31m[failed]\x1b[0m"); | ||
remove(`${p2c}/shaders.glslx.min.js`); | ||
}; | ||
remove(`${p2c}/shader.prepr.glslx`); | ||
} | ||
|
||
// | ||
// SECTION: WEBPACK | ||
// | ||
|
||
var config = { | ||
entry: { canvas: `${p2c}/main.js` }, | ||
output: { | ||
path: resolve(__dirname, './docs/assets'), | ||
filename: 'js/[name].bundle.min.js', | ||
}, | ||
stats: { modules: false }, | ||
devServer: { | ||
host: 'local-ip', | ||
hot: 'only', | ||
liveReload: false, | ||
magicHtml: false, | ||
client: { | ||
logging: 'none', | ||
overlay: true | ||
}, | ||
static: false, | ||
devMiddleware: { writeToDisk: true }, | ||
onListening: () => { | ||
watch(`${p2c}/shaders.glslx`, {ignoreInitial: true}) | ||
.on('change', () => { glsl(true); }) | ||
; | ||
}, | ||
}, | ||
} | ||
|
||
module.exports = (env, argv) => { | ||
if (argv.mode === 'production') { | ||
config.optimization = { | ||
minimize: true, | ||
minimizer: [new TerserPlugin()], | ||
}; | ||
glsl(); | ||
} else { | ||
config.infrastructureLogging = { level: 'warn' }; | ||
glsl(true); | ||
}; | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"restartable": false, | ||
"quiet": true, | ||
"legacyWatch": true, | ||
"exec": "webpack serve --mode=development --config=canvas.config.js", | ||
"watch": [ | ||
"canvas.config.js" | ||
], | ||
"events": { | ||
"restart": "node -e 'console.log(\"[\\x1b[90mwebpack\\x1b[0m]: Starting async `\\x1b[36mcanvas-build-process\\x1b[0m`...\")'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* @license twgl.js 4.21.2 Copyright (c) 2015, Gregg Tavares All Rights Reserved. | ||
Available via the MIT license. | ||
see: http://github.com/greggman/twgl.js for details */ | ||
|
||
/*! MTW-CANVAS-MALACHITE: MAIN.JS | ||
* | ||
* Author: sitdisch | ||
* Source: https://sitdisch.github.io/#mythemeway | ||
* Copyright © 2021 sitdisch | ||
* | ||
* FRAGMENT SHADER IS BASED ON: | ||
* | ||
* Shadertoy: Glare of water | ||
* | ||
* Original Author: Jan Mróz (jaszunio15) | ||
* Source: https://www.shadertoy.com/view/ttSGz3 | ||
* License: CC BY 3.0 | ||
* Copyright © 2019 Jan Mróz | ||
*/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-26.5 KB
docs/assets/lib/google-webfonts/font-files/rubik-v9-latin-italic.eot
Binary file not shown.
Oops, something went wrong.