From 246886d64f77fa3dfaab13c4c88a679aedfbac57 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 5 Apr 2024 11:46:49 +0800 Subject: [PATCH] Home page (#14) * feat: home page * feat: darwinia project page * fix: fix home page select * refactor: update website title * refactor: update menu.svg fill color * refactor: update drawer brand logo --- public/images/docs.png | Bin 0 -> 3802 bytes public/images/menu.svg | 8 +-- public/images/my.svg | 6 -- public/images/projects/darwinia.png | Bin 0 -> 4989 bytes src/app/layout.tsx | 12 ++-- src/app/page.tsx | 11 +-- src/app/records/[id]/page.tsx | 12 +++- src/app/records/page.tsx | 12 +++- src/components/chain-switch.tsx | 32 +++++++++ src/components/footer.tsx | 100 ++++++++++---------------- src/components/header.tsx | 105 +++++++++++++--------------- src/components/home-page.tsx | 79 +++++++++++++++++++++ src/components/page-select.tsx | 10 +++ src/components/project-page.tsx | 18 +++++ src/components/user.tsx | 4 +- src/providers/rainbow-provider.tsx | 2 +- src/ui/drawer.tsx | 2 +- src/ui/tooltip.tsx | 2 +- tailwind.config.ts | 2 +- 19 files changed, 260 insertions(+), 157 deletions(-) create mode 100644 public/images/docs.png delete mode 100644 public/images/my.svg create mode 100644 public/images/projects/darwinia.png create mode 100644 src/components/chain-switch.tsx create mode 100644 src/components/home-page.tsx create mode 100644 src/components/page-select.tsx create mode 100644 src/components/project-page.tsx diff --git a/public/images/docs.png b/public/images/docs.png new file mode 100644 index 0000000000000000000000000000000000000000..9950d5c4511a6dce25e3339cd83968cff8c3f1c2 GIT binary patch literal 3802 zcmV<04khu4P)M$}d?#zYdT5%B`)6zBtn(DFhE z8fdvFJ{XGlCXrSIUrgEpF1)7lfkhdnXoS*(g4DMNC#FAJar-ir{6tCdGQJW!f;Lv?u#Olvv1r-dvS{BlmO#6g!{N(X7G|O zvG8E9pW$NW6UVskLBBXSl6b{BD3<4*saJE8`R)Lc%%=pPlLBVVEKl(~9*~aB_{zFi zUOC337vP~?rbFK-VE!4)I8a*Q*v6iPaqKu59n`}r>D-(7hUN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LYR6#I zekP@+^MAyfi_@% literal 0 HcmV?d00001 diff --git a/public/images/menu.svg b/public/images/menu.svg index 5228ae1ca..9577a9abe 100644 --- a/public/images/menu.svg +++ b/public/images/menu.svg @@ -1,9 +1,9 @@ - - - + + + + p-id="1462" fill="#FF0083"> diff --git a/public/images/my.svg b/public/images/my.svg deleted file mode 100644 index 7a974d3d5..000000000 --- a/public/images/my.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - diff --git a/public/images/projects/darwinia.png b/public/images/projects/darwinia.png new file mode 100644 index 0000000000000000000000000000000000000000..b8706bea7cc88ca31485dfcc96e5d0bf2de02e80 GIT binary patch literal 4989 zcmV-@6N2oCP)8K~#7F?VSg> z990#^&r<|JL_h@5AXpI_D1sme0jW`%kkCU7y?lyF$AE$$2z+z`A#`cdA@oF=ARVb9 z@T3I^3es!F^UFP#Jv;1_-M71Mlg$77&U-VnckayGx%b>t?}!+ZB$-d?rlcNIl+IV0 zOH$BdizwZmD*u+!fl9MTg$flabQpd7QHI0+o0Wc;QSLOQZTkB9-m&sS^xs6KFE=PV zMQL{}dzkbf^xkLJf1g#FLupR?|1lXDUQ?Q=&-|uTs8FH1&_TU&l8?8QzUj*EWzty| z9#;CS3^Mc{KCZN)NrjgwJ)!ho(ixnlG*CuZp+bcwFq8dXqM+Q&N{cEzX!}cwNpBhW zywUUVfDZ1D>c7>Mwvr&ZO;S2X>8vQ(wF7z`?sb^bNTn5(J|*437bHk>?@EOV6}p1R zz{;pTZ@BH(3(CH&^j_RC$z&&`eU#?5!{1gKs`MQsx`C=+S_kUj21=VMEo|56%ec46 zO0P&zABWiSr<9(Qd{A$cEFV$&w{3Ipf7EAqLn>6L&^1H`c56YoSC#(m_W!0d!kwSS z6XK*V#j;BKD}6Fm4rys;rI+pZrePA-I!gN~Eh6=y)A77>aYHrtz_}Hy1_j4o@Uj5v)V4t{6A>{Nw7oC zEX{*9enYRD6x2^2;2K_~=e)NXltnY}QaXL+6)ihOT7cF^T_1IaUTdUbG`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