Skip to content

Commit

Permalink
Dama Landing Page Design
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior committed Feb 21, 2023
1 parent e628f74 commit f241f66
Show file tree
Hide file tree
Showing 13 changed files with 305 additions and 174 deletions.
2 changes: 1 addition & 1 deletion apps/web/app/components/DiscordLoginButton.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/web/app/components/DiscordLoginButton.res
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@react.component
let make = (~label) => {
<Remix.Form action={`/auth/discord`} method={#post}>
<button className="w-full p-6 bg-discord font-bold rounded-xl text-2xl text-white">
<button
className="w-full p-6 border-2 border-discord text-discord bg-transparent font-bold rounded-xl text-2xl hover:bg-discord hover:text-white">
{label->React.string}
</button>
</Remix.Form>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/components/InviteButton.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/web/app/components/InviteButton.res
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let make = (~className: option<string>=?) => {
target="_blank"
className={className->Option.getWithDefault("")}>
<button
className="py-1 px-1 bg-transparent border border-brightOrange font-semibold rounded-xl text-lg text-brightOrange">
className="py-1 px-2 bg-transparent border border-brightOrange font-semibold rounded-xl text-lg text-brightOrange hover:text-white hover:bg-brightOrange">
{`Add to Discord`->React.string}
</button>
</a>
Expand Down
11 changes: 7 additions & 4 deletions apps/web/app/components/Sidebar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions apps/web/app/components/Sidebar.res
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ let make = (~isSidebarVisible, ~handleIsSidebarVisible, ~guilds, ~loadingGuilds)
toggled={isSidebarVisible}>
<SidebarHeader
className="flex top-0 sticky bg-inherit z-10 justify-center items-center border-b border-b-black backdrop-blur-3xl ">
<img className="w-40" src={"/assets/brightid_reversed.svg"} />
<Remix.Link to="">
<img className="w-40" src={"/assets/brightid_reversed.svg"} />
</Remix.Link>
</SidebarHeader>
<SidebarContent className=" bg-extraDark z-[-1]">
<Menu iconShape="square" key={0->Belt.Int.toString} />
{sidebarElements}
</SidebarContent>
<SidebarFooter className="bg-dark bottom-0 sticky list-none">
<div className="flex flex-col justify-around items-center py-8">
<div className=" flex flex-col justify-around items-center py-8 gap-3">
<p className="text-white font-poppins">
{"Your server is not on the list?"->React.string}
</p>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/components/SidebarToggle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/web/app/components/SidebarToggle.res
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@react.component
let make = (~handleToggleSidebar, ~maybeUser) => {
let make = (~handleIsSidebarVisible, ~maybeUser) => {
let visibility = maybeUser->Option.isSome ? "visible" : "invisible"
<div
className={`${visibility} md:hidden cursor-pointer w-12 h-12 bg-dark text-center text-white rounded-full flex justify-center items-center font-xl`}
onClick={_ => handleToggleSidebar(true)}>
onClick={_ => handleIsSidebarVisible(true)}>
<ReactIcons.FaBars size={30} />
</div>
}
Loading

0 comments on commit f241f66

Please sign in to comment.