Started working on the layout of the app
This commit is contained in:
		
							
								
								
									
										65
									
								
								public/css/kourend.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								public/css/kourend.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| html, | ||||
| body{ | ||||
|   width: 100%; | ||||
|   height: 100%; | ||||
|   margin: 0; | ||||
|   padding: 0; | ||||
| } | ||||
|  | ||||
| body{ | ||||
|   padding-top: 80px; | ||||
|   padding-bottom: 80px; | ||||
|   background: #eee; | ||||
| } | ||||
|  | ||||
| #navbar{ | ||||
|   box-sizing: border-box; | ||||
|   position: fixed; | ||||
|   top: 0; | ||||
|   left: 0; | ||||
|   width: 100%; | ||||
|   height: 64px; | ||||
|   padding-left: 10px; | ||||
|   background: purple; | ||||
|   color: white; | ||||
|   z-index: 10; | ||||
| } | ||||
|  | ||||
| #navbar ul{ | ||||
|   list-style: none; | ||||
| } | ||||
| #navbar ul li{ | ||||
|   display: inline-block; | ||||
| } | ||||
|  | ||||
| #navbar h4, | ||||
| #navbar a{ | ||||
|   margin-left: 15px; | ||||
|   line-height: 64px; | ||||
| } | ||||
|  | ||||
| #navbar a{ | ||||
|   color: white; | ||||
|   font-size: 24px; | ||||
|   text-decoration: none; | ||||
| } | ||||
|  | ||||
| #main-content{ | ||||
|   max-width: 1024px; | ||||
|   padding: 14px 20px; | ||||
|   background: white; | ||||
|   border-radius: 8px; | ||||
| } | ||||
|  | ||||
| #main-footer{ | ||||
|   position: fixed; | ||||
|   bottom: 0; | ||||
|   left: 0; | ||||
|   width: 100%; | ||||
|   height: 64px; | ||||
| } | ||||
|  | ||||
| #main-footer p{ | ||||
|   line-height: 64px; | ||||
|   text-align: center; | ||||
| } | ||||
| @@ -2,6 +2,4 @@ | ||||
|  | ||||
| <p>This is the BLT dashboard.</p> | ||||
|  | ||||
| <p>BLT version {{ .app_version }}</p> | ||||
|  | ||||
| {{ template "footer" . }} | ||||
|   | ||||
| @@ -1,4 +1,11 @@ | ||||
| {{ define "footer" }} | ||||
|   </div> | ||||
|  | ||||
|   <!-- footer --> | ||||
|   <nav id="main-footer"> | ||||
|     <p>BLT version {{ .app_version }}</p> | ||||
|   </nav> | ||||
|  | ||||
| </body> | ||||
| </html> | ||||
| {{ end }} | ||||
|   | ||||
| @@ -6,6 +6,15 @@ | ||||
|   <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|   <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||||
|   <title>{{ .title }} | BLT</title> | ||||
|   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"> | ||||
|   <link rel="stylesheet" href="/css/kourend.css"> | ||||
|   <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" charset="utf-8"></script> | ||||
| </head> | ||||
| <body> | ||||
|  | ||||
|   <!-- navbar --> | ||||
|   {{ template "navbar" . }} | ||||
|  | ||||
|   <!-- main content --> | ||||
|   <div id="main-content" class="container"> | ||||
| {{ end }} | ||||
|   | ||||
							
								
								
									
										11
									
								
								templates/layout/navbar.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								templates/layout/navbar.tmpl
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| {{ define "navbar" }} | ||||
| <nav id="navbar"> | ||||
|   <ul class="navbar-left"> | ||||
|     <li><h4>BLT</h4></li> | ||||
|     <li><a href="/">Dashboard</a></li> | ||||
|     <li><a href="/project">Projects</a></li> | ||||
|     <li><a href="/hardware">Hardware</a></li> | ||||
|     <li><a href="/benchmark">Benchmarks</a></li> | ||||
|   </ul> | ||||
| </nav> | ||||
| {{ end }} | ||||
		Reference in New Issue
	
	Block a user