Skip to content

Commit

Permalink
feat(project): animations in create
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 18, 2021
1 parent b627679 commit 2799e95
Showing 1 changed file with 78 additions and 6 deletions.
84 changes: 78 additions & 6 deletions src/components/editor/aside/project/AsideProjectNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,112 @@
:shortcut="store.state.shortcuts.newProject[0]"
>
<div class="w-96 h-96 flex flex-col overflow-y-auto">
<div class="flex flex-col pt-3">
<div
v-motion
class="flex flex-col pt-3"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 700,
},
}"
>
<label>{{ t('editor.aside.project.new.name') }}</label>
<input
v-model="name"
class="shadow-winset dark:shadow-binset bg-transparent p-1"
/>
</div>
<div class="flex flex-col pt-3">
<div
v-motion
class="flex flex-col pt-3"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 750,
},
}"
>
<label>{{ t('editor.aside.project.new.creator') }}</label>
<input
v-model="creator"
class="shadow-winset dark:shadow-binset bg-transparent p-1"
/>
</div>
<div class="flex flex-col pt-3">
<div
v-motion
class="flex flex-col pt-3"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 800,
},
}"
>
<label>{{ t('editor.aside.project.new.subject') }}</label>
<input
v-model="subject"
class="shadow-winset dark:shadow-binset bg-transparent p-1"
/>
</div>
<div class="flex flex-col pt-3">
<div
v-motion
class="flex flex-col pt-3"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 850,
},
}"
>
<label>{{ t('editor.aside.project.new.version') }}</label>
<input
v-model="version"
class="shadow-winset dark:shadow-binset bg-transparent p-1"
/>
</div>
<div class="flex flex-col pt-3">
<div
v-motion
class="flex flex-col pt-3"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 900,
},
}"
>
<label>{{ t('editor.aside.project.new.type') }}</label>
<div class="break-words">
{{ typeDescription }}
</div>
<div class="flex flex-row flex-wrap items-center py-1 w-full">
<div
v-motion
class="flex flex-row flex-wrap items-center py-1 w-full"
:initial="{
opacity: 0,
}"
:enter="{
opacity: 1,
transition: {
delay: 950,
},
}"
>
<AsideProjectNewType
:is="type"
:title="t('editor.aside.project.new.types.blank.title')"
Expand Down

0 comments on commit 2799e95

Please sign in to comment.