switch to zola

This commit is contained in:
CJSatnarine
2025-03-18 21:52:01 -04:00
parent 0b2ac07bbb
commit ce73128084
12 changed files with 3 additions and 10235 deletions

View File

@@ -6,7 +6,7 @@
<title>{{ config.extra.site_name }}</title> <title>{{ config.extra.site_name }}</title>
<link rel="stylesheet" href="/extra.css" /> <link rel="stylesheet" href="/extra.css" />
<link href='https://fonts.googleapis.com/css?family=Roboto Mono' rel='stylesheet'>
<script type="importmap"> <script type="importmap">
{ {
@@ -25,6 +25,8 @@
<section class="section"> <section class="section">
<div class="container"> <div class="container">
{% block content %} {% endblock %} {% block content %} {% endblock %}
<p><a href="{{ get_url(path='@/blog/_index.md') }}">Posts</a>.</p>
</div> </div>
</section> </section>
</body> </body>

View File

@@ -1 +0,0 @@
body{background-color:#000;font-family:Roboto Mono}#construction{position:absolute;color:#f5f5f5;top:10px;width:100%;text-align:center;z-index:100;display:block}a:link,a:visited,a:hover,a:active{color:#962ffe;background-color:transparent;text-decoration:none}h1{color:#962ffe}p{color:#fff}center{color:#962ffe}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

55
dist/index.html vendored
View File

@@ -1,55 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=" utf-8">
<title> CJ Satnarine </title>
<canvas id="canvas"></canvas>
<script type="module" crossorigin src="/assets/index-BoUOTmGk.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BjZe3bm5.css">
</head>
<body>
<link href='https://fonts.googleapis.com/css?family=Roboto Mono' rel='stylesheet'>
<body>
<div id="construction"> Website under Construction! </div>
<h1>
CJ Satnarine
</h1>
<p>
Hey... I'm CJ! But you can call me CJ... As you can tell, this website is currently under construction. I'll
be updating it slowly as I learn more web development. I'm remaking this website with <a
href="https://www.getzola.org/" target="_blank">Zola</a> because I want to write blogs and devlogs in
the future.
</p>
<p>
Any way, I'm an aspriring graphics programmer from Waterloo, Ontario.
I've got a few weird interests in linguistics, history, maths, 3D animation, game development, and
art.
Currently, I'm spending a lot of my time learning a lot of things relating to my interests.
You can check out my <a href="https://github.com/CJSatnarine" target="_blank">Github</a> to see what I'm up
to.
</p>
</body>
<footer>
<center>
<a href="https://evilr.ing/cjsatnarine/previous">&lt;</a>
<a href="https://evilr.ing">EVILRING</a>
<a href="https://evilr.ing/cjsatnarine/next">&gt;</a>
</center>
</footer>
</html>

View File

@@ -1,56 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=" utf-8">
<title> CJ Satnarine </title>
<canvas id="canvas"></canvas>
<link rel="stylesheet" href="style.css">
</head>
<body>
<link href='https://fonts.googleapis.com/css?family=Roboto Mono' rel='stylesheet'>
<body>
<div id="construction"> Website under Construction! </div>
<h1>
CJ Satnarine
</h1>
<p>
Hey... I'm CJ! But you can call me CJ... As you can tell, this website is currently under construction. I'll
be updating it slowly as I learn more web development. I'm remaking this website with <a
href="https://www.getzola.org/" target="_blank">Zola</a> because I want to write blogs and devlogs in
the future.
</p>
<p>
Any way, I'm an aspriring graphics programmer from Waterloo, Ontario.
I've got a few weird interests in linguistics, history, maths, 3D animation, game development, and
art.
Currently, I'm spending a lot of my time learning a lot of things relating to my interests.
You can check out my <a href="https://github.com/CJSatnarine" target="_blank">Github</a> to see what I'm up
to.
</p>
</body>
<footer>
<center>
<a href="https://evilr.ing/cjsatnarine/previous">&lt;</a>
<a href="https://evilr.ing">EVILRING</a>
<a href="https://evilr.ing/cjsatnarine/next">&gt;</a>
</center>
</footer>
<script type="module" src="/main.js"></script>
<script type="module" src="/window.js"></script>
</html>

69
main.js
View File

@@ -1,69 +0,0 @@
import './style.css';
import * as THREE from 'three';
import { OBJLoader } from 'three/addons/loaders/OBJLoader.js';
import headURL from "./models/wolf_head.obj?url";
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
let modelObject = new THREE.Object3D;
// Rendering.
const renderer = new THREE.WebGLRenderer({
canvas: document.querySelector('#canvas'),
});
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setAnimationLoop(animate);
document.body.appendChild(renderer.domElement);
// Resizing the camera position based on window width.
if (window.innerWidth <= 400) {
camera.position.z = 6.5;
}
if (window.innerWidth > 400 && window.innerWidth <= 650) {
camera.position.z = 5.5;
}
else if (window.innerWidth > 650 && window.innerWidth <= 915) {
camera.position.z = 4.5;
} else {
camera.position.z = 3.5;
}
// Lighting.
const light = new THREE.HemisphereLight(0xffffbb, 0x080820, 1);
scene.add(light);
// OBJ loader.
const objectLoader = new OBJLoader();
objectLoader.load(
headURL,
function(object) {
console.log(object);
modelObject = object;
object.traverse((child) => {
// instance of is apparently the reason god made typescript
if (child instanceof THREE.Mesh) {
// Create material for the mesh.
child.material = new THREE.MeshStandardMaterial({ color: 0x962FFE });
child.material.wireframe = true;
child.material.wireframeLinewidth = 1;
child.material.emissive = (new THREE.Color().setHex(0x962FFE));
}
});
scene.add(object);
},
function(xhr) {
console.log((xhr.loaded / xhr.total * 100) + '% loaded');
},
function(error) {
console.log('an error happened', error);
}
);
// Animate function.
function animate() {
modelObject.rotateY(-THREE.MathUtils.degToRad(1));
renderer.render(scene, camera);
}

File diff suppressed because it is too large Load Diff

1583
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,16 +0,0 @@
{
"dependencies": {
"three": "^0.174.0",
"three.js": "^0.77.1"
},
"devDependencies": {
"gh-pages": "^6.3.0",
"vite": "^6.2.2"
},
"scripts": {
"build": "vite build",
"preview": "vite preview",
"deploy": "gh-pages -d dist",
"dev": "vite"
}
}

View File

@@ -1,35 +0,0 @@
body {
background-color: black;
font-family: 'Roboto Mono';
}
#construction {
position: absolute;
color: whitesmoke;
top: 10px;
width: 100%;
text-align: center;
z-index: 100;
display: block;
}
a:link,
a:visited,
a:hover,
a:active {
color: rgb(150, 47, 254);
background-color: transparent;
text-decoration: none;
}
h1 {
color: rgb(150, 47, 254);
}
p {
color: white;
}
center {
color: rgb(150, 47, 254);
}

View File

@@ -1,10 +0,0 @@
// Refreshes the page when the browser is resized.
window.addEventListener('resize', function(event) {
if (window.RT) {
clearTimeout(window.RT);
}
window.RT = setTimeout(function() {
window.location.reload(false); /* false to get page from cache */
}, 200);
});