generated from lucien/actix-react-template
chaos_page #14
10 changed files with 19 additions and 18 deletions
|
@ -3,10 +3,22 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
container_name: web
|
network: host
|
||||||
|
container_name: nuitdelinfo
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
|
||||||
- 8080:2486
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./back/data:/app/data
|
- ./back/data:/app/data
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.nuitdelinfo.rule=Host(`nuitdelinfo.leizour.fr`)"
|
||||||
|
- "traefik.http.routers.nuitdelinfo.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.nuitdelinfo.tls=true"
|
||||||
|
- "traefik.http.routers.nuitdelinfo.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.services.nuitdelinfo.loadbalancer.server.port=2486"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import React from 'react'
|
|
||||||
import { LineBasicMaterial, Line, Group } from 'three'
|
import { LineBasicMaterial, Line, Group } from 'three'
|
||||||
import { useFrame } from '@react-three/fiber'
|
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
|
|
||||||
export default function Axes() {
|
export default function Axes() {
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
import { Group, Mesh, MeshStandardMaterial, BufferGeometry } from 'three'
|
|
||||||
import { useGLTF } from '@react-three/drei'
|
import { useGLTF } from '@react-three/drei'
|
||||||
|
|
||||||
export default function Character() {
|
export default function Character() {
|
||||||
// import glb file
|
// import glb file
|
||||||
|
|
||||||
// load the glb file in "/models/BASEmodel.glb"
|
// load the glb file in "/models/BASEmodel.glb"
|
||||||
const { nodes, materials, scene } = useGLTF('/models/man.glb')
|
const { scene } = useGLTF('/models/man.glb')
|
||||||
|
|
||||||
// rotate the character
|
// rotate the character
|
||||||
scene.rotation.x = -Math.PI / 2
|
scene.rotation.x = -Math.PI / 2
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
import React from 'react'
|
|
||||||
import { Group } from 'three'
|
import { Group } from 'three'
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Group } from 'three'
|
|
||||||
import * as THREE from 'three'
|
import * as THREE from 'three'
|
||||||
|
|
||||||
interface MarkerProps {
|
interface MarkerProps {
|
||||||
|
@ -15,7 +14,7 @@ export default function Marker({ position, color, onClick }: MarkerProps) {
|
||||||
// Return the marker object
|
// Return the marker object
|
||||||
// return <primitive object={marker} />
|
// return <primitive object={marker} />
|
||||||
return (
|
return (
|
||||||
<mesh position={positionState} rotation={[Math.PI,0,0]} onClick={onClick} onPointerOver={(e) => setPositionState(positionState.clone().setZ(positionState.z + 0.1))} onPointerOut={(e) => setPositionState(new THREE.Vector3(...position))}>
|
<mesh position={positionState} rotation={[Math.PI,0,0]} onClick={onClick} onPointerOver={() => setPositionState(positionState.clone().setZ(positionState.z + 0.1))} onPointerOut={() => setPositionState(new THREE.Vector3(...position))}>
|
||||||
<coneGeometry args={[0.15, 0.6, 6]} />
|
<coneGeometry args={[0.15, 0.6, 6]} />
|
||||||
<meshStandardMaterial color={color} side={THREE.DoubleSide} />
|
<meshStandardMaterial color={color} side={THREE.DoubleSide} />
|
||||||
</mesh>
|
</mesh>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
import React, { useEffect, useRef } from 'react';
|
import React, { useEffect, useRef } from 'react';
|
||||||
import * as THREE from 'three';
|
import * as THREE from 'three';
|
||||||
import { Water, WaterOptions } from 'three/examples/jsm/objects/Water.js';
|
import { Water, WaterOptions } from 'three/examples/jsm/objects/Water.js';
|
||||||
import { WaterMesh, WaterMeshOptions } from 'three/examples/jsm/objects/Water2Mesh.js';
|
|
||||||
|
|
||||||
const Ocean: React.FC = () => {
|
const Ocean: React.FC = () => {
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ReactNode, MouseEventHandler } from 'react';
|
import { ReactNode } from 'react';
|
||||||
|
|
||||||
interface ButtonProps {
|
interface ButtonProps {
|
||||||
color: 'primary' | 'secondary';
|
color: 'primary' | 'secondary';
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import Button from "./Button";
|
import Button from "./Button";
|
||||||
import ButtonLink from "./ButtonLink";
|
|
||||||
import NavBar from "./NavBar";
|
import NavBar from "./NavBar";
|
||||||
|
|
||||||
export default function FstSection () {
|
export default function FstSection () {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import LogoButton from '../components/LogoButton.tsx'
|
|
||||||
import ClickableLink from './ClickableLink.tsx';
|
import ClickableLink from './ClickableLink.tsx';
|
||||||
import RoundButton from './RoundButton.tsx';
|
import RoundButton from './RoundButton.tsx';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
import { Canvas } from "@react-three/fiber";
|
import { Canvas } from "@react-three/fiber";
|
||||||
import { OrbitControls, PerspectiveCamera, Sky } from "@react-three/drei";
|
import { OrbitControls, PerspectiveCamera, Sky } from "@react-three/drei";
|
||||||
import * as THREE from "three";
|
import { useEffect, useState } from "react";
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
|
||||||
import Ocean from "../components/3d/Ocean";
|
import Ocean from "../components/3d/Ocean";
|
||||||
import Axes from "../components/3d/Axes";
|
|
||||||
import Character from "../components/3d/Character";
|
import Character from "../components/3d/Character";
|
||||||
import Floor from "../components/3d/Floor";
|
import Floor from "../components/3d/Floor";
|
||||||
import Marker from "../components/3d/Marker";
|
import Marker from "../components/3d/Marker";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue