-
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.
tailwind css 를 cdn 방식으로 적용 로그인, 로그아웃, 이벤트 목록, 어드민 이벤트 상세에 적용 나머지 뷰 디자인은 차차 발전시킬 예정 ### Reference * https://tailwindcss.com/
- Loading branch information
Showing
8 changed files
with
185 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
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 |
---|---|---|
|
@@ -2,27 +2,34 @@ | |
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> | ||
<title>Login</title> | ||
</head> | ||
<body> | ||
<p> | ||
<span id="loginTitle">This is login page.</span> | ||
</p> | ||
<form id="loginForm"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td><label for="username">EMAIL</label></td> | ||
<td><input type="text" id="username" name="username" required></td> | ||
</tr> | ||
<tr> | ||
<td><label for="password">패스워드</label></td> | ||
<td><input type="password" id="password" name="password" required></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<input type="hidden" id="csrf"> | ||
</form> | ||
<button id="login" type="submit">로그인</button> | ||
<body class="bg-gray-200"> | ||
<div class="py-32 bg-gray-200 flex justify-center"> | ||
<div class="w-full max-w-xs"> | ||
<form id="loginForm" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | ||
<div class="mb-4"> | ||
<label for="username" class="block text-gray-700 text-sm font-bold mb-2"> | ||
</label> | ||
<input type="text" id="username" name="username" placeholder="이메일 주소 (ex: [email protected])" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" required> | ||
</div> | ||
<div class="mb-6"> | ||
<label for="password" class="block text-gray-700 text-sm font-bold mb-2"> | ||
Password | ||
</label> | ||
<input type="password" id="password" name="password" placeholder="************" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" required> | ||
</div> | ||
<input type="hidden" id="csrf"> | ||
<div class="flex items-center justify-between"> | ||
<button id="login" type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"> | ||
로그인 | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
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,6 +1,5 @@ | ||
<?xml version="1.0"?> | ||
<thlogic> | ||
<attr sel="#loginTitle" th:text="'로그인 페이지'" /> | ||
<attr sel="#csrf" th:value="${_csrf.token}" th:name="${_csrf.parameterName}" /> | ||
<attr sel="#login" th:form="loginForm" th:formaction="@{/login}" th:formmethod="post" /> | ||
</thlogic> |
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