Skip to content

Commit

Permalink
Landing page redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior committed Feb 18, 2023
1 parent b3ce977 commit e628f74
Show file tree
Hide file tree
Showing 14 changed files with 631 additions and 310 deletions.
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="p-3 bg-transparent border-2 border-brightid font-semibold rounded-3xl text-xl text-white">
className="py-1 px-1 bg-transparent border border-brightOrange font-semibold rounded-xl text-lg text-brightOrange">
{`Add to Discord`->React.string}
</button>
</a>
Expand Down
33 changes: 19 additions & 14 deletions apps/web/app/components/Sidebar.js

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

25 changes: 13 additions & 12 deletions apps/web/app/components/Sidebar.res
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let make = (~isSidebarVisible, ~handleIsSidebarVisible, ~guilds, ~loadingGuilds)
let intersection = guilds->Array.map((guild: Types.oauthGuild) => {
<Menu iconShape="square" key={guild.id}>
<MenuItem
className="bg-extraDark"
className="bg-extraDark hover:bg-dark"
icon={<img
className=" bg-extraDark rounded-lg border-1 border-white" src={guild->icon}
/>}>
Expand Down Expand Up @@ -75,24 +75,25 @@ let make = (~isSidebarVisible, ~handleIsSidebarVisible, ~guilds, ~loadingGuilds)
}

<ProSidebar
className="bg-dark scrollbar-hide"
className="bg-transparent"
breakPoint="md"
onToggle={handleIsSidebarVisible}
toggled={isSidebarVisible}>
<SidebarHeader
className="p-2 flex justify-around items-center top-0 sticky bg-dark z-10 scrollbar-hide">
<InviteButton />
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"} />
</SidebarHeader>
<SidebarContent className="scrollbar-hide">
<Menu iconShape="square" key={0->Int.toString} />
<SidebarContent className=" bg-extraDark z-[-1]">
<Menu iconShape="square" key={0->Belt.Int.toString} />
{sidebarElements}
</SidebarContent>
<SidebarFooter className="bg-extraDark bottom-0 sticky scrollbar-hide list-none">
<Remix.Link to={""}>
<MenuItem>
<img src={"/assets/brightid_reversed.svg"} />
</MenuItem>
</Remix.Link>
<SidebarFooter className="bg-dark bottom-0 sticky list-none">
<div className="flex flex-col justify-around items-center py-8">
<p className="text-white font-poppins">
{"Your server is not on the list?"->React.string}
</p>
<InviteButton />
</div>
</SidebarFooter>
</ProSidebar>
}
Loading

0 comments on commit e628f74

Please sign in to comment.