Skip to content

Commit

Permalink
fix: general fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fluid-design-io committed Oct 22, 2023
1 parent fdd1b67 commit 11e7fce
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/core/color-picker-fab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function ColorPickerFab() {
return (
<div
className={cn(
"fixed inset-x-0 bottom-[calc(4rem+env(safe-area-inset-bottom))] z-50 flex w-full justify-center sm:bottom-[calc(1rem+env(safe-area-inset-bottom))]",
"pointer-events-none fixed inset-x-0 bottom-[calc(4rem+env(safe-area-inset-bottom))] z-50 flex w-full justify-center sm:bottom-[calc(1rem+env(safe-area-inset-bottom))]",
)}
>
<div
className={cn(
"flex max-w-xs items-center justify-center gap-4 rounded-full border border-white/10 p-2 shadow-lg backdrop-blur-xl backdrop-brightness-105 backdrop-saturate-150 dark:border-white/5 dark:backdrop-brightness-95",
"pointer-events-auto flex max-w-xs items-center justify-center gap-4 rounded-full border border-white/10 p-2 shadow-lg backdrop-blur-xl backdrop-brightness-105 backdrop-saturate-150 dark:border-white/5 dark:backdrop-brightness-95",
// "bg-background-accent/75",
)}
style={{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/core/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function SiteFooter() {
rel="noopener noreferrer"
title="Visit Oliver's portfolio"
>
Oliver Pan
Oliver
</a>
{". "}
The source code is on{" "}
Expand Down
10 changes: 8 additions & 2 deletions apps/web/components/palette/base-color-palettes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { cn } from "@ui/lib/utils";
import React from "react";

import PaletteButton from "./base-palette-button";
import { colorHelper } from "@/lib/colorHelper";
import ColorString from "./color-string";

function BaseColorPalettes() {
const { colorPalettes, colorMode } = useColorStore.getState();
Expand Down Expand Up @@ -81,7 +81,13 @@ function BaseColorPalettes() {
"@md/section-secondary:hover:absolute @md/section-secondary:hover:left-0 @md/section-secondary:hover:top-0 @md/section-secondary:hover:z-10 @md/section-secondary:hover:shadow-sm",
)}
>
{colorHelper.toColorMode(color.raw, colorMode)}
<ColorString
{...{
step,
type,
animation: animation(step, type),
}}
/>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ module.exports = {
{
hostname: 'fluid-colors.vercel.app',
},
{
protocol: 'https',
hostname: 'user-images.githubusercontent.com',
},
]
},
transpilePackages: ["ui"],
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"devDependencies": {
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.10",
"@types/culori": "^2.0.1",
"@types/node": "^17.0.12",
"@types/react": "^18.2.25",
Expand Down
3 changes: 2 additions & 1 deletion apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
plugins: [
...tailwindConfig.plugins,
require('@tailwindcss/container-queries'),
require("tailwindcss-animate")
require("tailwindcss-animate"),
require('@tailwindcss/typography')
]
}
27 changes: 27 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 11e7fce

Please sign in to comment.