diff --git a/.gitignore b/.gitignore index 6b8710a..2022a6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .git +public diff --git a/index.html b/index.html deleted file mode 100644 index 4265ca4..0000000 --- a/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - The Study - - - -

STILL UNDER CONSTRUCTION!!!

-

please come back at a later time.

- - < - 3Dworldring - > - - - diff --git a/sass/style.scss b/sass/style.scss new file mode 100644 index 0000000..c45254c --- /dev/null +++ b/sass/style.scss @@ -0,0 +1,8 @@ +html, +body { + width: 100%; + height: 100%; + margin: 0; + padding: 0; +} + diff --git a/static/scripts/main.js b/static/scripts/main.js new file mode 100644 index 0000000..4ddd3e0 --- /dev/null +++ b/static/scripts/main.js @@ -0,0 +1,25 @@ +import * as THREE from 'three'; + +const scene = new THREE.Scene(); +const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); + +const renderer = new THREE.WebGLRenderer(); +renderer.setSize( window.innerWidth, window.innerHeight ); +renderer.setAnimationLoop( animate ); +document.body.appendChild( renderer.domElement ); + +const geometry = new THREE.BoxGeometry( 1, 1, 1 ); +const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); +const cube = new THREE.Mesh( geometry, material ); +scene.add( cube ); + +camera.position.z = 5; + +function animate( time ) { + + cube.rotation.x = time / 2000; + cube.rotation.y = time / 1000; + + renderer.render( scene, camera ); + +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6fa8b6f --- /dev/null +++ b/templates/base.html @@ -0,0 +1,28 @@ + + + + + + The Study + + + + + +
+
+ {% block content %} + {% endblock content %} +
+
+ + + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..4330096 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} + +{% endblock content %} + + diff --git a/zola.toml b/zola.toml new file mode 100644 index 0000000..a0ac13c --- /dev/null +++ b/zola.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "https://study.cjsatnarine.space" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +[markdown] + +[markdown.highlighting] +theme = "catppuccin-mocha" + +[extra] +# Put all your custom variables here