<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>메인 화면</title>
<style>
body {
	background-image: url("../image/background.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
}
</style>
</head>
<body>
	<div class="main">
		<style>
.main {
	text-align: center;
	position: absolute;
	top: 38%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#coolWrapper:before {
	content: '';
	display: inline-block;
	vertical-align: middle;
}

button.test {
	background: #1AAB8A;
	color: #fff;
	border: none;
	position: relative;
	height: 60px;
	font-size: 1.6em;
	padding: 0 2em;
	cursor: pointer;
	transition: 800ms ease all;
	outline: none;
}

button.test:hover {
	background: #fff;
	color: #1AAB8A;
}

button.test:before, button:after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	height: 2px;
	width: 0;
	background: #1AAB8A;
	transition: 400ms ease all;
}

button.test:after {
	right: inherit;
	top: inherit;
	left: 0;
	bottom: 0;
}

button.test:hover:before, button:hover:after {
	width: 100%;
	transition: 800ms ease all;
}
</style>
		<img width="250px" height="200px" src="../image/img.png"><br> <br>
		<fieldset style="padding: 30px; border-color: #A0D9E2;">
			<%
				if (session.getAttribute("id") == null) {
			%>
			<div id="coolWrapper">
				<button class="test" onclick="location='loginForm.jsp'">LOGIN</button>
			</div>
			<%
				} else {
			%>
			<b><%=session.getAttribute("id")%></b>님 안녕하세요! <br> 저희 홈페이지에 방문해
			주셔서 감사합니다. <br> 즐거운 시간 되세요.... <br>
			<p>

				<%
					if (session.getAttribute("id").equals("admin")) {
				%>
			
			<p>
				<A href="http://localhost:8080/jsp_final_A_20152488/member/list.jsp">전체회원정보보기</A>
			</p>
			<%
				}
			%>
			<form method="post" action="LogOut.jsp">
				<input type=submit value="로그아웃"> <input type="button"
					value="정보수정" onclick="location='updateForm.jsp'">
			</form>
			<%
				}
			%>
		</fieldset>
	</div>
</body>
</html>