page layout
This commit is contained in:
parent
c7b089f718
commit
3b299c18ba
39
frontend/assets/style.css
Normal file
39
frontend/assets/style.css
Normal file
@ -0,0 +1,39 @@
|
||||
body {
|
||||
background-color: black;
|
||||
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
height: 100vh;
|
||||
|
||||
padding: 5em;
|
||||
}
|
||||
|
||||
#main-grid {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
display: grid;
|
||||
gap: 2em;
|
||||
|
||||
grid-template-rows: 2.5em auto;
|
||||
}
|
||||
|
||||
#search {
|
||||
grid-column: 1 / span 2;
|
||||
}
|
||||
|
||||
#left {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
#right {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
background-color: rgba(255, 192, 203, 1);
|
||||
border: 1px solid blueviolet;
|
||||
|
||||
padding: 1em;
|
||||
border-radius: .5em;
|
||||
}
|
18
frontend/index.html
Normal file
18
frontend/index.html
Normal file
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>NewTab</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="assets/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="main-grid">
|
||||
<input class="grid-item" id="search" />
|
||||
|
||||
<div class="grid-item" id="left">Hellow</div>
|
||||
<div class="grid-item" id="right">World</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user