feat: added basic responsive design

This commit is contained in:
moonleay 2023-10-19 00:00:25 +02:00
parent 1749f7f3b1
commit 4caf4eede9
3 changed files with 54 additions and 15 deletions

View file

@ -9,7 +9,7 @@ const inter = Inter({ subsets: ['latin'] })
export const metadata: Metadata = { export const metadata: Metadata = {
title: 'Lil Judd', title: 'Lil Judd',
description: 'The Discord bot with unique features.', description: 'The Splatoon Discord bot with unique features.',
} }
export default function RootLayout({ export default function RootLayout({

View file

@ -1,19 +1,38 @@
.navMenu { .navMenu {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(5px);
position: sticky; position: sticky;
background-color: #5d5d61;
border-radius: 5px; border-radius: 5px;
} }
.logo { .logo {
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 10%; border-radius: 100%;
max-width: initial; max-width: initial;
max-height: initial; max-height: initial;
} }
.navElem {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logoWtxt {
display: flex;
align-items: center;
margin: 0;
padding: 0;
}
.pad3px {
padding: 3px;
}
.footer { .footer {
align-items: center; align-items: center;
margin: 100px 1px 0 0; margin: 100px 1px 0 0;
@ -24,6 +43,10 @@
padding: 5px; padding: 5px;
} }
.footerImageNote {
font-size: 0.75rem;
}
.footerIcon { .footerIcon {
display: block; display: block;
text-align: center; text-align: center;
@ -99,6 +122,17 @@
margin: 0 auto; margin: 0 auto;
} }
.grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
}
.navElem {
grid-column: span 1;
margin: 0.5rem 0.5rem 0.5rem 0.5rem;
align-items: center;
}
.footerIcon { .footerIcon {
grid-column: span 1; grid-column: span 1;
justify-self: center; justify-self: center;

View file

@ -3,22 +3,28 @@ import styles from "./wrapping_objects.module.css"
export function NavBar(){ export function NavBar(){
return( return(
<nav className={styles.navMenu}> <nav className={styles.navMenu}>
<img className={styles.logo} src={"https://static.moonleay.net/img/lilJuddWeb/logos/logox256.png"} alt={"The Bots Logo"}/> <ul className={styles.grid}>
<a href={"/"} target={"_self"}>li'l Judd</a> <li className={styles.navElem}>
<ul> <div className={styles.logoWtxt}>
<li> <img className={`${styles.logo} ${styles.pad3px}`}
src={"https://static.moonleay.net/img/lilJuddWeb/logos/logox256.png"}
alt={"The Bots Logo"}/>
<a className={styles.pad3px} href={"/"} target={"_self"}>li'l Judd</a>
</div>
</li>
<li className={styles.navElem}>
<a href={"/features"} target={"_self"}>Features</a> <a href={"/features"} target={"_self"}>Features</a>
</li> </li>
<li> <li className={styles.navElem}>
<a href={"/how-do-i"} target={"_self"}>How do I...?</a> <a href={"/how-do-i"} target={"_self"}>How do I...?</a>
</li> </li>
<li> <li className={styles.navElem}>
<a href={"/stack"} target={"_self"}>The Stack</a> <a href={"/stack"} target={"_self"}>The Stack</a>
</li> </li>
<li> <li className={styles.navElem}>
<a href={"/about"} target={"_self"}>About</a> <a href={"/about"} target={"_self"}>About</a>
</li> </li>
<li> <li className={styles.navElem}>
<a href={"https://discord.com/api/oauth2/authorize?client_id=1024410658973941862&permissions=8&scope=bot"} <a href={"https://discord.com/api/oauth2/authorize?client_id=1024410658973941862&permissions=8&scope=bot"}
target={"_blank"}>Invite to your Discord Server</a> target={"_blank"}>Invite to your Discord Server</a>
</li> </li>
@ -35,6 +41,7 @@ export function Footer() {
<img className={styles.footerImage} src={"https://static.moonleay.net/img/lilJuddWeb/lilJudd.png"} <img className={styles.footerImage} src={"https://static.moonleay.net/img/lilJuddWeb/lilJudd.png"}
alt={"A cute Image of lil Judd <3"}/> alt={"A cute Image of lil Judd <3"}/>
<p>li'l Judd</p> <p>li'l Judd</p>
<p className={styles.footerImageNote}>Your competitive Splatoon assistant.</p>
</div> </div>
<div className={styles.footerTable}> <div className={styles.footerTable}>
<table className={styles.table}> <table className={styles.table}>
@ -119,9 +126,7 @@ export function Footer() {
</tbody> </tbody>
</table> </table>
</div> </div>
<div className={styles.footerNotice}>
<Notice/> <Notice/>
</div>
</footer> </footer>
</> </>
) )
@ -129,7 +134,7 @@ export function Footer() {
export function Notice() { export function Notice() {
return ( return (
<div> <div className={styles.footerNotice}>
<p>This website is NOT affiliated with Nintendo or any other party. All product names, logos, and brands are property of their respective owners.</p> <p>This website is NOT affiliated with Nintendo or any other party. All product names, logos, and brands are property of their respective owners.</p>
<p>li'l Judd &copy; 2023 <a href={"https://moonleay.net/"} target={"_blank"}>moonleay</a></p> <p>li'l Judd &copy; 2023 <a href={"https://moonleay.net/"} target={"_blank"}>moonleay</a></p>
</div> </div>