Skip to content

Commit

Permalink
Updated styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Buzzec committed Sep 7, 2024
1 parent 3e9eb9c commit 533c590
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 16 deletions.
29 changes: 19 additions & 10 deletions packages/wallet-standard-test/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { createStore } from 'solid-js/store';
import { toast } from 'solid-sonner';
import ColorModeToggle from '~/components/ColorModeToggle';
import { ConnectionProvider } from '~/components/connection';
import IconAtlasA from '~/components/icons/atlas-a.svg';
import { Button } from '~/components/ui/button';
import { Toaster } from '~/components/ui/sonner';
import { WalletProxy, createWalletProxy } from '~/types';
import WalletCard from '~/WalletCard';
Expand Down Expand Up @@ -73,18 +75,25 @@ export default (() => {
<Toaster closeButton={true} />
<ColorModeScript storageType={storageManager.type} />
<ColorModeProvider storageManager={storageManager}>
<div class="border-b">
<div class="sticky top-0 z-50 border-b backdrop-blur">
<div class="container flex h-16 items-center justify-between">
<nav class="flex items-center space-x-4">
<ColorModeToggle />
</nav>
<div>
<a
onClick={() => {}}
class="cursor-pointer text-sm font-medium text-muted-foreground transition-colors hover:text-primary"
<div class="flex items-center">
<IconAtlasA class="mr-4 size-6" />
<span class={'text-2xl font-medium'}>
Star Atlas Wallet Tester
</span>
</div>
<div class={'flex items-center gap-4'}>
<Button
class="text-muted-foreground transition-colors hover:text-foreground"
variant={'link' as const}
onClick={() => window.open('https://play.staratlas.com/')}
>
Wallet
</a>
Play
</Button>
<nav class="flex items-center space-x-4">
<ColorModeToggle />
</nav>
</div>
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions packages/wallet-standard-test/src/components/icons/atlas-a.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/wallet-standard-test/src/components/ui/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { cn } from '~/lib/utils';
const Table: Component<ComponentProps<'table'>> = (props) => {
const [local, others] = splitProps(props, ['class']);
return (
<div class="relative w-full overflow-auto">
<div class="w-full overflow-auto">
<table
class={cn('w-full caption-bottom text-sm', local.class)}
{...others}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default ((props) => {
>
Sign and Send Transaction
</DialogTrigger>
<DialogContent>
<DialogContent class="bg-transparent backdrop-blur-xl">
<DialogHeader>
<DialogTitle>Sign and Send Transaction</DialogTitle>
<DialogDescription>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default ((props) => {
>
Sign Message
</DialogTrigger>
<DialogContent>
<DialogContent class="bg-transparent backdrop-blur-xl">
<DialogHeader>
<DialogTitle>Sign Message</DialogTitle>
<DialogDescription>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default ((props) => {
>
Sign Transaction
</DialogTrigger>
<DialogContent>
<DialogContent class="bg-transparent backdrop-blur-xl">
<DialogHeader>
<DialogTitle>Sign Transaction</DialogTitle>
<DialogDescription>
Expand Down
8 changes: 6 additions & 2 deletions packages/wallet-standard-test/src/features/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default ((props) => {
return (
<Popover>
<PopoverTrigger
class="h-fit w-fit p-0"
class="h-fit w-fit p-0 text-muted-foreground transition-colors hover:text-foreground"
as={Button<'button'>}
variant={'link'}
onClick={() => {
Expand All @@ -51,7 +51,11 @@ export default ((props) => {
>
{props.feature}
</PopoverTrigger>
<PopoverContent class={'w-fit'}>
<PopoverContent
class={
'backdrop z-40 w-fit bg-transparent backdrop-blur backdrop-brightness-50'
}
>
<ErrorBoundary fallback={'Error rendering feature.'}>
<Switch
fallback={
Expand Down

0 comments on commit 533c590

Please sign in to comment.