-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
7 changed files
with
285 additions
and
59 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
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,66 @@ | ||
<script setup> | ||
defineProps(['modelValue', 'placeholder']) | ||
</script> | ||
|
||
<template> | ||
<div class="input"> | ||
<label class="label_input" for="text-input"> | ||
<input :value="modelValue" :placeholder="placeholder" id="text-input" type="text" /> | ||
</label> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.input { | ||
display: flex; | ||
grid-gap: calc(0.25 * 4rem); | ||
gap: calc(0.25 * 4rem); | ||
align-items: center; | ||
.label_input { | ||
--border: hsla(222deg 10% 17% / 1); | ||
--outline: transparent; | ||
--svg: hsla(222deg 5% 56% / 0.75); | ||
--bg: transparent; | ||
height: calc(0.25 * 9rem); | ||
padding-inline: calc(0.25 * 3rem); | ||
display: flex; | ||
align-items: center; | ||
grid-gap: calc(0.25 * 2rem); | ||
gap: calc(0.25 * 2rem); | ||
flex: 1; | ||
cursor: text; | ||
white-space: nowrap; | ||
background-color: var(--bg); | ||
border-radius: 5px; | ||
border: 1px solid var(--border) !important; | ||
outline: 2px solid var(--outline); | ||
outline-offset: 2px; | ||
transition: 0.2s all; | ||
&:focus-within { | ||
--border: hsla(222deg 6% 30% / 1); | ||
--bg: hsla(0deg 0% 100% / 6%); | ||
--svg: hsla(222deg 5% 62% / 1); | ||
--outline: hsla(222deg 5% 62% / 0.15); | ||
z-index: 3; | ||
} | ||
&:hover { | ||
--border: hsla(222deg 6% 30% / 1); | ||
--bg: hsla(0deg 0% 100% / 6%); | ||
} | ||
#text-input { | ||
flex: 1; | ||
background: transparent; | ||
outline: none; | ||
font-size: 0.8125rem; | ||
font-family: inherit; | ||
color: inherit; | ||
line-height: 1.6; | ||
border: none; | ||
} | ||
} | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,13 +1,136 @@ | ||
<script setup></script> | ||
<script setup> | ||
import Input from '@/components/ui/Input.vue' | ||
import { ref } from 'vue' | ||
const riotId = ref('') | ||
</script> | ||
|
||
<template> | ||
<main> | ||
<div class="main__body"> | ||
<div class="main__container"> | ||
<h1>:(</h1> | ||
<div class="editor"> | ||
<div class="editor__body"> | ||
<div class="editor__container"> | ||
<div class="editor__container__header"> | ||
<h1 class="title">{{ $t('editor.header.title') }}</h1> | ||
<p class="description"> | ||
{{ $t('editor.header.description') }} | ||
</p> | ||
</div> | ||
<div class="editor__container__body"> | ||
<div class="editor__settings"> | ||
<div class="editor__settings__header"> | ||
<h1 class="title">{{ $t('editor.riotId.title') }}</h1> | ||
<p class="description"> | ||
{{ $t('editor.riotId.description') }} | ||
</p> | ||
</div> | ||
<Input v-model="riotId" placeholder="Riot ID" /> | ||
<span @click="riotId = 'MAGICX#1337'" class="random">{{ | ||
$t('editor.riotId.random') | ||
}}</span> | ||
</div> | ||
</div> | ||
<div class="editor__container__body"> | ||
<div class="editor__settings"> | ||
<div class="editor__settings__header"> | ||
<h1 class="title">{{ $t('editor.customization.title') }}</h1> | ||
<p class="description"> | ||
{{ $t('editor.customization.description') }} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="preview"> | ||
<div class="preview__container"> | ||
<div class="preview__component"> | ||
<div>{{ $t('editor.preview.title') }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</template> | ||
|
||
<style scoped></style> | ||
<style lang="scss" scoped> | ||
.editor { | ||
width: 60vw; | ||
height: fit-content; | ||
background: hsl(0, 0%, 8%); | ||
border-radius: 8px; | ||
border: 1px solid hsla(222deg 6% 30% / 0.25); | ||
overflow: hidden; | ||
color: #fffbf5; | ||
h1, | ||
p { | ||
margin: 0; | ||
} | ||
.editor__body { | ||
display: flex; | ||
align-items: stretch; | ||
.editor__container { | ||
flex: 1; | ||
.editor__container__header, | ||
.editor__settings { | ||
padding: calc(0.25 * 6rem); | ||
border-bottom: 1px solid hsla(222deg 6% 30% / 0.25); | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
.editor__settings__header { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
} | ||
.title { | ||
font-weight: 600; | ||
font-size: calc(0.25 * 4.5rem); | ||
} | ||
.description { | ||
color: hsla(222deg 5% 62% / 1); | ||
font-size: 0.875rem; | ||
line-height: 1.5; | ||
} | ||
.random { | ||
color: rgb(0, 143, 253); | ||
font-size: 0.875rem; | ||
line-height: 1.5; | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
.preview { | ||
flex: 1; | ||
.preview__container { | ||
width: 100%; | ||
height: 100%; | ||
padding: calc(0.25 * 6rem); | ||
background-image: url('@/assets/previews/breeze.webp'); | ||
background-position: center; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
.preview__component { | ||
width: auto; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
</style> |
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