Skip to content

Instantly share code, notes, and snippets.

@ybkimm
Created April 5, 2019 08:06
Show Gist options
  • Save ybkimm/5bc41923d12ca58146c36241144112ad to your computer and use it in GitHub Desktop.
Save ybkimm/5bc41923d12ca58146c36241144112ad to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<html lang="ko">
<head>
<meta charset="UTF-8"/>
<title>제목</title>
<link rel="stylesheet" href="assets/main.css">
</head>
<body>
<div class="wrapper">
<div class="sidebar">
<a class="sidebar-item branding" href="/"><img src="./assets/logo.webp" alt=""></a>
<div class="sidebar-item login-form">
<input type="text" class="login-input">
<input type="password" class="login-input">
<a class="login-button" href="#">Login</a>
</div>
</div>
<div class="main">
Hello, World!
</div>
</div>
</body>
</html>
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
margin: 0;
}
.wrapper {
width: 80rem;
min-height: 100%;
}
.sidebar {
display: block;
width: 20rem;
position: fixed;
left: 0;
top: 0;
bottom: 0;
border-right: 1px solid #ddd;
}
.sidebar .sidebar-item {
display: block;
width: 100%;
padding-left: 2rem;
padding-right: 2rem;
}
.sidebar .sidebar-item.branding {
padding: 2rem 4rem;
}
.sidebar .sidebar-item img {
display: block;
width: 100%;
}
.login-form {
}
.login-input {
display: block;
width: 100%;
margin-bottom: 1rem;
}
.login-button {
display: block;
padding: .5rem 1rem;
background: blue;
color: white;
text-decoration: none;
text-align: center;
border-radius: 8px;
}
.main {
margin-left: 20rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment