Skip to content

armgit / mapcn

Public Imported from GitHub
0

Beautiful map components. 100% Free, Zero config, one command setup.

TypeScript

style(site): soften block cards, use favicon pin in logo

Anmole023805136ca
diff --git a/src/app/(main)/blocks/_components/block-card.tsx b/src/app/(main)/blocks/_components/block-card.tsx
index 28bc2f3..f3b214e 100644
--- a/src/app/(main)/blocks/_components/block-card.tsx
+++ b/src/app/(main)/blocks/_components/block-card.tsx
@@ -12,9 +12,9 @@ export function BlockCard({ block }: BlockCardProps) {
return (
<OpenBlockLink
name={block.name}
- className="bg-muted/30 dark:hover:bg-muted/40 hover:bg-muted/80 focus-visible:border-ring focus-visible:ring-ring/50 block rounded-xl border p-1.5 transition-[color,background-color,box-shadow] outline-none focus-visible:ring-[3px]"
+ className="bg-muted/50 hover:bg-muted ring-foreground/5 focus-visible:ring-ring/50 dark:bg-muted/30 dark:hover:bg-muted/50 block rounded-2xl p-2 ring-1 transition-[background-color,box-shadow] outline-none focus-visible:ring-[3px]"
>
- <div className="bg-muted/40 border-border/50 relative aspect-[16/10] overflow-hidden rounded-md border">
+ <div className="bg-background ring-foreground/5 relative aspect-[16/10] overflow-hidden rounded-lg shadow-xs ring-1">
<Image
src={`/blocks/${block.name}-light.jpg`}
alt=""
@@ -31,12 +31,10 @@ export function BlockCard({ block }: BlockCardProps) {
/>
</div>
- <div className="min-w-0 px-3 pt-3.5 pb-2.5">
- <h3 className="truncate text-base font-medium tracking-tight">
- {title}
- </h3>
+ <div className="min-w-0 px-2 pt-3.5 pb-2">
+ <h3 className="truncate text-base font-medium">{title}</h3>
{block.description && (
- <p className="text-muted-foreground mt-1 truncate text-sm">
+ <p className="text-muted-foreground mt-0.5 truncate text-sm">
{block.description}
</p>
)}
diff --git a/src/components/logo.tsx b/src/components/logo.tsx
index 909eb0a..1e4cfd1 100644
--- a/src/components/logo.tsx
+++ b/src/components/logo.tsx
@@ -1,5 +1,4 @@
import Link from "next/link";
-import { MapPin } from "lucide-react";
import { cn } from "@/lib/utils";
interface LogoProps {
@@ -18,13 +17,25 @@ export function Logo({ className, onClick, isLink = true }: LogoProps) {
onClick={onClick}
className={cn(logoClasses, "h-8", className)}
>
- <MapPin className="size-4" />
+ <LogoMark />
mapcn
</Link>
) : (
<div className={cn(logoClasses, className)}>
- <MapPin className="size-4" />
+ <LogoMark />
mapcn
</div>
);
}
+
+function LogoMark() {
+ return (
+ <svg viewBox="9 6 14 20" aria-hidden="true" className="h-4 w-auto shrink-0">
+ <path
+ d="M16 6C12.134 6 9 9.134 9 13C9 18.25 16 26 16 26C16 26 23 18.25 23 13C23 9.134 19.866 6 16 6Z"
+ className="fill-foreground"
+ />
+ <circle cx="16" cy="13" r="2.5" className="fill-background" />
+ </svg>
+ );
+}