From 561906af98a491898a62e021fb9440d3630bc0c3 Mon Sep 17 00:00:00 2001 From: Christopher Nascone Date: Sun, 18 Feb 2024 19:15:31 -0500 Subject: [PATCH] chore: smol tweaks to framegear (#145) --- framegear/components/Frame/Frame.tsx | 17 +++++++++++++---- framegear/components/Header/Header.tsx | 16 +++------------- framegear/package.json | 1 + framegear/tailwind.config.ts | 4 +++- framegear/yarn.lock | 10 ++++++++++ 5 files changed, 30 insertions(+), 18 deletions(-) diff --git a/framegear/components/Frame/Frame.tsx b/framegear/components/Frame/Frame.tsx index 065d53a6ba..1fc44a03cd 100644 --- a/framegear/components/Frame/Frame.tsx +++ b/framegear/components/Frame/Frame.tsx @@ -41,10 +41,19 @@ function ValidFrame({ tags }: { tags: Record }) {
{/* eslint-disable-next-line @next/next/no-img-element */} -
- {buttons.map((button) => - button ? {button.value} : null, +
+ {!!input && ( + )} +
+ {buttons.map((button) => + button ? {button.value} : null, + )} +
); @@ -61,7 +70,7 @@ function PlaceholderFrame() { return (
-
+
Get Started
diff --git a/framegear/components/Header/Header.tsx b/framegear/components/Header/Header.tsx index 893807bdea..6ce26fd406 100644 --- a/framegear/components/Header/Header.tsx +++ b/framegear/components/Header/Header.tsx @@ -1,4 +1,5 @@ import { APP_NAME } from '@/utils/constants'; +import { ArrowTopRightIcon } from '@radix-ui/react-icons'; import Link from 'next/link'; export function Header() { @@ -27,10 +28,10 @@ function Banner() {
- Farcaster Frames specs {LINK_OUT_ICON} + Farcaster Frames specs
); @@ -41,14 +42,3 @@ function AppName({ className: additionalClasses = '' }: { className?: string }) {APP_NAME} ); } - -const LINK_OUT_ICON = ( - - - -); diff --git a/framegear/package.json b/framegear/package.json index 3a6851900b..c937b23473 100644 --- a/framegear/package.json +++ b/framegear/package.json @@ -10,6 +10,7 @@ "test": "jest" }, "dependencies": { + "@radix-ui/react-icons": "^1.3.0", "jotai": "^2.6.4", "next": "14.1.0", "react": "^18", diff --git a/framegear/tailwind.config.ts b/framegear/tailwind.config.ts index dc2d776a63..7ab921f5c1 100644 --- a/framegear/tailwind.config.ts +++ b/framegear/tailwind.config.ts @@ -7,14 +7,16 @@ const config: Config = { backgroundColor: { content: '#27282B', banner: '#141519', - button: '#f3f3f3', + 'content-light': '#f3f3f3', farcaster: '#855DCD', input: '#191918', + 'input-light': '#DBDBDB', 'link-button': '#2E3137', }, borderColor: { button: '#cfd0d2', 'pallette-line': 'rgba(138, 145, 158, 0.20)', + light: '#CFD0D2', }, maxWidth: { 'layout-max': '1280px', diff --git a/framegear/yarn.lock b/framegear/yarn.lock index 1d9730bc17..0c2bd3b7e5 100644 --- a/framegear/yarn.lock +++ b/framegear/yarn.lock @@ -965,6 +965,15 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-icons@npm:^1.3.0": + version: 1.3.0 + resolution: "@radix-ui/react-icons@npm:1.3.0" + peerDependencies: + react: ^16.x || ^17.x || ^18.x + checksum: 581657680e43fd13ff06e01f963e3afa94671d4ce6c3fb126e2c70c993ab8650faa55286974032dbccfecca4db57308fb66d53771d765887e03600cddee84ae5 + languageName: node + linkType: hard + "@rushstack/eslint-patch@npm:^1.3.3": version: 1.7.2 resolution: "@rushstack/eslint-patch@npm:1.7.2" @@ -3170,6 +3179,7 @@ __metadata: version: 0.0.0-use.local resolution: "framegear@workspace:." dependencies: + "@radix-ui/react-icons": "npm:^1.3.0" "@testing-library/jest-dom": "npm:^6.4.2" "@testing-library/react": "npm:^14.2.1" "@types/node": "npm:^20"