Skip to content

Commit cb77325

Browse files
committed
refactor: MonitorBG 컴포넌트를 IndexCanvas로 이름 변경 및 사용처 수정
1 parent 316fa2e commit cb77325

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {Suspense, useState} from "react";
77

88
const CAM_DISTANCE = 5;
99

10-
export default function MonitorBG() {
10+
export default function IndexCanvas() {
1111

12-
return <div className={"absolute inset-0"}>
12+
return <div className={"absolute inset-0 z-50"}>
1313
<Canvas className={"animate-fadeIn"} resize={{debounce: 0}} eventPrefix={"client"} shadows dpr={[1, 2]} style={{width: '100%', height: '100%'}} camera={[0, 0, CAM_DISTANCE, {fov: 50}] as any}>
1414
<Suspense fallback={<Loader/>}>
1515
<ambientLight color={"#dadacf"} intensity={1.2}/>

src/components/SideNav.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const menuItems: MenuItem[] = [
2222
];
2323
---
2424

25-
<div transition:name="header" class="w-70 h-full flex flex-col bg-[#1e1e1e] border-r border-gray-800 p-8 gap-9 z-50">
25+
<div transition:name="header" class="w-70 h-full flex flex-col bg-[#1e1e1e] border-r border-bright/50 p-8 gap-9 z-40">
2626
<div class="w-full flex flex-row items-center">
2727
<div class="rounded-full w-12 h-12 bg-[url(/images/anvy_profile.png)] bg-center bg-cover"/>
2828
<div class="ml-4">

src/pages/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import MonitorBG from '../components/MonitorBG';
2+
import IndexCanvas from '../components/IndexCanvas';
33
import Layout from '../layouts/Layout.astro';
44
55
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
@@ -8,7 +8,7 @@ import Layout from '../layouts/Layout.astro';
88

99
<Layout>
1010
<div class="w-full h-full">
11-
<MonitorBG client:load>
11+
<IndexCanvas client:load>
1212
<Fragment slot="fallback">
1313
<div class="w-full h-full text-bright text-3xl flex flex-col gap-2 justify-center items-center">
1414
<div class="loader">
@@ -19,7 +19,7 @@ import Layout from '../layouts/Layout.astro';
1919
Loading 3D...
2020
</div>
2121
</Fragment>
22-
</MonitorBG>
22+
</IndexCanvas>
2323
</div>
2424
</Layout>
2525

0 commit comments

Comments
 (0)