diff --git a/public/css/styles.css b/public/css/styles.css index 08a8732..bf69841 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -209,4 +209,42 @@ img.yuvarlak { img.logo { width: 266px; height: 75px; -} \ No newline at end of file +} + + +/* +***************************** + FOOTER +***************************** +*/ +.footer { + position: fixed; + left: 0; + bottom: 0; + width: 100%; + background-color: var(--col-8); + color: white; + text-align: center; +} + +.footer p { + + font-size: 16px; + color: white; + +} + +/* +***************************** + ADMIN TEXT +***************************** +*/ +.admin { + position: fixed; + left: 0; + top: 0; + width: 100%; + background-color: var(--col-12); + color: white; + text-align: center; +} diff --git a/public/js/scripts.js b/public/js/scripts.js index 4076f41..2e0c071 100644 --- a/public/js/scripts.js +++ b/public/js/scripts.js @@ -1,2 +1,2 @@ const admin = () => document.getElementById("admin").innerHTML = - '

You are admin, and you can go your page


'; + '

You are admin, and you can go your page


'; diff --git a/views/admin.ejs b/views/admin.ejs index 9f5f4c1..41056a0 100644 --- a/views/admin.ejs +++ b/views/admin.ejs @@ -1,66 +1,28 @@ - - - - - Admin panel! - - - +<%- include("extra/header", {title: "Admin panel!" }) %> - + + <%- include("extra/navbar", {user}) %> - +

Welcome to the admin panel of the forum, <%= user.name %>!

+
+

Write an ID for make admin:

+ +
+ +
- + + <%- include("extra/footer") %> - - - - - - - -
- - - - - -

Welcome to the admin panel of the forum, <%= user.name %>!

- -
-

Write an ID for make admin:

- -
- -
- - - - + \ No newline at end of file diff --git a/views/error.ejs b/views/error.ejs index 0a9d20f..45d9497 100644 --- a/views/error.ejs +++ b/views/error.ejs @@ -31,7 +31,7 @@ - + <%- include("extra/footer") %> \ No newline at end of file diff --git a/views/extra/footer.ejs b/views/extra/footer.ejs new file mode 100644 index 0000000..6d72306 --- /dev/null +++ b/views/extra/footer.ejs @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/views/extra/header.ejs b/views/extra/header.ejs new file mode 100644 index 0000000..5b3d6a4 --- /dev/null +++ b/views/extra/header.ejs @@ -0,0 +1,10 @@ + + + + + <%= title ?? "Akf-forum" %> + + + + + \ No newline at end of file diff --git a/views/extra/navbar.ejs b/views/extra/navbar.ejs new file mode 100644 index 0000000..6f62816 --- /dev/null +++ b/views/extra/navbar.ejs @@ -0,0 +1,31 @@ + + + + + +
+ + + + + + + +
+ + \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index dc5b7ec..f35b824 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,54 +1,11 @@ - - - - - Main page! - - - - - - - - +<%- include("extra/header", {title: "Main page!" }) %> -
- - - - - - - - - - - - - -
- - - + <%- include("extra/navbar", {user}) %> +

Welcome, > <%= user.name %> alt=<%= user.name %>> @@ -84,7 +41,8 @@ - + <%- include("extra/footer") %> + \ No newline at end of file diff --git a/views/login.ejs b/views/login.ejs index a091859..77d4ca5 100644 --- a/views/login.ejs +++ b/views/login.ejs @@ -1,17 +1,7 @@ - - - - - LOGIN - - - - - - + <%- include("extra/header", {title: "Login page!" }) %> @@ -30,7 +20,7 @@ - + <%- include("extra/footer") %> \ No newline at end of file diff --git a/views/openThread.ejs b/views/openThread.ejs index 19c31b0..a742fbf 100644 --- a/views/openThread.ejs +++ b/views/openThread.ejs @@ -1,70 +1,28 @@ - - - - - Open Thread - - - +<%- include("extra/header", {title: "Open Thread!" }) %> - + - - - - -
- - - - - - - - - - + <%- include("extra/navbar", {user}) %> -
+
+

Title:

+ - +
+

Content:

+ + +
+ +
- -
-

Title:

- - -
-

Content:

- - -
- -
- - - - + <%- include("extra/footer") %> + \ No newline at end of file diff --git a/views/register.ejs b/views/register.ejs index ee28b07..031beea 100644 --- a/views/register.ejs +++ b/views/register.ejs @@ -1,16 +1,8 @@ - - - - - Register - - - - +<%- include("extra/header", {title: "Register!" }) %> @@ -38,7 +30,7 @@ - + <%- include("extra/footer") %> \ No newline at end of file diff --git a/views/thread.ejs b/views/thread.ejs index 7c1ceb6..97f236a 100644 --- a/views/thread.ejs +++ b/views/thread.ejs @@ -1,99 +1,72 @@ - - - - - - <%= thread.title %> - - - - +<%- include("extra/header", {title: "Main page!" }) %> - + + + <%- include("extra/navbar", {user}) %> + + +

+ <%= thread.title %> +

- - -
- - - - -