From 6bc37d0b29356ea35db7035f3e6d75e91a49e17f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20Ja=C5=82ocha?=
Date: Sun, 1 Dec 2024 23:10:57 +0100
Subject: [PATCH] Show server name in tabs
---
.env.example | 3 ++-
src/layout/Head.tsx | 5 ++---
src/layout/TopBar/index.tsx | 20 ++++++++++++--------
src/layout/index.tsx | 2 +-
4 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/.env.example b/.env.example
index 461a930..252114d 100644
--- a/.env.example
+++ b/.env.example
@@ -1,5 +1,6 @@
-# general
+# browser
NEXT_PUBLIC_API_URL=http://localhost:3000
+NEXT_PUBLIC_SERVER_NAME="shibaac"
DATABASE_URL="mysql://root:secret@localhost:3306/shibaac"
diff --git a/src/layout/Head.tsx b/src/layout/Head.tsx
index 089804d..f47b796 100644
--- a/src/layout/Head.tsx
+++ b/src/layout/Head.tsx
@@ -1,5 +1,4 @@
import React from "react";
-
import NextHead from "next/head";
import { NextSeo } from "next-seo";
@@ -8,7 +7,7 @@ export interface HeadProps {
description?: string;
}
-const Head = ({ title = "shibaac", description = "Automatic Account Creator" }: HeadProps) => {
+const Head = ({ title, description = "Automatic Account Creator" }: HeadProps) => {
return (
<>
@@ -17,7 +16,7 @@ const Head = ({ title = "shibaac", description = "Automatic Account Creator" }:
{
const status = trpc.status.status.useQuery().data;
@@ -9,14 +10,17 @@ export const TopBar = () => {
-
-
- {status?.onlineCount ?? "..."}
-
-
- players online
-
-
+
+
+
+ {status?.onlineCount ?? "..."}
+
+
+ players online
+
+
+
+
diff --git a/src/layout/index.tsx b/src/layout/index.tsx
index 12e6bfa..aefb704 100644
--- a/src/layout/index.tsx
+++ b/src/layout/index.tsx
@@ -10,7 +10,7 @@ const Layout = ({ children }: PropsWithChildren) => {
return (
<>
-
+