Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Improve footer UI/UX #18

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,17 @@ input:focus, textarea:focus, select:focus {
outline: 2px solid var(--primary);
outline-offset: 2px;
}

/* Footer positioning */
.min-h-screen {
display: flex;
flex-direction: column;
}

main {
flex: 1;
}

.footer {
margin-top: auto;
}
25 changes: 22 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,16 @@ function App() {
</option>
))}
</select>
<a
href="https://buymeacoffee.com/himanshurajora"
target="_blank"
className="btn btn-warning btn-sm"
>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" className="mr-2">
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4v-2z"/>
</svg>
Buy me a coffee
</a>
<a
href="https://github.com/himanshurajora/ShareMyText/issues"
target="_blank"
Expand Down Expand Up @@ -392,9 +402,18 @@ function App() {
</main>

{/* Footer */}
<footer className="footer footer-center p-4 bg-base-200 text-base-content">
<div>
<p>Made with ❤️ by <a href="https://github.com/himanshurajora" className="text-primary hover:underline">@himanshurajora</a></p>
<footer className="footer footer-center p-4 bg-base-200 text-base-content mt-auto">
<div className="flex flex-col items-center gap-2">
<p className="flex items-center gap-2">
Made with ❤️ by{" "}
<a
href="https://github.com/himanshurajora"
className="text-primary hover:underline"
>
@himanshurajora
</a>
</p>

</div>
</footer>
</div>
Expand Down
Loading