Browse Source

add beta pill

main
Stephanie Gredell 4 months ago
parent
commit
8e4e1ad2fd
  1. 5
      static/header.html
  2. 22
      static/index.html
  3. 17
      static/style.css

5
static/header.html

@ -1,6 +1,9 @@
{{ define "header" }} {{ define "header" }}
<div id="sd-header"> <div id="sd-header">
<h1 class="header-text">System Design Game</h1> <div class="header-logo-container">
<h1 class="header-text">System Design Game</h1>
<div class="beta-pill">BETA</div>
</div>
{{ if and .Username .Avatar }} {{ if and .Username .Avatar }}
<div class="userbox"> <div class="userbox">
<img src="{{ .Avatar }}" class="avatar" /> <img src="{{ .Avatar }}" class="avatar" />

22
static/index.html

@ -45,6 +45,12 @@
align-items: center; align-items: center;
} }
.logo-container {
display: flex;
align-items: center;
gap: 12px;
}
.logo { .logo {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
@ -52,6 +58,17 @@
text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
} }
.beta-pill {
background: linear-gradient(45deg, #ff6b35, #f7931e);
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.nav-links { .nav-links {
display: flex; display: flex;
gap: 30px; gap: 30px;
@ -812,7 +829,10 @@
<body> <body>
<header> <header>
<nav class="container"> <nav class="container">
<div class="logo">System Design Game</div> <div class="logo-container">
<div class="logo">System Design Game</div>
<div class="beta-pill">BETA</div>
</div>
<ul class="nav-links"> <ul class="nav-links">
<li><a href="#problem">Problem</a></li> <li><a href="#problem">Problem</a></li>
<li><a href="#solution">Solution</a></li> <li><a href="#solution">Solution</a></li>

17
static/style.css

@ -69,11 +69,28 @@ body {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.header-logo-container {
display: flex;
align-items: center;
gap: 12px;
}
.header-text { .header-text {
font-size: 24px; font-size: 24px;
margin: 0; margin: 0;
text-shadow: 0 0 10px rgba(0, 255, 136, 0.8); text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
} }
.beta-pill {
background: linear-gradient(45deg, #ff6b35, #f7931e);
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
} }
#main-content { #main-content {

Loading…
Cancel
Save