create basic homepage layout
This commit is contained in:
+28
-5
@@ -3,15 +3,38 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Home Page</title>
|
||||
<title>Home</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap"
|
||||
rel="stylesheet"
|
||||
href="{{ url_for('static', filename='style.css') }}"
|
||||
/>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='app.css') }}" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>logged in</h1>
|
||||
<p>hi, {{ current_user.username }}!</p>
|
||||
<a href="{{ url_for('main.play') }}" class="link-button">Play Chess</a>
|
||||
<div class="site-shell">
|
||||
<header class="topbar">
|
||||
<a href="{{ url_for('main.home') }}" class="brand">Chess</a>
|
||||
<nav class="topnav">
|
||||
<a href="{{ url_for('main.home') }}" class="active">Home</a>
|
||||
<a href="{{ url_for('main.play') }}">Play</a>
|
||||
<a href="{{ url_for('main.friends') }}">Friends</a>
|
||||
</nav>
|
||||
<div class="profile-pill">{{ current_user.username }}</div>
|
||||
</header>
|
||||
|
||||
<main class="page-wrap">
|
||||
<h1>Welcome back, {{current_user.username}}</h1>
|
||||
<div class="cta-row">
|
||||
<a href="{{ url_for('main.play') }}" class="btn btn-primary"
|
||||
>Start a game</a
|
||||
>
|
||||
<a href="{{ url_for('main.friends') }}" class="btn btn-secondary"
|
||||
>Open friends</a
|
||||
>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user