From b80f7ac52d3b672bda9b989b592a6acc1fc41652 Mon Sep 17 00:00:00 2001 From: Akif9748 Date: Sun, 28 Aug 2022 20:04:54 +0300 Subject: [PATCH] Main page is ok --- public/css/user.css | 5 ++++- views/index.ejs | 48 ++++++++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/public/css/user.css b/public/css/user.css index 55b4b89..ad1942a 100644 --- a/public/css/user.css +++ b/public/css/user.css @@ -21,7 +21,10 @@ width: 100%; } -.box-title, +.box-title{ + color: #4d18e6; + font-weight: 300; +} .box-value { color: #606060; font-weight: 300; diff --git a/views/index.ejs b/views/index.ejs index f41f5e4..bdc7ed0 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -9,43 +9,47 @@ <%- include("extra/navbar") %> - <% if (user) { %> -

Welcome,
<%= user.name %> -
-
-
- You can log out of the site here: - LOGOUT -

-
-<% } else { %> -

Welcome, Guest!
You can press the button to register: - REGISTER - -

- <% } %> -

Statistics:

-
+ <% if (user) { %> +

Welcome, <%= user.name %> +
+ +
+ You can log out of the site here: + +

+ + LOGOUT +
+ <% } else { %> +

Welcome, Guest!
You can press the button to register: + REGISTER + +

+ <% } %> + +

Statistics:

+

Message count:

-

<%= messages %>

+

<%= messages %>

User count:

-

<%= users %>

+

<%= users %>

+

Thread count:

-

<%= threads %>

+

<%= threads %>

-

Memory usage:

-

<%= mem.toFixed(2); %> MB

+

Memory usage:

+

<%= mem.toFixed(2); %> MB