-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from yeonjulee1005/stage
🚗 [version: 1.24.0] push to master
- Loading branch information
Showing
8 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ | |
"slider", | ||
"slides", | ||
"social", | ||
"splinetool", | ||
"stylelint", | ||
"subtitle", | ||
"successfully", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@use '../../variables' as *; | ||
|
||
/** | ||
* ! HHKB Page Style ! | ||
*a | ||
* ? Shared ? | ||
*/ | ||
.hhkb { | ||
position: relative; | ||
max-width: $space-1000; | ||
width: $space-80vw; | ||
margin: 0 auto; | ||
overflow: clip; | ||
.hhkb-title { | ||
padding: $space-160 $space-20 $space-20; | ||
@include headline2; | ||
} | ||
.hhkb-input { | ||
padding: 0 $space-20; | ||
} | ||
.hhkb-canvas { | ||
width: calc($space-percent-100 - 40px) !important; | ||
height: $space-50vh !important; | ||
margin: $space-20 auto $space-100; | ||
overflow: clip; | ||
border: $space-2 solid var(--d-yellow-color); | ||
border-radius: $space-8; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<div class="hhkb h-full"> | ||
<p class="hhkb-title"> | ||
HHKB Keyboard | ||
</p> | ||
<div class="hhkb-input"> | ||
<DDTextarea | ||
padded | ||
color="violet" | ||
size="lg" | ||
placeholder="영어로 작성하거나 마우스로 키보드를 클릭하면, 아래의 3D 모델링된 hhkb 키보드가 동작합니다." | ||
:rows="5" | ||
/> | ||
</div> | ||
<canvas | ||
ref="hhkbRef" | ||
class="hhkb-canvas" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
// @ts-ignore | ||
import { Application } from '@splinetool/runtime' | ||
const hhkbRef = ref(null) | ||
const state = reactive({ | ||
spline: { | ||
scene: 'https://prod.spline.design/drAMoZbfLXDCLqRs/scene.splinecode', | ||
app: null, | ||
isLoaded: false | ||
} | ||
}) | ||
onMounted(async () => { | ||
try { | ||
const app = new Application(hhkbRef.value, { | ||
preload: true | ||
}) | ||
await app.load(state.spline.scene) | ||
state.spline.app = app | ||
state.spline.isLoaded = true | ||
} catch (error) { | ||
console.error(error) | ||
} | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters