Skip to content

Commit

Permalink
Merge branch 'deployer-conversion-1' into update-deployer-subnav
Browse files Browse the repository at this point in the history
  • Loading branch information
noahlitvin authored Jan 6, 2025
2 parents f8c5bf5 + 31c7b25 commit 2269852
Show file tree
Hide file tree
Showing 40 changed files with 2,535 additions and 3,131 deletions.
1 change: 0 additions & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
"nextjs-toploader": "^1.6.12",
"pako": "^2.1.0",
"react": "^18.2.0",
"react-code-blocks": "^0.1.6",
"react-diff-view": "^3.1.0",
"react-dom": "^18.2.0",
"react-feather": "^2.0.10",
Expand Down
47 changes: 0 additions & 47 deletions packages/website/src/components/Alert.tsx

This file was deleted.

68 changes: 0 additions & 68 deletions packages/website/src/components/Card.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions packages/website/src/components/ChainSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const ChainButton = ({
</div>
{connected ? (
<span
className="text-sm text-emerald-400 font-medium uppercase tracking-wider font-['var(--font-miriam)']"
className="text-sm text-emerald-400 font-medium uppercase tracking-wider text-mono"
style={{ textShadow: '0px 0px 4px #00ff00' }}
>
Connected
</span>
) : switching ? (
<span
className="text-sm text-yellow-400 font-medium uppercase tracking-wider font-['var(--font-miriam)']"
className="text-sm text-yellow-400 font-medium uppercase tracking-wider text-mono"
style={{ textShadow: '0px 0px 4px #ffff00' }}
>
Confirm in wallet
Expand Down Expand Up @@ -109,7 +109,7 @@ const ChainSelectorModal = ({

return (
<Dialog open={isOpen} onOpenChange={onClose}>
<DialogContent className="bg-zinc-900 text-white border-zinc-700 max-h-[50vh] overflow-auto">
<DialogContent className="max-h-[50vh] overflow-auto border-border">
<DialogHeader>
<DialogTitle>Select Chain</DialogTitle>
</DialogHeader>
Expand Down
41 changes: 29 additions & 12 deletions packages/website/src/components/ClipboardButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FC, useState } from 'react';
import { Button } from '@/components/ui/button';
import { Check, Copy } from 'react-feather';
import { motion, AnimatePresence } from 'framer-motion';

interface ClibpboardButtonProps {
text: string;
Expand All @@ -20,21 +21,37 @@ export const ClipboardButton: FC<ClibpboardButtonProps> = ({
}

return (
<>
<Button
size="icon"
variant="ghost"
className={`flex-shrink-0 h-7 w-7 bg-background border border-border absolute right-3 ${className}`}
onClick={copyToClipboard}
>
<Button
size="icon"
variant="ghost"
className={`flex-shrink-0 h-7 w-7 bg-background border border-border absolute right-1 ${className}`}
onClick={copyToClipboard}
>
<AnimatePresence mode="wait" initial={false}>
{hasCopied ? (
<Check className="h-3.5 w-3.5 text-green-500" />
<motion.div
key="check"
initial={{ scale: 0.5, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
exit={{ scale: 0.5, opacity: 0 }}
transition={{ duration: 0.15 }}
>
<Check className="h-3.5 w-3.5 text-green-500" />
</motion.div>
) : (
<Copy className="h-3.5 w-3.5 text-muted-foreground" />
<motion.div
key="copy"
initial={{ scale: 0.5, opacity: 0 }}
animate={{ scale: 1, opacity: 1 }}
exit={{ scale: 0.5, opacity: 0 }}
transition={{ duration: 0.15 }}
>
<Copy className="h-3.5 w-3.5 text-muted-foreground" />
</motion.div>
)}
<span className="sr-only">Copy command</span>
</Button>
</>
</AnimatePresence>
<span className="sr-only">Copy command</span>
</Button>
);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/components/snippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Snippet = ({ ...props }: React.HTMLAttributes<HTMLPreElement>) => {
}

return (
<div className="mt-3 first:mt-0 relative rounded-md font-mono text-sm flex items-start border border-border overflow-hidden bg-[#0d1117]">
<div className="relative rounded-md font-mono text-sm flex items-start border border-border overflow-hidden bg-[#0d1117]">
<div
data-section="code"
className="w-full overflow-x-auto"
Expand Down
141 changes: 0 additions & 141 deletions packages/website/src/features/Console/Console.tsx

This file was deleted.

Loading

0 comments on commit 2269852

Please sign in to comment.