Skip to content

Commit

Permalink
change button colour on hover on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Aug 4, 2021
1 parent 371a94d commit b9d377c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/bot/src/components/Navbar.tsx
Expand Up @@ -93,7 +93,7 @@ export default function Navbar() {
</div>
) : (
<button
className="text-white px-2 py-1 mx-2 md:ml-auto md:mx-0 bg-blurple rounded-md shadow-md flex flex-row justify-center items-center gap-2 duration-150 hover:bg-lighter-blurple focus:outline-none mt-6 md:mt-0"
className="text-white px-2 py-1 mx-2 md:ml-auto md:mx-0 rounded-md shadow-md flex flex-row justify-center items-center gap-2 bg-blurple hover:bg-[#414AB9] transition-colors duration-100 focus:outline-none mt-6 md:mt-0"
onClick={() => window.open(`${API_BASE_URL}/auth`, '_self')}
>
Sign in
Expand Down
23 changes: 17 additions & 6 deletions packages/bot/src/pages/index.tsx
Expand Up @@ -4,6 +4,16 @@ import Link from 'next/link';
import Showcase from '../components/Showcase';
import { showcases } from '../utils/constants';

interface ButtonData {
path: string;
text: string;
}

const buttons: ButtonData[] = [
{ path: '/invite', text: 'Invite the bot' },
{ path: '/guilds', text: 'Go to Dashboard' },
];

export default function Home() {
return (
<div className="bg-discord-dark min-h-screen flex items-center flex-col">
Expand All @@ -17,12 +27,13 @@ export default function Home() {
</p>

<div className="flex flex-row justify-center items-center gap-4">
<Link href="/invite">
<a className="w-40 px-3 py-2 bg-blurple rounded-md text-white flex justify-center">Invite the bot</a>
</Link>
<Link href="/guilds">
<a className="w-40 px-3 py-2 bg-blurple rounded-md text-white flex justify-center">Go to Dashboard</a>
</Link>
{buttons.map(({ path, text }, i) => (
<Link href={path} key={i}>
<a className="w-40 px-3 py-2 bg-blurple hover:bg-[#414AB9] transition-colors duration-100 rounded-md text-white flex justify-center">
{text}
</a>
</Link>
))}
</div>
</header>

Expand Down

2 comments on commit b9d377c

@vercel
Copy link

@vercel vercel bot commented on b9d377c Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pepe-bot – ./packages/bot

pepemanager.com
pepe-bot-git-main-almeidx.vercel.app
pepe-bot-almeidx.vercel.app

@vercel
Copy link

@vercel vercel bot commented on b9d377c Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pepe-main – ./packages/main

pepe-main-git-main-almeidx.vercel.app
pepe-is.life
pepe-main-almeidx.vercel.app

Please sign in to comment.