Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jangseun committed Jan 16, 2025
1 parent c432773 commit 5e6d848
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
24 changes: 23 additions & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,31 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>pie-game</title>
<title>SvelteKit App</title>
%sveltekit.head%
</head>
<body>
<div id="svelte">%sveltekit.body%</div>

<script>
// 페이지 로드 후 자동으로 /storys/1로 리디렉션
if (window.location.pathname === '/') {
window.location.href = '/storys/1';
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>SvelteKit App</title>
%sveltekit.head%
</head>
<body>
<div id="svelte">%sveltekit.body%</div>

<script>
// 페이지 로드 후 자동으로 /storys/1로 리디렉션
if (window.location.pathname === '/') {
Expand Down
15 changes: 2 additions & 13 deletions src/routes/(start-story)/storys/[storyId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@
{/if}

<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:global(html, body) {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
.story {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -123,11 +112,11 @@
.textbox {
margin-left: 20%;
margin-top: 70vh;
margin-top: 75vh;
padding: 5vh;
width: 60%;
height: 20vh;
height: 15vh;
background-color: black;
opacity: 0.7;
Expand Down

0 comments on commit 5e6d848

Please sign in to comment.