generated from lucien/actix-react-template
Compare commits
6 commits
0e31e90af9
...
6405c6db09
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6405c6db09 | ||
![]() |
f8ffe3e16f | ||
![]() |
d685e00bc3 | ||
![]() |
3f9617549d | ||
1ec6b1b0da | |||
b8fa053ca3 |
10 changed files with 19 additions and 18 deletions
|
@ -3,10 +3,22 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: dockerfile
|
||||
container_name: web
|
||||
network: host
|
||||
container_name: nuitdelinfo
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:2486
|
||||
volumes:
|
||||
- ./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 { useFrame } from '@react-three/fiber'
|
||||
import * as THREE from 'three'
|
||||
|
||||
export default function Axes() {
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
import { Group, Mesh, MeshStandardMaterial, BufferGeometry } from 'three'
|
||||
import { useGLTF } from '@react-three/drei'
|
||||
|
||||
export default function Character() {
|
||||
// import glb file
|
||||
|
||||
// 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
|
||||
scene.rotation.x = -Math.PI / 2
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
import React from 'react'
|
||||
import { Group } from 'three'
|
||||
import * as THREE from 'three'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from 'react'
|
||||
import { Group } from 'three'
|
||||
import * as THREE from 'three'
|
||||
|
||||
interface MarkerProps {
|
||||
|
@ -15,7 +14,7 @@ export default function Marker({ position, color, onClick }: MarkerProps) {
|
|||
// Return the marker object
|
||||
// return <primitive object={marker} />
|
||||
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]} />
|
||||
<meshStandardMaterial color={color} side={THREE.DoubleSide} />
|
||||
</mesh>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
import React, { useEffect, useRef } from 'react';
|
||||
import * as THREE from 'three';
|
||||
import { Water, WaterOptions } from 'three/examples/jsm/objects/Water.js';
|
||||
import { WaterMesh, WaterMeshOptions } from 'three/examples/jsm/objects/Water2Mesh.js';
|
||||
|
||||
const Ocean: React.FC = () => {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactNode, MouseEventHandler } from 'react';
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
interface ButtonProps {
|
||||
color: 'primary' | 'secondary';
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import Button from "./Button";
|
||||
import ButtonLink from "./ButtonLink";
|
||||
import NavBar from "./NavBar";
|
||||
|
||||
export default function FstSection () {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import LogoButton from '../components/LogoButton.tsx'
|
||||
import ClickableLink from './ClickableLink.tsx';
|
||||
import RoundButton from './RoundButton.tsx';
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import { Canvas } from "@react-three/fiber";
|
||||
import { OrbitControls, PerspectiveCamera, Sky } from "@react-three/drei";
|
||||
import * as THREE from "three";
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import Ocean from "../components/3d/Ocean";
|
||||
import Axes from "../components/3d/Axes";
|
||||
import Character from "../components/3d/Character";
|
||||
import Floor from "../components/3d/Floor";
|
||||
import Marker from "../components/3d/Marker";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue