1
1
Fork 0

Compare commits

...

10 Commits

43
package-lock.json generated

@ -7,6 +7,9 @@
"": {
"name": "alex-website",
"version": "0.0.1",
"dependencies": {
"three": "^0.142.0"
},
"devDependencies": {
"@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "next",
@ -22,6 +25,7 @@
"svelte": "^3.44.0",
"svelte-check": "^2.7.1",
"svelte-preprocess": "^4.10.7",
"svelthree": "^0.119.0-5",
"tailwindcss": "^3.1.4",
"tslib": "^2.3.1",
"typescript": "^4.7.2"
@ -3235,6 +3239,21 @@
"sourcemap-codec": "^1.4.8"
}
},
"node_modules/svelthree": {
"version": "0.119.0-5",
"resolved": "https://registry.npmjs.org/svelthree/-/svelthree-0.119.0-5.tgz",
"integrity": "sha512-5niteQrl5l7evhSSkfcf/I8FSccZD39kLnEZBKmnSJYwUon87fDnO8+maOzxcFBaWEOM1RdRcGy9J0LdXbLfrQ==",
"dev": true,
"dependencies": {
"svelthree-three": "git+https://github.com/vatro/svelthree-three.git#119"
}
},
"node_modules/svelthree-three": {
"version": "0.119.1",
"resolved": "git+ssh://git@github.com/vatro/svelthree-three.git#3a0c78631b9382179828c1ace0edb83df541a6a1",
"dev": true,
"license": "MIT"
},
"node_modules/tailwindcss": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.1.4.tgz",
@ -3322,6 +3341,11 @@
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
"node_modules/three": {
"version": "0.142.0",
"resolved": "https://registry.npmjs.org/three/-/three-0.142.0.tgz",
"integrity": "sha512-ESjPO+3geFr+ZUfVMpMnF/eVU2uJPOh0e2ZpMFqjNca1wApS9lJb7E4MjwGIczgt9iuKd8PEm6Pfgp2bJ92Xtg=="
},
"node_modules/tiny-glob": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
@ -5758,6 +5782,20 @@
}
}
},
"svelthree": {
"version": "0.119.0-5",
"resolved": "https://registry.npmjs.org/svelthree/-/svelthree-0.119.0-5.tgz",
"integrity": "sha512-5niteQrl5l7evhSSkfcf/I8FSccZD39kLnEZBKmnSJYwUon87fDnO8+maOzxcFBaWEOM1RdRcGy9J0LdXbLfrQ==",
"dev": true,
"requires": {
"svelthree-three": "git+https://github.com/vatro/svelthree-three.git#119"
}
},
"svelthree-three": {
"version": "git+ssh://git@github.com/vatro/svelthree-three.git#3a0c78631b9382179828c1ace0edb83df541a6a1",
"dev": true,
"from": "svelthree-three@git+https://github.com/vatro/svelthree-three.git#119"
},
"tailwindcss": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.1.4.tgz",
@ -5827,6 +5865,11 @@
"integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
"dev": true
},
"three": {
"version": "0.142.0",
"resolved": "https://registry.npmjs.org/three/-/three-0.142.0.tgz",
"integrity": "sha512-ESjPO+3geFr+ZUfVMpMnF/eVU2uJPOh0e2ZpMFqjNca1wApS9lJb7E4MjwGIczgt9iuKd8PEm6Pfgp2bJ92Xtg=="
},
"tiny-glob": {
"version": "0.2.9",
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",

@ -27,9 +27,13 @@
"svelte": "^3.44.0",
"svelte-check": "^2.7.1",
"svelte-preprocess": "^4.10.7",
"svelthree": "^0.119.0-5",
"tailwindcss": "^3.1.4",
"tslib": "^2.3.1",
"typescript": "^4.7.2"
},
"type": "module"
"type": "module",
"dependencies": {
"three": "^0.142.0"
}
}

@ -1,4 +1,4 @@
<main class="px-3 lg:px-0 py-10">
<main class="px-3 lg:px-0 py-10 text-center">
<div class="container mx-auto">
Made by <a class="hover:underline" href="https://bartindustries.com/" target="_blank">Midblep</a>.
</div>

@ -6,10 +6,10 @@ import MenuTitle from "./MenuTitle.svelte";
<main class="flex flex-col lg:flex-row gap-3 appear">
<MenuTitle text="AlexArcher" classes="w-full lg:w-fit" />
<section class="flex gap-3 items-end justify-start">
<section class="flex px-2 lg:px-0 gap-3 items-end justify-start">
<MenuItem link="#about" text="About"/>
<MenuItem link="#socials" text="Socials"/>
<MenuItem link="#fursona" text="Fursona"/>
<!-- <MenuItem link="#socials" text="Socials"/>
<MenuItem link="#fursona" text="Fursona"/> -->
</section>
</main>

