mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
feat: add global 404 page
This commit is contained in:
@ -41,6 +41,7 @@ const BackToTop = () => {
|
||||
'lg:right-8 lg:bottom-8',
|
||||
'transition-all duration-300',
|
||||
showTop ? 'visible scale-100' : 'invisible scale-0',
|
||||
'cursor-pointer',
|
||||
)}
|
||||
>
|
||||
<FiChevronUp className="w-6 h-6" />
|
||||
|
@ -14,11 +14,11 @@ const CatModel = () => {
|
||||
const camera = useThree((state) => state.camera);
|
||||
const gltf = useLoader(
|
||||
GLTFLoader,
|
||||
'./models/just_a_hungry_cat/modelDraco.gltf',
|
||||
'/models/just_a_hungry_cat/modelDraco.gltf',
|
||||
(loader) => {
|
||||
toggleLoading(true);
|
||||
const dracoLoader = new DRACOLoader();
|
||||
dracoLoader.setDecoderPath('./libs/draco/');
|
||||
dracoLoader.setDecoderPath('/libs/draco/');
|
||||
loader.setDRACOLoader(dracoLoader);
|
||||
},
|
||||
);
|
||||
|
@ -41,11 +41,11 @@ const CloudModel = () => {
|
||||
|
||||
const gltf = useLoader(
|
||||
GLTFLoader,
|
||||
'./models/cloud_station/modelDraco.gltf',
|
||||
'/models/cloud_station/modelDraco.gltf',
|
||||
(loader) => {
|
||||
toggleLoading(true);
|
||||
const dracoLoader = new DRACOLoader();
|
||||
dracoLoader.setDecoderPath('./libs/draco/');
|
||||
dracoLoader.setDecoderPath('/libs/draco/');
|
||||
loader.setDRACOLoader(dracoLoader);
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user