Skip to content

Commit

Permalink
New Layout + Page structure (#47)
Browse files Browse the repository at this point in the history
* Update navbar

* Add trade page w/ new layout

* Add recent swaps to explorer page

* Add swaps component

* Add PairSelector component

* Remove neon style from loader

* Fix depth chart

* Cleanup code

* Remove .vscode from git

* Add .vscode to gitignore

* Add redirect from / to /trade
  • Loading branch information
JasonMHasperhoven authored Sep 10, 2024
1 parent d16150b commit 11df3ae
Show file tree
Hide file tree
Showing 26 changed files with 1,473 additions and 356 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

# misc
.DS_Store
.vscode

# debug
npm-debug.log*
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@penumbra-zone/ui": "^9.0.0",
"@penumbra-zone/wasm": "^26.2.0",
"@radix-ui/react-icons": "^1.3.0",
"@styled-icons/octicons": "^10.47.0",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"bech32": "^2.0.0",
Expand All @@ -48,6 +49,7 @@
"react": "^18.3.1",
"react-chartjs-2": "^5.2.0",
"react-dom": "^18.3.1",
"react-outside-click-handler": "^1.3.0",
"sharp": "^0.33.5",
"webpack": "^5.94.0",
"zod": "^3.23.8"
Expand All @@ -61,6 +63,7 @@
"@types/pg": "^8.11.8",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/react-outside-click-handler": "^1.3.3",
"babel-loader": "^9.1.3",
"eslint": "8.57.0",
"eslint-config-next": "14.2.3",
Expand Down
130 changes: 127 additions & 3 deletions pnpm-lock.yaml

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

54 changes: 12 additions & 42 deletions src/components/blockTimestamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,48 +30,18 @@ const BlockTimestampView: FC<BlockTimestampProps> = ({
timestamp,
}) => {
return (
<>
<HStack>
<Text
fontSize="xs"
style={{
color: "var(--charcoal-tertiary-blended)",
fontSize: "small",
fontFamily: "monospace",
}}
>
Block{" "}
</Text>
<Text>
<a
href={`/block/${blockHeight}`}
target="_blank"
rel="noreferrer"
style={{
textDecoration: "underline",
color: "var(--charcoal-tertiary-blended)",
display: "flex",
fontSize: "small",
fontFamily: "monospace",
}}
>
{blockHeight}
</a>
</Text>
</HStack>
<Text
fontSize="xs"
style={{
color: "var(--charcoal-tertiary-blended)",
display: "flex",
fontSize: "small",
fontFamily: "monospace",
}}
>
{" "}
{formatTimestampOrDefault(timestamp)}
</Text>
</>
<Text
fontSize="xs"
style={{
color: "var(--light-grey)",
display: "flex",
fontSize: "small",
fontFamily: "monospace",
}}
>
{" "}
{formatTimestampOrDefault(timestamp)}
</Text>
);
};

Expand Down
Loading

0 comments on commit 11df3ae

Please sign in to comment.