@ -0,0 +1,80 @@
<script lang="ts">
import { browser } from "$app/env";
import { onMount } from "svelte";
import * as THREE from 'three';
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
let canvas: HTMLElement|null = null;
let scene: THREE.Scene|null = null;
let camera: THREE.PerspectiveCamera|null = null;
let renderer: THREE.WebGLRenderer|null = null;
let kitty: any = null;
let controls: OrbitControls|null = null;
const geometry = new THREE.BoxGeometry( 1, 1, 1 );
const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
const cube = new THREE.Mesh( geometry, material );
const texture = "/models/PotatoCat.dae";
function animate() {
requestAnimationFrame( animate );
// controls.update();
renderer.render( scene, camera );
// kitty.scale.x += 0.01;
// kitty.scale.y += 0.01;
// kitty.scale.z += 0.01;
}
onMount(() => {
if(browser && canvas) {
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
renderer = new THREE.WebGLRenderer();
// controls = new OrbitControls( camera, renderer.domElement );
const loader: FBXLoader = new FBXLoader();
renderer.setSize( window.innerWidth, window.innerHeight );
canvas.appendChild( renderer.domElement );
// const light = new THREE.AmbientLight( 0xff0000 ); // soft white light
// light.position.y = 100;
// light.position.x = 100;
// scene.add( light );
scene.background = new THREE.Color(0x18181b);
const directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
scene.add( directionalLight );
loader.load('/models/potatgato.fbx', function ( object: any ) {
kitty = object;
// object.traverse( function ( child: any ) {
// if ( child.isMesh ) {
// console.log( child.geometry.attributes.uv );
// child.material.map = texture; // assign your diffuse texture here
// }
// } );
scene.add( object );
}, undefined, function ( error: any ) {
console.error( error );
});
camera.position.z = 100;
camera.position.y = 50;
camera.position.x = 0;
// controls.update();
animate();
}
});
</script>
<main bind:this={canvas} class="-mt-40">
</main>

@ -4,7 +4,7 @@
import Footer from "../lib/footer/Footer.svelte";
</script>
<main class="bg-zinc-900 min-h-screen flex flex-col text-white font-roboto">
<main class="bg-zinc-900 min-h-screen flex flex-col text-white font-roboto overflow-x-hidden">
<header class="container mx-auto">
<Menu/>
</header>
@ -13,7 +13,7 @@
<slot />
</div>
<footer>
<!-- <footer>
<Footer/>
</footer>
</footer> -->
</main>

@ -17,7 +17,7 @@
<div class="flex flex-row gap-0 -mb-3 items-end">
<h1 class="text-red-500 flex flex-col gap-5 w-1/2 font-bold text-6xl">Nya!</h1>
<div class="fade w-1/2">
<img src="/images/sticker1.png" alt="Alex Fursona" />
<img src="/images/sticker2.png" alt="Alex Blep" />
</div>
</div>
<h2 class="text-red-500 text-2xl">Welcome to the fire cat place!</h2>
@ -29,9 +29,9 @@
<br/>
<div class="flex flex-col lg:flex-row gap-5">
<Social link="https://www.twitch.tv/alexarcher_" icon="📹" text="Twitch"></Social>
<Social link="https://twitter.com/3D_AlexArcher" icon="🐦" text="Twitter"></Social>
<Social link="https://www.furaffinity.net/user/lazyfairy/" icon="🦊" text="FurAffinity"></Social>
<Social link="https://www.twitch.tv/3d_alexarcher" icon="📹" text="Twitch"></Social>
<Social link="https://discord.gg/YedfABNp7A" icon="💬" text="Discord"></Social>
</div>
</div>
@ -39,27 +39,31 @@
<div class="hidden lg:flex flex-col gap-10 lg:w-2/3 z-10 fade">
<h1 class="text-red-500 flex flex-col lg:flex-row gap-5 lg:items-end"><span class="font-bold text-6xl">Nya!</span> <span class="text-3xl">Welcome to the fire cat place!</span></h1>
<p class="lg:w-3/4 text-xl text-gray-300">
<p class="lg:w-3/4 text-2xl text-gray-300">
It's really warm and cozy in here, wanna stay with me for a moment? I'm going to tell you a story about me... And I have cookies!
</p>
<br/>
<div class="flex flex-col lg:flex-row gap-5">
<Social link="https://www.twitch.tv/alexarcher_" icon="📹" text="Twitch"></Social>
<Social link="https://twitter.com/3D_AlexArcher" icon="🐦" text="Twitter"></Social>
<Social link="https://www.furaffinity.net/user/lazyfairy/" icon="🦊" text="FurAffinity"></Social>
<Social link="https://www.twitch.tv/3d_alexarcher" icon="📹" text="Twitch"></Social>
<Social link="https://discord.gg/YedfABNp7A" icon="💬" text="Discord"></Social>
</div>
</div>
<div class="hidden lg:block lg:w-1/3 fade">
<img src="/images/frontpage.png" alt="Alex Fursona" class="lg:-mt-20 lg:float lg:scale-150" />
<img src="/images/frontpage.png" alt="Alex Fursona" class="-mt-20 float scale-150" />
</div>
</div>
</section>
<!-- <section>
<Model/>
</section> -->
</main>
<style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

File diff suppressed because one or more lines are too long

Binary file not shown.
Loading…
Cancel
Save