From 4a880b93dd9d0e11c7beca35a1bc7ebe2bd8c45c Mon Sep 17 00:00:00 2001 From: FractalParadigm Date: Sat, 15 Mar 2025 12:11:45 -0400 Subject: [PATCH] Moved header and nav to their own files - easier to edit! --- admin/index.php | 34 +++----------------------- display/header.html | 17 +++++++++++++ display/subnav.php | 20 ++++++++++++++++ index.php | 39 +++--------------------------- styles/header.css | 1 + styles/primary.css | 50 +++------------------------------------ styles/subnav.css | 39 ++++++++++++++++++++++++++++++ tournament/tournament.php | 28 +--------------------- user/user.php | 49 ++++---------------------------------- 9 files changed, 91 insertions(+), 186 deletions(-) create mode 100644 display/header.html create mode 100644 display/subnav.php create mode 100644 styles/subnav.css diff --git a/admin/index.php b/admin/index.php index 0cf2476..c78ef39 100644 --- a/admin/index.php +++ b/admin/index.php @@ -23,22 +23,8 @@ session_start();
- Rocket League logo for background -
-
- Trojan Destiny logo -
-
-

TrojanDestinyRL

-
youtube logo
-
twitch logo
-
discord logo
-
-
- Trojan Destiny logo -
-
-

+ Rocket League logo for background +

ADMIN PANEL

- +
\ No newline at end of file diff --git a/display/header.html b/display/header.html new file mode 100644 index 0000000..7dd212e --- /dev/null +++ b/display/header.html @@ -0,0 +1,17 @@ +
+
+ Trojan Destiny logo +
+
+

TrojanDestinyRL

+
youtube logo
+
twitch logo
+
discord logo
+
+
+ Trojan Destiny logo +
+
\ No newline at end of file diff --git a/display/subnav.php b/display/subnav.php new file mode 100644 index 0000000..952e231 --- /dev/null +++ b/display/subnav.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/index.php b/index.php index 11e1c34..be33947 100644 --- a/index.php +++ b/index.php @@ -20,47 +20,14 @@ session_start();
- Rocket League logo for background -
-
- Trojan Destiny logo -
-
-

TrojanDestinyRL

-
youtube logo
-
twitch logo
-
discord logo
-
-
- Trojan Destiny logo -
-
-

+ Rocket League logo for background +

Trojan's Trophy Room

Giveaway Disclaimer

- +
\ No newline at end of file diff --git a/styles/header.css b/styles/header.css index 73478ca..294a1d8 100644 --- a/styles/header.css +++ b/styles/header.css @@ -8,6 +8,7 @@ justify-content: center; margin: auto; font-size: 1.5em; + margin-bottom: 2%; } #headerLeft { diff --git a/styles/primary.css b/styles/primary.css index 5c51cf6..f89e7c1 100644 --- a/styles/primary.css +++ b/styles/primary.css @@ -4,6 +4,9 @@ /* Import Header */ @import url('/styles/header.css'); +/* Sub-Nav */ +@import url('/styles/subnav.css'); + /* Line break for flex layout */ .newLine { width: 100%; @@ -157,53 +160,6 @@ For upper/primary controls } -/* - SUB-NAVIGATION - -For all the things at the bottom of the page; log in/out, 'my account', etc. - -*/ - - -.subNav { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - gap: 2%; - padding: 5px; - padding-left: 15px; - padding-right: 15px; - font-size: small; -} - -.subNavLink { - border: 1px solid rgb(0, 0, 255); - border-radius: 3px; - box-shadow: 0px 2px 4px; - text-decoration: none; - color: black; - padding: 5px; - padding-left: 15px; - padding-right: 15px; - text-align: center; - align-content: center; - width: 80px; - height: 45px; -} - -.subNav a { - box-shadow: 0px 2px 4px; -} -.subNav a:hover { - color: black; - background-color: rgba(255, 165, 0, .6); -} -.subNav a:active { - box-shadow: 0px 0px 2px; - transform: translateY(2px); -} - .submitButton input[type="submit"] { margin: auto; diff --git a/styles/subnav.css b/styles/subnav.css new file mode 100644 index 0000000..b5f19eb --- /dev/null +++ b/styles/subnav.css @@ -0,0 +1,39 @@ +.subNav { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + gap: 2%; + padding: 5px; + padding-left: 15px; + padding-right: 15px; + font-size: small; + margin-top: 3%; +} + +.subNavLink { + border: 1px solid rgb(0, 0, 255); + border-radius: 3px; + box-shadow: 0px 2px 4px; + text-decoration: none; + color: black; + padding: 5px; + padding-left: 15px; + padding-right: 15px; + text-align: center; + align-content: center; + width: 80px; + height: 45px; +} + +.subNav a { + box-shadow: 0px 2px 4px; +} +.subNav a:hover { + color: black; + background-color: rgba(255, 165, 0, .6); +} +.subNav a:active { + box-shadow: 0px 0px 2px; + transform: translateY(2px); +} diff --git a/tournament/tournament.php b/tournament/tournament.php index cebffa3..196b601 100644 --- a/tournament/tournament.php +++ b/tournament/tournament.php @@ -127,33 +127,7 @@ if (isset($tourneyResults)) {

- + diff --git a/user/user.php b/user/user.php index 55d43c1..8585e10 100644 --- a/user/user.php +++ b/user/user.php @@ -54,22 +54,8 @@ try { // Try opening the SQL database connection
- Rocket League logo for background -
-
- Trojan Destiny logo -
-
-

TrojanDestinyRL

-
youtube logo
-
twitch logo
-
discord logo
-
-
- Trojan Destiny logo -
-
-

+ Rocket League logo for background + "); @@ -81,35 +67,8 @@ try { // Try opening the SQL database connection echo "

 

"; echo "
"; } - ?> - - + ?> + \ No newline at end of file