diff --git a/blenderTextureGen/CubeTexture/CubeTexture.blend b/blenderTextureGen/CubeTexture/CubeTexture.blend new file mode 100644 index 0000000..95222d6 Binary files /dev/null and b/blenderTextureGen/CubeTexture/CubeTexture.blend differ diff --git a/blenderTextureGen/CubeTexture/CubeTexture.blend1 b/blenderTextureGen/CubeTexture/CubeTexture.blend1 new file mode 100644 index 0000000..3eb8947 Binary files /dev/null and b/blenderTextureGen/CubeTexture/CubeTexture.blend1 differ diff --git a/blenderTextureGen/CubeTexture/textures/CubeTexture.png b/blenderTextureGen/CubeTexture/textures/CubeTexture.png new file mode 100644 index 0000000..c8f2985 Binary files /dev/null and b/blenderTextureGen/CubeTexture/textures/CubeTexture.png differ diff --git a/blenderTextureGen/CubeTexture/textures/Plane_d.003.png b/blenderTextureGen/CubeTexture/textures/Plane_d.003.png new file mode 100644 index 0000000..de8878d Binary files /dev/null and b/blenderTextureGen/CubeTexture/textures/Plane_d.003.png differ diff --git a/blenderTextureGen/CubeTexture/textures/Plane_d.png b/blenderTextureGen/CubeTexture/textures/Plane_d.png new file mode 100644 index 0000000..8d35f17 Binary files /dev/null and b/blenderTextureGen/CubeTexture/textures/Plane_d.png differ diff --git a/blenderTextureGen/GridTexture/GridTexture.blend b/blenderTextureGen/GridTexture/GridTexture.blend new file mode 100644 index 0000000..93a1e80 Binary files /dev/null and b/blenderTextureGen/GridTexture/GridTexture.blend differ diff --git a/blenderTextureGen/GridTexture/GridTexture.blend1 b/blenderTextureGen/GridTexture/GridTexture.blend1 new file mode 100644 index 0000000..4e3b599 Binary files /dev/null and b/blenderTextureGen/GridTexture/GridTexture.blend1 differ diff --git a/blenderTextureGen/GridTexture/textures/Plane_d.001.png b/blenderTextureGen/GridTexture/textures/Plane_d.001.png new file mode 100644 index 0000000..4783ff8 Binary files /dev/null and b/blenderTextureGen/GridTexture/textures/Plane_d.001.png differ diff --git a/blenderTextureGen/GridTexture/textures/Plane_d.png b/blenderTextureGen/GridTexture/textures/Plane_d.png new file mode 100644 index 0000000..8e8130c Binary files /dev/null and b/blenderTextureGen/GridTexture/textures/Plane_d.png differ diff --git a/src/App.svelte b/src/App.svelte index 73da83f..8b85c6e 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -3,44 +3,16 @@ import StartVideo from './assets/StartVideo.gif' import ScrollTextComponent from './lib/ScrollTextComponent.svelte' import { Parallax, ParallaxLayer, StickyLayer } from 'svelte-parallax'; - import ZSpacer from './lib/ZSpacer.svelte'; + import ZSpacer from './lib/Universal/ZSpacer.svelte'; + import Cube3D from './lib/Cube3D.svelte'; + import WeAreText from './lib/WeAreText.svelte'; window.onload = function() { - window.scrollTo(0, 100); + window.scrollTo(0, 100); // Real + //window.scrollTo(0, 3000); // debug }; let scrollPos: number = 0; - let rotation: number = 0; - - let startPosAnim: number = 150; - let endPosAnim: number = 1600; - - function rotateCube() { - //incremtent - rotation += 90; - } - - - $: { - let time = (scrollPos - startPosAnim)/endPosAnim; - rotation = lerp(0, 360, clamp(time, 0, 1), true); - console.log(time + " -> " + rotation); - } - - - function lerp(from: number, to: number, time: number, clamped: boolean = false) : number { - const lerped: number = from + (to - from) * time; - - if (clamped) { - return from < to ? clamp(lerped, from, to) : clamp(lerped, to, from); - } - - return lerped; - } - - function clamp(value: number, min: number, max: number): number { - return Math.min(Math.max(value, min), max); - } @@ -53,31 +25,29 @@ About - + - - - -
-
- test {scrollPos} -
- + +
- -
-
-
1
-
2
-
3
-
4
-
5
-
6
-
-
+ +
+
+ + + + + + +
+ {scrollPos} +
+
+ + +
+ The deprived devs
@@ -106,6 +76,6 @@ diff --git a/src/app.css b/src/app.css index 3500441..e09e940 100644 --- a/src/app.css +++ b/src/app.css @@ -66,4 +66,33 @@ body { .horizontal{ display: flex; justify-content: flex-start; +} + +.big-text { + font-size: 125px; +} + +.no-wrap { + text-wrap: nowrap; + white-space: nowrap; +} + +.no-interact { + pointer-events: none; +} + +.hide{ + visibility: hidden; +} + +/* ================================================ */ +/* Aligning */ +/* ================================================ */ +.align-center { + align-content: center; + align-items: center; + justify-content: center; + display: flex; + text-align: center; + vertical-align: middle; } \ No newline at end of file diff --git a/src/cube3d.css b/src/cube3d.css deleted file mode 100644 index 9fee84c..0000000 --- a/src/cube3d.css +++ /dev/null @@ -1,110 +0,0 @@ -/* .rotate1{ - transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg); -} */ -/* demo: https://codepen.io/mrosati84/pen/kWwXLg */ - -:root { - --cube-size: 400px; -} - -#cube-3d-container { - width: var(--cube-size); - height: var(--cube-size); - position: relative; - perspective: 1000px; - -moz-perspective: 1000px; - padding: 25px; - } - - #cube3d { - width: 100%; - height: 100%; - position: absolute; - transform-style: preserve-3d; - transition: transform 1s ease-out; - } - - #cube3d div { - width: var(--cube-size); - height: var(--cube-size); - display: block; - position: absolute; - border: none; - line-height: var(--cube-size); - text-align: center; - font-size: 50px; - font-weight: bold; - } - - .front { - background: rgba(255,0,0,.5); - } - - .back { - background: rgba(0,255,0,.5); - } - - .right { - background: rgba(0,0,255,.5); - } - - .left { - background: rgba(0,255,255,.5); - } - - .top { - background: rgba(255,0,255,.5); - } - - .bottom { - background: rgba(255,255,0,.5); - } - - /* .front { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } - - .back { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } - - .right { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } - - .left { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } - - .top { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } - - .bottom { - background: url('https://i1.sndcdn.com/avatars-IesRuX9vhlBZzVuz-1H6bOA-t500x500.jpg'); - } */ - - #cube3d .front { - transform: rotateY(0deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateY( 0deg ) translateZ( calc(var(--cube-size) / 2) ); - } - #cube3d .back { - transform: rotateX( 180deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateX( 180deg ) translateZ( calc(var(--cube-size) / 2) ); - } - #cube3d .right { - transform: rotateY( 90deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateY( 90deg ) translateZ( calc(var(--cube-size) / 2) ); - } - #cube3d .left { - transform: rotateY( -90deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateY( -90deg ) translateZ( calc(var(--cube-size) / 2) ); - } - #cube3d .top { - transform: rotateX( 90deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateX( 90deg ) translateZ( calc(var(--cube-size) / 2) ); - } - #cube3d .bottom { - transform: rotateX( -90deg ) translateZ( calc(var(--cube-size) / 2) ); - -moz-transform: rotateX( -90deg ) translateZ( calc(var(--cube-size) / 2) ); - } \ No newline at end of file diff --git a/src/lib/Cube3D.css b/src/lib/Cube3D.css new file mode 100644 index 0000000..287ba6b --- /dev/null +++ b/src/lib/Cube3D.css @@ -0,0 +1,86 @@ +/* .rotate1{ + transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg); +} */ +/* demo: https://codepen.io/mrosati84/pen/kWwXLg */ + +#cube-3d-container { + width: var(--cube-size); + height: var(--cube-size); + position: relative; + perspective: 500px; + -moz-perspective: 1000px; + padding: 25px; +} + +#cube3d { + width: 100%; + height: 100%; + position: absolute; + transform-style: preserve-3d; + transition: transform 1s cubic-bezier(0,1.32,0,.92); +} + +#cube3d div { + display: block; + border: none; + line-height: var(--cube-size); + text-align: center; + font-size: 65px; +} + +.cube-sides { + position: absolute; + width: var(--cube-size); + height: var(--cube-size); + + text-decoration: underline; + text-underline-offset: 24px; +} + +/* #front { +} */ +/* +#back { + background: var(--cube-color); +} + +#right { + background: var(--cube-color); +} + +#left { + background: var(--cube-color); +} + +#top { + background: var(--cube-color); +} + +#bottom { + background: var(--cube-color); +} */ + +#cube3d #front { + transform: rotateY(0deg ) translateZ( calc(var(--cube-size) / 2) ); + -moz-transform: rotateY( 0deg ) translateZ( calc(var(--cube-size) / 2) ); +} +#cube3d #back { + transform: rotateX( 180deg ) translateZ( calc(var(--cube-size) / 2) ) rotateZ(180deg); + -moz-transform: rotateX( 180deg ) translateZ( calc(var(--cube-size) / 2) ) rotateZ(180deg); +} +#cube3d #right { + transform: rotateY( 90deg ) translateZ( calc(var(--cube-size) / 2) ); + -moz-transform: rotateY( 90deg ) translateZ( calc(var(--cube-size) / 2) ); +} +#cube3d #left { + transform: rotateY( -90deg ) translateZ( calc(var(--cube-size) / 2) ); + -moz-transform: rotateY( -90deg ) translateZ( calc(var(--cube-size) / 2) ); +} +/* #cube3d #top { + transform: rotateX( 90deg ) translateZ( calc(var(--cube-size) / 2) ); + -moz-transform: rotateX( 90deg ) translateZ( calc(var(--cube-size) / 2) ); +} +#cube3d #bottom { + transform: rotateX( -90deg ) translateZ( calc(var(--cube-size) / 2) ); + -moz-transform: rotateX( -90deg ) translateZ( calc(var(--cube-size) / 2) ); +} */ \ No newline at end of file diff --git a/src/lib/Cube3D.svelte b/src/lib/Cube3D.svelte new file mode 100644 index 0000000..0ac03a8 --- /dev/null +++ b/src/lib/Cube3D.svelte @@ -0,0 +1,155 @@ + + + + + + +
+
+
+ cube side texture +

+ overlooked +

+
+ +
+ cube side texture +

+ constrained +

+
+ + + +
+ cube side texture +

+ underfunded +

+
+ + + + + + 3D ground plane +
+ +
\ No newline at end of file diff --git a/src/lib/ScrollTextComponent.svelte b/src/lib/ScrollTextComponent.svelte index 75a7e2b..6c9994d 100644 --- a/src/lib/ScrollTextComponent.svelte +++ b/src/lib/ScrollTextComponent.svelte @@ -66,20 +66,6 @@ margin:auto; z-index: 0; } - - .big-text { - font-size: 100px; - pointer-events: none; - } - - .no-wrap { - text-wrap: nowrap; - white-space: nowrap; - } - - .no-interact { - pointer-events: none; - }
diff --git a/src/lib/ZSpacer.svelte b/src/lib/Universal/ZSpacer.svelte similarity index 100% rename from src/lib/ZSpacer.svelte rename to src/lib/Universal/ZSpacer.svelte diff --git a/src/lib/WeAreText.svelte b/src/lib/WeAreText.svelte new file mode 100644 index 0000000..47e3bdc --- /dev/null +++ b/src/lib/WeAreText.svelte @@ -0,0 +1,65 @@ + + + + +
+
+
+
+ We are +
+
+
+ +
+ + \ No newline at end of file diff --git a/src/lib/images/CubeTexture.png b/src/lib/images/CubeTexture.png new file mode 100644 index 0000000..c8f2985 Binary files /dev/null and b/src/lib/images/CubeTexture.png differ diff --git a/src/lib/images/CubeTexture2.png b/src/lib/images/CubeTexture2.png new file mode 100644 index 0000000..de8878d Binary files /dev/null and b/src/lib/images/CubeTexture2.png differ diff --git a/src/lib/images/PlaneGrid.png b/src/lib/images/PlaneGrid.png new file mode 100644 index 0000000..4783ff8 Binary files /dev/null and b/src/lib/images/PlaneGrid.png differ