-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from OH-Fasilkom-UI/feat/gilang
Add toast
- Loading branch information
Showing
6 changed files
with
116 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import Image from "next/image"; | ||
import { Footer as BaseFooter } from "@mantine/core"; | ||
import { notifications } from '@mantine/notifications'; | ||
import Link from "next/link"; | ||
|
||
const disabled = true; | ||
|
||
const Footer = () => { | ||
|
||
return ( | ||
<section> | ||
<Image src="/background-footer.png" alt="" width={1440} height={700} layout="responsive"/> | ||
|
@@ -27,21 +31,35 @@ const Footer = () => { | |
> | ||
About Fasilkom | ||
</Link> | ||
<Link | ||
href={"/registration"} | ||
{/* <Link | ||
href={"/register"} | ||
className="hover:text-aqua-2 transition-colors duration-300 ease-out" | ||
> | ||
Registration Page | ||
</Link> | ||
</Link> */} | ||
<Link | ||
href={"/walloffame"} | ||
className="hover:text-aqua-2 transition-colors duration-300 ease-out" | ||
href={""} | ||
onClick={() => { | ||
disabled && notifications.show({ | ||
title: 'Coming soon~', | ||
message: '', | ||
color: "red" | ||
}) | ||
}} | ||
className={` transition-colors duration-300 ease-out ${disabled ? "opacity-50" : "hover:text-aqua-2"}`} | ||
> | ||
Wall of Fame | ||
</Link> | ||
<Link | ||
href={"/merchandise"} | ||
className="hover:text-aqua-2 transition-colors duration-300 ease-out" | ||
href={""} | ||
onClick={() => { | ||
disabled && notifications.show({ | ||
title: 'Coming soon~', | ||
message: '', | ||
color: "red" | ||
}) | ||
}} | ||
className={` transition-colors duration-300 ease-out ${disabled ? "opacity-50" : "hover:text-aqua-2"}`} | ||
> | ||
Merchandise | ||
</Link> | ||
|
@@ -121,7 +139,15 @@ const Footer = () => { | |
<p | ||
onClick={() => { | ||
navigator.clipboard.writeText("[email protected]") | ||
alert("Copied") | ||
notifications.show({ | ||
title: 'Copied', | ||
message: '', | ||
styles: (theme) => ({ | ||
root: { | ||
'&::before': { backgroundColor: "#24F462" }, | ||
} | ||
}) | ||
}) | ||
}} | ||
className="hover:text-aqua-2 transition-colors duration-300 ease-out flex text-white active:text-white-3 hover:cursor-grab active:cursor-grabbing" | ||
> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters