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

UI Polish #1815

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const components: Component[] = [
name: 'Transaction',
component: TransactionDemo,
code: transactionDemoCode,
description: 'Trigger onchain transactions and sponsor them with Paymaster',
description: 'Trigger onchain transactions and sponsor them with Paymaster.',
},
{
name: 'Fund',
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/(base-org)/builders/agentkit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function AgentKit() {
target="_blank"
iconSize={16}
eventName="agentkit-fork-template"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 font-medium"
>
Fork a template
</ButtonWithLinkAndEventLogging>
Expand All @@ -57,7 +57,7 @@ export default function AgentKit() {
target="_blank"
variant={ButtonVariants.SecondaryOutline}
eventName="agentkit-docs"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
>
<div className="flex items-center justify-between gap-6">
<span>Docs</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(base-org)/builders/minikit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function AgentKit() {
cta={
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.Secondary}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
href={GET_STARTED_URL}
target="_blank"
eventName="minikit-get-started"
Expand Down
6 changes: 3 additions & 3 deletions apps/web/app/(base-org)/builders/smart-wallet/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default async function BaseWallet() {
<ButtonWithLinkAndEventLogging
target="_blank"
variant={ButtonVariants.Secondary}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
eventName="wallet-start-building"
href="https://docs.base.org/identity/smart-wallet/introduction/install-web"
>
Expand Down Expand Up @@ -109,15 +109,15 @@ export default async function BaseWallet() {
target="_blank"
eventName="wallet-fork-template"
iconSize={16}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 font-medium"
>
Fork a template
</ButtonWithLinkAndEventLogging>
<ButtonWithLinkAndEventLogging
href="https://docs.base.org/identity/smart-wallet/introduction/install-web"
target="_blank"
variant={ButtonVariants.SecondaryOutline}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
eventName="wallet-docs"
>
<div className="flex items-center justify-between gap-6">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(base-org)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default async function BaseOrgLayout({

{/* Line between content & footer */}
<Container>
<hr className="opacity-50" />
<hr className="border-palette-line/60" />
</Container>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Builders/AgentKit/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function Hero() {
<div className="flex gap-4 bg-black pb-24 pt-5 max-sm:flex-col">
<button
type="button"
className="inline-flex items-center gap-2.5 whitespace-nowrap rounded-lg bg-white px-4 pb-2.5 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
className="inline-flex items-center gap-2.5 whitespace-nowrap rounded-lg bg-white px-4 pb-3 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
onClick={handleCopy}
>
npx create-agentkit-app
Expand All @@ -63,7 +63,7 @@ export function Hero() {
href={AGENTKIT_DOCS_LINK}
target="_blank"
variant={ButtonVariants.SecondaryOutline}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
eventName="agentkit-docs"
>
<div className="flex items-center justify-between gap-6">
Expand Down
18 changes: 9 additions & 9 deletions apps/web/src/components/Builders/Landing/Hero/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ const searchConfig: SearchCategory[] = [
{
label: 'npm create onchain',
description: (
<div className="px-4 pb-2 text-xs text-dark-palette-foregroundMuted ">
<div className="px-3 pb-2 text-xs text-dark-palette-foregroundMuted tracking-wide">
Run this command in your terminal to start building with
<Link
href="https://docs.base.org/builderkits/onchainkit/getting-started"
color="white"
className="pl-1 text-xs text-white"
className="text-xs text-white tracking-wide pl-1"
target="_blank"
>
OnchainKit quickstart template.
OnchainKit quickstart template
</Link>
</div>
),
Expand Down Expand Up @@ -248,7 +248,7 @@ export function SearchModal({
aria-modal="true"
role="dialog"
className={classNames(
'bg-illoblack',
'bg-illoblack p-2',
'fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2',
'max-h-[460px] w-full overflow-y-auto md:w-[555px]',
'rounded-xl border border-gray-muted/20 hover:border-gray-muted/20',
Expand All @@ -259,18 +259,18 @@ export function SearchModal({
onFocus={handleSearchInputFocus}
onChange={onSearchInputChange}
className={classNames(
'w-full p-4',
'w-full p-3 pt-2',
'bg-illoblack',
'border-b border-gray-muted/20 hover:border-gray-muted/20 focus:outline-none',
)}
placeholder="Find tools, templates, or guides"
/>
{activeSearchConfig.length > 0 && (
<div className="flex w-full flex-col gap-4 pt-4">
<div className="flex w-full flex-col pt-2\ pb-2 gap-4">
<div className="flex w-full flex-col items-start justify-center">
{activeSearchConfig.map((searchCategory) => (
<div key={searchCategory.category} className="w-full">
<div className="w-full px-4 py-2 text-sm font-medium uppercase tracking-normal text-gray-muted">
<div className="w-full px-3 py-2 text-xs font-medium uppercase tracking-wide text-gray-muted mt-3">
{searchCategory.category}
</div>
{searchCategory.subCategories.map((subCategory) => (
Expand All @@ -279,7 +279,7 @@ export function SearchModal({
type="button"
className={classNames(
'group',
'w-full rounded-xl px-4 py-2',
'w-full rounded-xl px-3 py-2',
{
'font-mono': searchCategory.category === 'Quickstart',
},
Expand All @@ -293,7 +293,7 @@ export function SearchModal({
: subCategory?.onClick
}
>
<span className="tracking-normal">{subCategory.label}</span>
<span className="tracking-wide">{subCategory.label}</span>
<div
className={classNames(
'opacity-0 transition-opacity group-hover:opacity-100',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function Testimonials() {
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
linkClassNames="w-fit block"
buttonClassNames="text-base font-medium text-white flex items-center justify-between px-4 pb-2.5 pt-3 group"
buttonClassNames="text-base font-medium text-white flex items-center justify-between px-4 pb-3 pt-3 group"
href="/builders/stories"
eventName="testimonials"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function UseCaseBlock({
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
linkClassNames="w-fit"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
href={href}
target="_blank"
eventName={`developers_build-scale-monetize_${title.replace(/\s+/g, '-').toLowerCase()}`}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Builders/MiniKit/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function Hero() {
<div className="flex gap-4 pt-5 max-sm:flex-col">
<button
type="button"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-2.5 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-3 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
onClick={handleCopy}
>
npm create-onchain --mini
Expand All @@ -63,7 +63,7 @@ export function Hero() {
</button>
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
href={GET_STARTED_URL}
eventName="minikit-get-started"
target="_blank"
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Builders/Onchainkit/CtaBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function CtaBanner() {
<>
<button
type="button"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-2.5 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-3 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90"
onClick={handleCopy}
>
npm create onchain
Expand All @@ -41,7 +41,7 @@ export function CtaBanner() {
href={ONCHAINKIT_DOCS_LINK}
target="_blank"
variant={ButtonVariants.SecondaryOutline}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
eventName="onchainkit-docs"
>
<div className="flex items-center justify-between gap-6">
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Builders/Onchainkit/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function Hero() {
<div className="flex gap-4 pt-5 max-sm:max-w-[240px] max-sm:flex-col">
<button
type="button"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-2.5 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-3 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90 max-sm:mr-auto"
onClick={handleCopy}
>
npm create onchain
Expand All @@ -61,7 +61,7 @@ export function Hero() {
</button>
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
href={ONCHAINKIT_DOCS_LINK}
eventName="onchainkit-documentation-click"
target="_blank"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Builders/Onchainkit/Templates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function Templates() {
iconName="github"
target="_blank"
eventName="onchainkit-feature-template"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
>
Feature your template
</ButtonWithLinkAndEventLogging>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Builders/Shared/BottomCta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function BottomCta() {
<>
<button
type="button"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-2.5 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90"
className="inline-flex items-center gap-2.5 rounded-lg bg-white px-4 pb-3 pt-3 font-medium text-dark-palette-primaryForeground transition-colors hover:bg-white/90"
onClick={handleCopy}
>
npm create onchain
Expand All @@ -39,7 +39,7 @@ export function BottomCta() {
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
linkClassNames="text-base font-medium text-white block"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group"
target="_blank"
href="https://docs.base.org"
eventName="bottom-cta-documentation"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Builders/Shared/LiveDemo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function DesktopDemo({
href="https://docs.base.org/builderkits/onchainkit/getting-started"
target="_blank"
className={classNames(
'rounded-lg border px-2 py-1 transition-colors',
'rounded-lg border px-3 py-1 transition-colors',
mode === 'dark'
? 'border-dark-palette-line/20 hover:bg-white/10'
: 'border-dark-palette-line/20 text-dark-palette-backgroundAlternate hover:bg-white/10',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions apps/web/src/components/Builders/SmartWallet/svg/wallet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function StoryCard({
<ButtonWithLinkAndEventLogging
variant={ButtonVariants.SecondaryOutline}
linkClassNames="w-fit"
buttonClassNames="flex items-center justify-between px-4 pb-2.5 pt-3 group font-medium"
buttonClassNames="flex items-center justify-between px-4 pb-3 pt-3 group font-medium"
href={href}
eventName={`developers_stories_${title.replace(/\s+/g, '-').toLowerCase()}`}
>
Expand Down
Loading