-
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.
Merge pull request #105 from vuejs-jp/fix/css-form
fix: css of form
- Loading branch information
Showing
5 changed files
with
97 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,51 +36,23 @@ const updateDetail = (e: any) => { | |
<VFTitle id="form" class="title"> | ||
{{ $t('form.title') }} | ||
</VFTitle> | ||
<div | ||
class="subtitle" | ||
:style="{ | ||
<div class="subtitle" :style="{ | ||
fontWeight: fontWeight('body/300'), | ||
fontSize: fontSize('body/300'), | ||
color: color('vue-blue'), | ||
}" | ||
> | ||
}"> | ||
<MarkDownText path="form" /> | ||
</div> | ||
<div class="form"> | ||
<form @submit="onSubmit"> | ||
<VFInputField | ||
id="name" | ||
v-model="name" | ||
name="name" | ||
:label="$t('form.form_name_label')" | ||
:placeholder="$t('form.form_name_placeholder')" | ||
required | ||
:error="nameError" | ||
@input="updateName" | ||
@blur="validateName" | ||
/> | ||
<VFInputField | ||
id="email" | ||
v-model="email" | ||
name="email" | ||
:label="$t('form.form_email_label')" | ||
placeholder="[email protected]" | ||
required | ||
:error="emailError" | ||
@input="updateEmail" | ||
@blur="validateEmail" | ||
/> | ||
<VFTextAreaField | ||
id="detail" | ||
v-model="detail" | ||
name="detail" | ||
:label="$t('form.form_text_label')" | ||
:rows="3" | ||
required | ||
:error="detailError" | ||
@input="updateDetail" | ||
@blur="validateDetail" | ||
/> | ||
<VFInputField id="name" v-model="name" name="name" :label="$t('form.form_name_label')" | ||
:placeholder="$t('form.form_name_placeholder')" required :error="nameError" @input="updateName" | ||
@blur="validateName" /> | ||
<VFInputField id="email" v-model="email" name="email" :label="$t('form.form_email_label')" | ||
placeholder="[email protected]" required :error="emailError" @input="updateEmail" @blur="validateEmail" /> | ||
<VFTextAreaField id="detail" v-model="detail" name="detail" placeholder="お問い合わせ" | ||
:label="$t('form.form_text_label')" :rows="3" required :error="detailError" @input="updateDetail" | ||
@blur="validateDetail" /> | ||
<div class="form-button"> | ||
<VFSubmitButton :disabled="!isSubmitting"> | ||
{{ $t('form.submit') }} | ||
|
@@ -103,6 +75,7 @@ section { | |
background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(235, 240, 245, 0.8)); | ||
background-blend-mode: soft-light; | ||
} | ||
.form-root { | ||
display: grid; | ||
gap: 40px; | ||
|
@@ -111,27 +84,33 @@ section { | |
width: 100%; | ||
grid-template-columns: minmax(0, 1fr); | ||
} | ||
.title { | ||
text-align: center; | ||
} | ||
.subtitle { | ||
display: grid; | ||
place-items: center; | ||
gap: 40px; | ||
line-height: 1.8; | ||
&::v-deep a { | ||
color: var(--color-vue-green); | ||
text-decoration: underline; | ||
} | ||
&::v-deep a:hover { | ||
opacity: 0.4; | ||
transition: .2s; | ||
} | ||
} | ||
form { | ||
display: grid; | ||
gap: 40px; | ||
} | ||
.form-button { | ||
margin: 0 auto; | ||
width: 260px; | ||
|
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
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