Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
Ecsite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shoei.kanno
Ecsite
Commits
8b7bed52
Commit
8b7bed52
authored
Oct 15, 2020
by
shoei.kanno
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ログイン画面デザイン' into 'master'
ログイン画面デザイン完成 See merge request
!4
parents
9a17acf1
1fcbe22e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
36 deletions
+164
-36
style.css
src/main/resources/static/css/style.css
+90
-15
login.js
src/main/resources/static/js/login.js
+11
-0
login.html
src/main/resources/templates/login.html
+63
-21
No files found.
src/main/resources/static/css/style.css
View file @
8b7bed52
...
@@ -187,8 +187,7 @@ video {
...
@@ -187,8 +187,7 @@ video {
iframe
,
embed
,
object
{
iframe
,
embed
,
object
{
max-width
:
100%
;
max-width
:
100%
;
}
}
/* //宮嶋追記(TOPでのログアウトボタン) */
input
,
textarea
{
input
:not
(
.logoutBtn
),
textarea
{
color
:
#000
!important
color
:
#000
!important
}
}
...
@@ -1558,47 +1557,123 @@ label {
...
@@ -1558,47 +1557,123 @@ label {
/* フォームの幅 */
/* フォームの幅 */
.login
{
.login
{
width
:
3
00px
;
width
:
4
00px
;
height
:
30px
;
height
:
30px
;
}
}
/* フォームを中央寄せなど */
/* フォームを中央寄せなど */
#login
F
orm
{
#login
-f
orm
{
text-align
:
center
;
text-align
:
center
;
margin
:
100px
0
150px
;
margin
:
100px
0
150px
;
}
}
/* 案内テキスト */
/* 案内テキスト */
#online
ShoeS
tore
{
#online
-shoe-s
tore
{
font-size
:
40px
;
font-size
:
40px
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
100px
;
margin-top
:
100px
;
}
}
#online
ShoeStoreS
pan
{
#online
-shoe-store-s
pan
{
border-bottom
:
2px
solid
#1abc9c
;
border-bottom
:
2px
solid
#1abc9c
;
}
}
/* フォーム間隔 */
/* フォーム間隔 */
#email
Form
,
#passwordF
orm
{
#email
-form
,
#password-f
orm
{
margin
:
20px
0
;
margin
:
20px
0
;
}
}
/* 送信ボタン */
/* 送信ボタン
会員登録ボタン
*/
#btn
,
#sign
U
p
{
#btn
,
#sign
-u
p
{
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
margin-top
:
50px
;
margin-top
:
50px
;
margin-left
:
20px
;
margin-left
:
20px
;
font-weight
:
bold
;
font-weight
:
bold
;
background-color
:
#1abc9c
;
border-radius
:
3px
;
border
:
none
;
color
:
#000
;
}
}
/* ログイン画面終了 */
/* モーダル */
.content
{
margin
:
0
auto
;
padding
:
40px
;
}
.modal
{
display
:
none
;
height
:
100vh
;
position
:
fixed
;
top
:
0
;
width
:
100%
;
}
.modal__bg
{
background
:
rgba
(
0
,
0
,
0
,
0.8
);
height
:
100vh
;
position
:
absolute
;
width
:
100%
;
}
.modal__content
{
background
:
#fff
;
left
:
50%
;
padding
:
40px
;
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
width
:
60%
;
}
/* モーダル内フォーム */
.sign-up-form-input
{
width
:
400px
;
height
:
30px
;
}
.sign-up-form-label
{
width
:
150px
;
color
:
#000
;
}
/*//宮嶋追記(TOPでのログアウトボタン)*/
.sign-up-form
{
.logoutBtn
{
margin-bottom
:
20px
;
color
:
white
;
}
margin-top
:
10px
;
#ok-btn
,
#close-btn
{
width
:
150px
;
height
:
50px
;
margin-top
:
50px
;
margin-left
:
20px
;
font-weight
:
bold
;
background-color
:
#1abc9c
;
border-radius
:
3px
;
border
:
none
;
color
:
#000
;
}
#ok-btn
{
margin-left
:
50px
;
}
.modal__content
{
text-align
:
center
;
padding-right
:
100px
;
}
}
#sign-up-text
{
font-size
:
30px
;
margin-bottom
:
30px
;
margin-left
:
60px
;
color
:
#000
;
}
.attention
{
color
:
red
;
margin-left
:
190px
;
text-align
:
left
;
}
/* ログイン画面終了 */
src/main/resources/static/js/login.js
0 → 100644
View file @
8b7bed52
$
(
function
(){
$
(
'.js-modal-open'
).
on
(
'click'
,
function
(){
$
(
'.js-modal'
).
fadeIn
();
return
false
;
});
$
(
'.js-modal-close'
).
on
(
'click'
,
function
(){
$
(
'.js-modal'
).
fadeOut
();
return
false
;
});
});
\ No newline at end of file
src/main/resources/templates/login.html
View file @
8b7bed52
...
@@ -6,9 +6,8 @@
...
@@ -6,9 +6,8 @@
<title>
Mart - HTML5 Resoponsive onepage e-commerce template
</title>
<title>
Mart - HTML5 Resoponsive onepage e-commerce template
</title>
<meta
name=
"description"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<link
rel=
"icon"
href=
"images/favicon.png"
/>
<link
rel=
"icon"
href=
"images/favicon.png"
th:href=
"@{/images/favicon.png}"
/>
<link
rel=
"stylesheet"
href=
"css/style.css"
th:href=
"@{/css/style.css}"
/>
<link
rel=
"stylesheet"
href=
"css/style.css"
/>
<!--[if lt IE 9]>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
...
@@ -52,26 +51,26 @@
...
@@ -52,26 +51,26 @@
<!-- ログインフォーム -->
<!-- ログインフォーム -->
<div
class=
"container"
>
<div
class=
"container"
>
<p
id=
"online
ShoeStore"
><span
id=
"onlineShoeStoreS
pan"
>
Members-only online shoe store
</span></p>
<p
id=
"online
-shoe-store"
><span
id=
"online-shoe-store-s
pan"
>
Members-only online shoe store
</span></p>
<form
id=
"login
F
orm"
method=
"post"
th:action=
"@{/login}"
>
<form
id=
"login
-f
orm"
method=
"post"
th:action=
"@{/login}"
>
<div
id=
"email
F
orm"
>
<div
id=
"email
-f
orm"
>
<label
for=
"email"
>
Email
</label>
<label
for=
"
login-
email"
>
Email
</label>
<input
type=
"
text"
class=
"login"
id=
"email"
placeholder=
"Email"
required=
"true
"
/>
<input
type=
"
email"
class=
"login"
id=
"login-email"
placeholder=
"Email"
required=
"required
"
/>
</div>
</div>
<div
id=
"password
F
orm"
>
<div
id=
"password
-f
orm"
>
<label
for=
"password"
>
Password
</label>
<label
for=
"
login-
password"
>
Password
</label>
<input
type=
"password"
class=
"login"
id=
"
password"
placeholder=
"Password"
required=
"true
"
/>
<input
type=
"password"
class=
"login"
id=
"
login-password"
placeholder=
"Password"
required=
"required
"
/>
</div>
</div>
<div
id=
"submit
F
orm"
>
<div
id=
"submit
-f
orm"
>
<input
type=
"submit"
class=
"login"
id=
"btn"
value=
"Login"
/>
<input
type=
"submit"
class=
"login"
id=
"btn"
value=
"Login"
/>
<!-- 会員登録ボタン -->
<!-- 会員登録ボタン -->
<input
type=
"button"
class=
"login"
id=
"signUp"
value=
"Sign Up"
/
>
<button
class=
"js-modal-open"
id=
"sign-up"
>
Sign Up
</button
>
</div>
</div>
</form>
</form>
</div>
</div>
<!-- footer -->
<!-- footer -->
<footer
class=
"footer"
id=
"login
F
ooter"
>
<footer
class=
"footer"
id=
"login
-f
ooter"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
...
@@ -82,12 +81,55 @@
...
@@ -82,12 +81,55 @@
</div>
</div>
</footer>
</footer>
<!-- モーダル中身 -->
<div
class=
"modal js-modal"
>
<div
class=
"modal__bg js-modal-close"
></div>
<div
class=
"modal__content"
>
<div
class=
"sign-up-form"
>
<p
id=
"sign-up-text"
>
Sign Up
</p>
<label
for=
"name"
class=
"sign-up-form-label"
>
Name
</label>
<input
type=
"text"
id=
"name"
class=
"sign-up-form-input"
placeholder=
"Name"
required=
"required"
/>
</div>
<div
class=
"sign-up-form"
>
<label
for=
"postal-code"
class=
"sign-up-form-label"
>
Postal Code
</label>
<input
type=
"text"
id=
"postal-code"
class=
"sign-up-form-input"
placeholder=
"Postal Code"
required=
"required"
/>
<p
class=
"attention"
>
Please enter 7-digit alphanumeric characters with no hyphens.
</p>
</div>
<div
class=
"sign-up-form"
>
<label
for=
"address"
class=
"sign-up-form-label"
>
Address
</label>
<input
type=
"text"
id=
"address"
class=
"sign-up-form-input"
placeholder=
"Address"
required=
"required"
/>
<p
class=
"attention"
>
Please enter numbers in half-width characters.
</p>
</div>
<div
class=
"sign-up-form"
>
<label
for=
"phone-number"
class=
"sign-up-form-label"
>
Phone Number
</label>
<input
type=
"text"
id=
"phone-number"
class=
"sign-up-form-input"
placeholder=
"Phone Number"
required=
"required"
/>
<p
class=
"attention"
>
Please enter 11-digit alphanumeric characters with no hyphens.
</p>
</div>
<div
class=
"sign-up-form"
>
<label
for=
"email"
class=
"sign-up-form-label"
>
Email
</label>
<input
type=
"email"
id=
"email"
class=
"sign-up-form-input"
placeholder=
"Email"
required=
"required"
/>
</div>
<div
class=
"sign-up-form"
>
<label
for=
"password"
class=
"sign-up-form-label"
>
Password
</label>
<input
type=
"password"
id=
"password"
class=
"sign-up-form-input"
placeholder=
"Password"
required=
"required"
/>
</div>
<div>
<button
class=
"js-modal-sign-up"
id=
"ok-btn"
>
Ok
</button>
<button
class=
"js-modal-close"
id=
"close-btn"
>
Close
</button>
</div>
</div>
<!--modal__inner-->
</div>
<!--modal-->
<!-- モーダル用 -->
<script
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
></script>
<!-- JQUERY -->
<!-- JQUERY -->
<script
src=
"js/vendor/jquery-1.11.2.min.js"
></script>
<script
src=
"js/vendor/jquery-1.11.2.min.js"
th:src=
"@{/js/vendor/jquery-1.11.2.min.js}"
></script>
<script
src=
"js/vendor/bootstrap.min.js"
></script>
<script
src=
"js/vendor/bootstrap.min.js"
th:src=
"@{/js/vendor/bootstrap.min.js}"
></script>
<script
src=
"js/isotope.pkgd.min.js"
></script>
<script
src=
"js/isotope.pkgd.min.js"
th:src=
"@{/js/isotope.pkgd.min.js}"
></script>
<script
src=
"js/owl.carousel.min.js"
></script>
<script
src=
"js/owl.carousel.min.js"
th:src=
"@{/js/owl.carousel.min.js}"
></script>
<script
src=
"js/wow.min.js"
></script>
<script
src=
"js/wow.min.js"
th:src=
"@{/js/wow.min.js}"
></script>
<script
src=
"js/custom.js"
></script>
<script
src=
"js/custom.js"
th:src=
"@{/js/custom.js}"
></script>
<script
src=
"js/login.js"
th:src=
"@{/js/login.js}"
></script>
</body>
</body>
</html>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment