style: Center main and footer elements

This commit is contained in:
Your Name (aider) committed 2025-04-28 02:17:14 +08:00
1 parent 891a203dd3
commit ccbc9f4863
6 files changed
+58 -19

No files matched your search

+18 -3
View File
@@ -50,8 +50,8 @@
</div> </div>
</div> </div>
</nav> </nav>
<main class="py-4 pb-16"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-md mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<!-- Login Form --> <!-- Login Form -->
<div class="mb-8"> <div class="mb-8">
@@ -101,7 +101,22 @@
</div> <!-- End container --> </div> <!-- End container -->
</main> </main>
<!-- Footer can be added later if needed --> <footer class="bg-bg-footer py-8 px-6 text-text-muted">
<div class="max-w-screen-lg mx-auto text-center">
<p>
Seen something today? Don’t let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p>
<div class="mt-4 text-sm">
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div>
<div class="mt-4 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div>
</div>
</footer>
<!-- Simple script to toggle mobile menu --> <!-- Simple script to toggle mobile menu -->
<script> <script>
+1 -1
View File
@@ -52,7 +52,7 @@
</nav> </nav>
<main class="py-4 pb-16 bg-bg-footer"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-xl mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<!-- Filter Container --> <!-- Filter Container -->
<div> <div>
<!-- Date Display --> <!-- Date Display -->
+1 -1
View File
@@ -52,7 +52,7 @@
</nav> </nav>
<main class="py-4 pb-16 bg-bg-footer"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-xl mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<!-- Filter Container --> <!-- Filter Container -->
<div> <div>
<!-- Date Display --> <!-- Date Display -->
+5 -5
View File
@@ -51,8 +51,8 @@
</div> </div>
</nav> </nav>
<main class="py-4 pb-16"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-xl mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<article class="flex"> <article class="flex">
<div class="mr-2"> <div class="mr-2">
<a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a> <a href="#" class="text-text-muted no-underline text-sm leading-none inline-block pt-0.5 hover:text-link-hover" title="Upvote">▲</a>
@@ -275,8 +275,8 @@
</div> </div>
</main> </main>
<footer class="bg-gray-200 py-8 px-6 text-text-muted"> <footer class="bg-bg-footer py-8 px-6 text-text-muted">
<div class="text-center"> <div class="max-w-screen-lg mx-auto text-center">
<p> <p>
Seen something today? Don't let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>. Seen something today? Don't let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p> </p>
@@ -287,7 +287,7 @@
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a> <a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div> </div>
<div class="mt-4 text-center"> <div class="mt-4 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48"> <input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div> </div>
</div> </div>
</footer> </footer>
+14 -7
View File
@@ -51,8 +51,8 @@
</div> </div>
</nav> </nav>
<main class="py-4 pb-16"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-md mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<div class="mb-8"> <div class="mb-8">
<h2 class="text-lg mb-4 text-primary">Submit a Post</h2> <h2 class="text-lg mb-4 text-primary">Submit a Post</h2>
<form> <form>
@@ -79,12 +79,19 @@
</div> </div>
</main> </main>
<footer class="bg-gray-200 py-8 px-6 text-text-muted"> <footer class="bg-bg-footer py-8 px-6 text-text-muted">
<div class="max-w-screen-lg mx-auto"> <div class="max-w-screen-lg mx-auto text-center">
<p>
Seen something today? Don’t let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p>
<div class="mt-4 text-sm"> <div class="mt-4 text-sm">
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> <a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Terms</a> <a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Contact</a> <a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div>
<div class="mt-4 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div> </div>
</div> </div>
</footer> </footer>
+19 -2
View File
@@ -51,8 +51,8 @@
</div> </div>
</nav> </nav>
<main class="py-4 pb-16"> <main class="py-4 pb-16 bg-bg-footer">
<div class="max-w-md mx-auto px-4 mt-8"> <div class="max-w-screen-lg mx-auto px-4 mt-8">
<div class="mb-8"> <div class="mb-8">
<h2 class="text-lg mb-4 text-primary">User Profile</h2> <h2 class="text-lg mb-4 text-primary">User Profile</h2>
<div class="user-profile"> <div class="user-profile">
@@ -81,6 +81,23 @@
</div> </div>
</main> </main>
<footer class="bg-bg-footer py-8 px-6 text-text-muted">
<div class="max-w-screen-lg mx-auto text-center">
<p>
Seen something today? Don’t let it go to waste. <a href="#" class="text-primary hover:underline">Submit it</a>.
</p>
<div class="mt-4 text-sm">
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Guidelines</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Tips</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">Privacy</a> |
<a href="#" class="text-text-muted mx-2 no-underline hover:underline">DMCA</a>
</div>
<div class="mt-4 text-center">
<input type="text" placeholder="Search..." class="px-3 py-2 border border-gray-300 rounded w-48 bg-bg-light text-text-default focus:outline-none focus:ring-1 focus:ring-primary">
</div>
</div>
</footer>
<script> <script>
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const menuButton = document.getElementById('menuButton'); const menuButton = document.getElementById('menuButton');