-
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.
- Loading branch information
1 parent
b445cda
commit a619eca
Showing
5 changed files
with
115 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="/style/global.scss" /> | ||
<link rel="stylesheet" href="welcome.scss" /> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<main> | ||
<h1>Zachary's Three.js Works</h1> | ||
<a href="pages/basic/hello/index.html">Browse from "Hello Three.js"</a> | ||
</main> | ||
<footer> | ||
<div>Copyright by Zachary Bear 2024.</div> | ||
<div>Contact me on <a href="https://github.com/ZenkieBear">Github</a>.</div> | ||
<div>This is an open-source project, <a href="https://github.com/ZenkieBear/learn-three">check it out</a> on Github.</div> | ||
</footer> | ||
</body> | ||
<script type="module" src="welcome.ts"></script> | ||
</html> |
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,82 @@ | ||
@import '@/style/global.scss'; | ||
|
||
main { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1em; | ||
margin: calc(3.4rem + 2rem) auto 0; | ||
padding: 2em; | ||
width: 90%; | ||
background-color: adjust-color($accent, $lightness: 47%); | ||
|
||
h1 { | ||
font-size: 8em; | ||
line-height: 1.5; | ||
} | ||
|
||
a { | ||
position: relative; | ||
display: block; | ||
padding: 2rem; | ||
width: fit-content; | ||
color: white; | ||
background-color: $accent; | ||
|
||
&::before { | ||
content: '→'; | ||
position: absolute; | ||
left: 0; | ||
display: block; | ||
text-decoration: none; | ||
opacity: 0; | ||
} | ||
|
||
&:hover { | ||
padding-left: 3rem; | ||
|
||
&::before { | ||
left: 1em; | ||
opacity: 1; | ||
transition: all .4s ease-out; | ||
} | ||
} | ||
|
||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
a { | ||
padding: 1rem; | ||
} | ||
h1 { | ||
font-size: 5em; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 425px) { | ||
h1 { | ||
font-size: 3em; | ||
} | ||
} | ||
} | ||
|
||
footer { | ||
display: flex; | ||
flex-direction: column; | ||
gap: .5rem; | ||
margin-top: 2rem; | ||
padding: 2.5% 5% 0; | ||
min-height: 50vh; | ||
background-color: rgba($accent, 20%); | ||
color: $accent; | ||
|
||
a { | ||
color: $accent; | ||
} | ||
} | ||
|
||
// Customized menu | ||
.menu { | ||
padding: 0 5%; | ||
background-color: rgba($accent, 5%); | ||
backdrop-filter: blur(1rem); | ||
} |
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,3 @@ | ||
import { useMenu } from '@/lib/menu' | ||
|
||
useMenu() |