diff --git a/README.md b/README.md index 1fb6bb9..5c444cc 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,3 @@ Big props to the squad for bringing the vision to life. πŸ™Œ - **Phase 4:** Final Launch πŸš€ ## πŸ“’ Updates - -Follow the repo for the latest commits, sneak peeks, and chaos. -> *Spoiler: it’s gonna be πŸ”₯.* - ---- - diff --git a/UML-Diagram.png b/UML-Diagram.png new file mode 100644 index 0000000..e05ee79 Binary files /dev/null and b/UML-Diagram.png differ diff --git a/public/admin/adminContactDashboard.php b/public/admin/adminContactDashboard.php index 71a1058..a19cc94 100644 --- a/public/admin/adminContactDashboard.php +++ b/public/admin/adminContactDashboard.php @@ -2,16 +2,15 @@ // needed to load the database stuff variables require_once("../php/connect.php"); -$host = $_ENV['DB_HOST']; -$user = $_ENV['DB_USER']; -$pass = $_ENV['DB_PASS']; -$dbname = $_ENV['DB_NAME']; -$port = $_ENV['DB_PORT']; + try { - $conn = new PDO("mysql:host=$host;port=$port;dbname=$dbname", $user, $pass); - $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +global $conn; + if (!$conn) { + var_dump($_ENV); // Check if .env is loaded + die("Database connection is not established."); + } // Handle deletion if (isset($_POST['delete'])) { $contactus_id = $_POST['contactus_id']; @@ -59,6 +58,7 @@ + diff --git a/public/admin/adminResults.php b/public/admin/adminResults.php index 8c0b9e5..97c946b 100644 --- a/public/admin/adminResults.php +++ b/public/admin/adminResults.php @@ -23,7 +23,7 @@ $stmt = $conn->prepare("INSERT INTO MatchResults (game_title, winner, score, match_type, match_date) VALUES (?, ?, ?, ?, ?)"); $stmt->execute([$game_title, $winner, $score, $match_type, $match_date]); - // Redirect to avoid form re-submission on page reload + // Redirect so it doesnt re-sends the data on page reload header("Location: " . $_SERVER['REQUEST_URI']); exit(); diff --git a/public/css/style.css b/public/css/style.css index 342ef56..a6af189 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -915,3 +915,78 @@ svg#freepik_stories-404-error-with-portals.animated #freepik--character-part-1-- visibility: visible; pointer-events: auto; } + + +/* Tablet (≀ 991px) */ +@media (max-width: 991px) { + .contactus { + flex-direction: column; + align-items: center; + height: auto; + padding: 2rem 1rem; + } + + .contactus-container { + width: 100%; + margin-bottom: 1.5rem; + } + + .members { + flex-wrap: wrap; + justify-content: center; + gap: 1rem; + } + + .member { + width: 45%; + } + + .cards { + flex-direction: column; + align-items: center; + gap: 2rem; + } + + .card { + width: 90%; + height: auto; + transform: none !important; + filter: none !important; + } + } + + /* Mobile (≀ 600px) */ + @media (max-width: 600px) { + header { + flex-direction: column; + align-items: center; + } + + header nav { + flex-direction: column; + gap: 0.5rem; + } + + .member { + width: 90%; + } + + .btn-main { + padding: 0.75rem 1.5rem; + font-size: 0.9rem; + } + + .join h2 { + font-size: 1.5rem; + } + + .join p { + font-size: 1rem; + } + + .admincontact table { + font-size: 0.8rem; + word-break: break-word; + } + } + \ No newline at end of file diff --git a/public/html/agenda.php b/public/html/agenda.php index 8c7b160..c53dbac 100644 --- a/public/html/agenda.php +++ b/public/html/agenda.php @@ -13,30 +13,21 @@ BLD Charity Speedrun Showdown - - ADD DESCRIPTION HERE - Sponsor Run / Charity Event July 13, 2025 Annual Bloodline BBQ Bash - - ADD DESCRIPTION HERE Community Meet-Up / BBQ August 24, 2025 BLD 2v2 Ultimate Showdown - - ADD DESCRIPTION HERE Tournament (Valorant / CS2 / Rocket League) October 5–7, 2025 - diff --git a/public/images/Los_Angeles_downtown_banner.jpg b/public/images/Los_Angeles_downtown_banner.jpg index 989a125..e62fed2 100644 Binary files a/public/images/Los_Angeles_downtown_banner.jpg and b/public/images/Los_Angeles_downtown_banner.jpg differ diff --git a/public/images/background-rotated.jpg b/public/images/background-rotated.jpg index 99285ce..10061d5 100644 Binary files a/public/images/background-rotated.jpg and b/public/images/background-rotated.jpg differ diff --git a/public/images/background.jpg b/public/images/background.jpg index 99285ce..10061d5 100644 Binary files a/public/images/background.jpg and b/public/images/background.jpg differ diff --git a/public/images/news/BLD-PARTNERSHIP-razer.png b/public/images/news/BLD-PARTNERSHIP-razer.png index 7cf1648..1ad56bb 100644 Binary files a/public/images/news/BLD-PARTNERSHIP-razer.png and b/public/images/news/BLD-PARTNERSHIP-razer.png differ diff --git a/public/images/news/BLD-vct-won.png b/public/images/news/BLD-vct-won.png index d1bd081..650f08c 100644 Binary files a/public/images/news/BLD-vct-won.png and b/public/images/news/BLD-vct-won.png differ diff --git a/public/images/news/cubert-academy.png b/public/images/news/cubert-academy.png index b11e36d..3cb92c9 100644 Binary files a/public/images/news/cubert-academy.png and b/public/images/news/cubert-academy.png differ diff --git a/public/images/news/worldcuppartner.jpg b/public/images/news/worldcuppartner.jpg index 9a5f926..a6df8c4 100644 Binary files a/public/images/news/worldcuppartner.jpg and b/public/images/news/worldcuppartner.jpg differ diff --git a/public/images/player1.jpg b/public/images/player1.jpg index 468a56d..cd5242f 100644 Binary files a/public/images/player1.jpg and b/public/images/player1.jpg differ diff --git a/public/images/player2.jpg b/public/images/player2.jpg index 6e0a8c4..b7be8a6 100644 Binary files a/public/images/player2.jpg and b/public/images/player2.jpg differ diff --git a/public/images/player3.jpg b/public/images/player3.jpg index dba7049..79b1fe1 100644 Binary files a/public/images/player3.jpg and b/public/images/player3.jpg differ diff --git a/public/includes/header.php b/public/includes/header.php index d07ed99..1a70cbc 100644 --- a/public/includes/header.php +++ b/public/includes/header.php @@ -1,7 +1,7 @@ - + @@ -19,6 +19,7 @@ +