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

[Tenscan] address and tx placeholder page for MetaMask redirect link #1705

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
23 changes: 23 additions & 0 deletions tools/obscuroscan_v3/frontend/pages/address/[address].tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Layout from "@/src/components/layouts/default-layout";
import EmptyState from "@/src/components/modules/common/empty-state";
import { Button } from "@/src/components/ui/button";
import { useRouter } from "next/router";
import React from "react";

const AddressDetails = () => {
// const { query } = useRouter();
// const { address } = query;
Jennievon marked this conversation as resolved.
Show resolved Hide resolved

return (
<Layout>
<EmptyState
title="Address Details"
description="Coming soon..."
image="/assets/images/clock.png"
action={<Button>Go Home</Button>}
Jennievon marked this conversation as resolved.
Show resolved Hide resolved
/>
</Layout>
);
};

export default AddressDetails;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 13 additions & 8 deletions tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,43 @@
import { socialLinks, version } from "@/src/lib/constants";
import Link from "next/link";
import { socialLinks, version } from "../../lib/constants";
import {
GitHubLogoIcon,
TwitterLogoIcon,
DiscordLogoIcon,
} from "@radix-ui/react-icons";
import Link from "next/link";

export default function Footer() {
return (
<div className="border-t px-2">
<div className="flex h-16 items-center px-4">
<div className="flex-1 flex items-center space-x-4">
<div className="border-t p-2">
<div className="flex h-16 items-center justify-between px-4 flex-wrap">
<div className="flex items-center space-x-4 pr-2">
<a
href={socialLinks.github}
aria-label="GitHub"
className="text-muted-foreground hover:text-primary transition-colors"
>
<GitHubLogoIcon />
</a>
<a
href={socialLinks.twitter}
aria-label="Twitter"
className="text-muted-foreground hover:text-primary transition-colors"
>
<TwitterLogoIcon />
</a>
<a
href={socialLinks.discord}
aria-label="Discord"
className="text-muted-foreground hover:text-primary transition-colors"
>
<DiscordLogoIcon />
</a>
</div>
<div className="flex items-center justify-center space-x-4 pr-2">
<h3 className="text-xs text-muted-foreground">
Version: {version || "Unknown"}
</h3>
</div>
<div className="flex items-center space-x-4">
<Link
href="/docs/privacy"
Expand All @@ -43,9 +51,6 @@ export default function Footer() {
>
Terms
</Link>
<div className="text-sm font-medium text-muted-foreground">
Version: {version}
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,26 @@ const EmptyState = ({
title,
description,
icon,
image,
action,
}: {
title?: string;
description?: string;
icon?: React.ReactNode;
image?: string;
action?: React.ReactNode;
}) => {
return (
<div className="flex flex-col items-center justify-center h-full">
<div className="flex flex-col items-center justify-center space-y-4">
{icon && <div className="w-24 h-24">{icon}</div>}
{image && (
<img
src={image}
alt="Empty state"
Jennievon marked this conversation as resolved.
Show resolved Hide resolved
className="w-24 h-24 rounded-full"
/>
)}
{title && (
<h3 className="text-2xl font-semibold leading-none tracking-tight">
{title}
Expand Down
Loading