Skip to content

Commit

Permalink
Merge pull request #35 from derekphilipau/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
derekphilipau authored Dec 29, 2023
2 parents e047e5f + 3d63651 commit 0f86ed4
Show file tree
Hide file tree
Showing 21 changed files with 1,905 additions and 900 deletions.
82 changes: 39 additions & 43 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,90 +1,86 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;

--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;

--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;


--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;
--border: 0 0% 89.8%;
--input: 0 0% 89.8%;

--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;

--primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;

--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;


--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;

--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;

--ring: 0 0% 63.9%;


--border: 0 0% 89.8%;
--input: 0 0% 89.8%;
--ring: 0 0% 3.9%;

--radius: 0.5rem;
}

.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;

--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;

--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;


--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;
--border: 0 0% 14.9%;
--input: 0 0% 14.9%;

--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;

--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;

--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;


--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;

--accent: 0 0% 14.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;

--ring: 0 0% 14.9%;
--destructive-foreground: 0 0% 98%;

--border: 0 0% 14.9%;
--input: 0 0% 14.9%;
--ring: 0 0% 83.1%;
}
}

@layer base {
* {
@apply border-border;
}

body {
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}

input[type="search"] {
-webkit-appearance: none !important;
input[type='search'] {
-webkit-appearance: none !important;
}
}
}

@media (max-width: 640px) {
.container {
@apply px-4;
}
}
}
92 changes: 92 additions & 0 deletions app/globals.css.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 0 0% 3.9%;

--muted: 0 0% 96.1%;
--muted-foreground: 0 0% 45.1%;

--popover: 0 0% 100%;
--popover-foreground: 0 0% 3.9%;

--card: 0 0% 100%;
--card-foreground: 0 0% 3.9%;

--border: 0 0% 89.8%;
--input: 0 0% 89.8%;

--primary: 0 0% 9%;
--primary-foreground: 0 0% 98%;

--secondary: 0 0% 96.1%;
--secondary-foreground: 0 0% 9%;

--accent: 0 0% 96.1%;
--accent-foreground: 0 0% 9%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;

--ring: 0 0% 63.9%;

--radius: 0.5rem;
}

.dark {
--background: 0 0% 3.9%;
--foreground: 0 0% 98%;

--muted: 0 0% 14.9%;
--muted-foreground: 0 0% 63.9%;

--popover: 0 0% 3.9%;
--popover-foreground: 0 0% 98%;

--card: 0 0% 3.9%;
--card-foreground: 0 0% 98%;

--border: 0 0% 14.9%;
--input: 0 0% 14.9%;

--primary: 0 0% 98%;
--primary-foreground: 0 0% 9%;

--secondary: 0 0% 14.9%;
--secondary-foreground: 0 0% 98%;

--accent: 0 0% 14.9%;
--accent-foreground: 0 0% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;

--ring: 0 0% 14.9%;
}
}

@layer base {
* {
@apply border-border;
}

body {
@apply bg-background text-foreground;
font-feature-settings:
'rlig' 1,
'calt' 1;
}

input[type='search'] {
-webkit-appearance: none !important;
}
}

@media (max-width: 640px) {
.container {
@apply px-4;
}
}
3 changes: 2 additions & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
Expand All @@ -12,4 +13,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
}
}
4 changes: 3 additions & 1 deletion components/artwork/description-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export function DescriptionRow({
!link &&
val.map(
(tag: string, i: Key) =>
tag && <span key={i}>{`${i > 0 ? ', ' : ''}${tag}`}</span>
tag && (
<span key={i}>{`${(i as number) > 0 ? ', ' : ''}${tag}`}</span>
)
)}
</dd>
</div>
Expand Down
8 changes: 6 additions & 2 deletions components/search/search-agg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export function SearchAgg({
className="text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{option.key}
{option.doc_count ? ` (${option.doc_count})` : ''}
<span className="text-muted-foreground">
{option.doc_count ? ` ${option.doc_count}` : ''}
</span>
</Label>
</div>
)
Expand Down Expand Up @@ -184,7 +186,9 @@ export function SearchAgg({
className="text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{option.key}
{option.doc_count ? ` (${option.doc_count})` : ''}
<span className="text-muted-foreground">
{option.doc_count ? ` ${option.doc_count}` : ''}
</span>
</Label>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion components/search/search-as-you-type-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Popover,
PopoverAnchor,
PopoverContent,
} from '@/components/ui/popover-local';
} from '@/components/ui/popover';

interface SearchAsYouTypeInputProps {
params?: SearchParams;
Expand Down
2 changes: 1 addition & 1 deletion components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/lib/utils';

const buttonVariants = cva(
'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
'inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',
{
variants: {
variant: {
Expand Down
Loading

0 comments on commit 0f86ed4

Please sign in to comment.