Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI updates #362

Merged
merged 4 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified ui/src/app/favicon.ico
Binary file not shown.
9 changes: 3 additions & 6 deletions ui/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,9 @@ const addresses = flattenObject(addressBook);
export default function Home() {
return (
<>
<main className="flex min-h-screen flex-col items-center justify-start pl-4 pr-2 py-6 sm:py-10">
<h1 className="leading-4 text-center mb-5">
<div className="text-4xl font-heading font-bold">Aave</div>
<div className="text-[10px] uppercase font-semibold text-brand-500 tracking-wider">
Address Book
</div>
<main className="flex min-h-screen flex-col items-center justify-start pl-4 pr-2 py-8 sm:py-16">
<h1 className="leading-4 text-center mb-6">
<div className="text-5xl font-heading font-bold -translate-x-1">Aave</div>
</h1>
<Search addresses={addresses} />
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from "next/image";

export const Footer = () => {
return (
<div className="flex items-center justify-center text-sm text-brand-500 mt-auto">
<div className="flex items-center justify-center text-sm text-brand-500 mt-auto -translate-x-1">
<div>
<div className="mb-2 text-center">by BGD Labs</div>
<div className="flex justify-center gap-1">
Expand Down
3 changes: 2 additions & 1 deletion ui/src/components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export const Search = ({ addresses }: { addresses: Address[] }) => {
type="text"
value={search}
onChange={(e) => setSearch(e.target.value)}
className="outline-none py-3 px-11 w-full text-xl border border-4 border-transparent focus:border-blue-100 transition-all ring-inset focus:ring-1 ring-blue-300"
className="rounded-none outline-none py-3 px-11 w-full text-xl border border-4 border-transparent focus:border-blue-100 transition-all ring-inset focus:ring-1 ring-blue-300 placeholder:text-brand-500"
placeholder="Search..."
/>
</Box>
{results.length !== 0 &&
Expand Down
7 changes: 5 additions & 2 deletions ui/src/components/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SearchResult = ({ result }: { result: FuseResult<Address> }) => {
};

return (
<Box isHoverable>
<Box className="border-b-brand-900" isHoverable>
<a
className="px-3 pt-4 pb-4 flex gap-3 cursor-pointer"
href={result.item.link}
Expand All @@ -43,7 +43,10 @@ export const SearchResult = ({ result }: { result: FuseResult<Address> }) => {
{result.item.value}
</div>
</div>
<button className="ml-auto px-4 opacity-30 hover:opacity-100" onClick={handleCopyClick}>
<button
className="ml-auto px-4 opacity-30 hover:opacity-100"
onClick={handleCopyClick}
>
<span className="flex h-6 w-6 overflow-hidden">
<svg
className={cn(
Expand Down
Loading