Showing
3 changed files
with
57 additions
and
28 deletions
app/web/src/routes/Home.svelte
deleted
100644 → 0
| 1 | -<main> | ||
| 2 | - <h1>Hello, This is Home!</h1> | ||
| 3 | - <p>Visit the <a href="https://svelte.dev/tutorial">Svelte tutorial</a> to learn how to build Svelte apps.</p> | ||
| 4 | -</main> | ||
| 5 | - | ||
| 6 | -<style> | ||
| 7 | - main { | ||
| 8 | - text-align: center; | ||
| 9 | - padding: 1em; | ||
| 10 | - max-width: 240px; | ||
| 11 | - margin: 0 auto; | ||
| 12 | - } | ||
| 13 | - | ||
| 14 | - h1 { | ||
| 15 | - color: #ff3e00; | ||
| 16 | - text-transform: uppercase; | ||
| 17 | - font-size: 4em; | ||
| 18 | - font-weight: 100; | ||
| 19 | - } | ||
| 20 | - | ||
| 21 | - @media (min-width: 640px) { | ||
| 22 | - main { | ||
| 23 | - max-width: none; | ||
| 24 | - } | ||
| 25 | - } | ||
| 26 | -</style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
app/web/src/routes/Search.svelte
0 → 100644
| 1 | +<script> | ||
| 2 | + import {push} from 'svelte-spa-router'; | ||
| 3 | + | ||
| 4 | + let character; | ||
| 5 | + | ||
| 6 | + function searchCharacter() { | ||
| 7 | + if(!character) { | ||
| 8 | + M.toast({html:"닉네임을 입력해주세요."}); | ||
| 9 | + return false; | ||
| 10 | + } | ||
| 11 | + | ||
| 12 | + push('/character/' + character); | ||
| 13 | + } | ||
| 14 | +</script> | ||
| 15 | + | ||
| 16 | +<svelte:head> | ||
| 17 | + | ||
| 18 | +</svelte:head> | ||
| 19 | + | ||
| 20 | +<section> | ||
| 21 | + <article class="search-box row"> | ||
| 22 | + <div class="col l4 m6 s12 offset-l4 offset-m3"> | ||
| 23 | + <div class="card"> | ||
| 24 | + <div class="card-stacked"> | ||
| 25 | + <div class="card-content"> | ||
| 26 | + <h4>내 캐릭터 분석하기</h4> | ||
| 27 | + <form class="search-form" on:submit={searchCharacter} onsubmit="return false;"> | ||
| 28 | + <div class="input-field"> | ||
| 29 | + <label>캐릭터명</label> | ||
| 30 | + <input type="text" bind:value={character}> | ||
| 31 | + <button class="btn waves-effect waves-light red darken-1">확인</button> | ||
| 32 | + </div> | ||
| 33 | + </form> | ||
| 34 | + </div> | ||
| 35 | + <div class="card-action"> | ||
| 36 | + <p class="teal-text text-lighten-2"> | ||
| 37 | + 메이플스토리 스펙 계산기를 이용하기 위해서는 캐릭터 정보 공개(기본정보, 장비, 스킬)가 필요합니다. | ||
| 38 | + </p> | ||
| 39 | + <p> | ||
| 40 | + <a href="https://maplestory.nexon.com/MyMaple/Account/Character/Visibility" target="_BLANK">공개설정하러 가기</a> | ||
| 41 | + </p> | ||
| 42 | + </div> | ||
| 43 | + </div> | ||
| 44 | + </div> | ||
| 45 | + </div> | ||
| 46 | + </article> | ||
| 47 | +</section> | ||
| 48 | + | ||
| 49 | +<style> | ||
| 50 | +section { width:100%; height:100%; display:flex; flex-direction:column; justify-content:center; } | ||
| 51 | +.search-box { width:100%; } | ||
| 52 | +h4 { font-size:20px; text-align:center; } | ||
| 53 | +.input-field { padding-right:70px; } | ||
| 54 | +.input-field button { position:absolute; right:0; top:7px; } | ||
| 55 | +</style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment