Update UI styling and Spinner component
Several updates have been made to UI components across various packages. Styling changes have been made in 'global-loader.tsx', 'docs-card.tsx', and 'pricing-table.tsx'. The Spinner component in 'spinner.tsx' has been updated to adjust size and animation properties. Addition of a new prop 'spinnerClassName' in 'loading-overlay.tsx' allows dynamic class assignment. The 'loading.tsx' now exports GlobalLoader directly instead of wrapping it in a function. 'pnpm-lock.yaml' has been updated with a new specifier.
This commit is contained in:
@@ -22,7 +22,7 @@ export function GlobalLoader({
|
||||
<If condition={displaySpinner}>
|
||||
<div
|
||||
className={
|
||||
'flex flex-1 flex-col items-center justify-center py-48 animate-in fade-in zoom-in-50 slide-in-from-bottom-4'
|
||||
'flex flex-1 flex-col items-center justify-center animate-in fade-in zoom-in-50 slide-in-from-bottom-8'
|
||||
}
|
||||
>
|
||||
<LoadingOverlay displayLogo={displayLogo} fullPage={fullPage} />
|
||||
|
||||
@@ -7,8 +7,10 @@ export function LoadingOverlay({
|
||||
children,
|
||||
className,
|
||||
fullPage = true,
|
||||
spinnerClassName,
|
||||
}: PropsWithChildren<{
|
||||
className?: string;
|
||||
spinnerClassName?: string;
|
||||
fullPage?: boolean;
|
||||
displayLogo?: boolean;
|
||||
}>) {
|
||||
@@ -23,7 +25,7 @@ export function LoadingOverlay({
|
||||
},
|
||||
)}
|
||||
>
|
||||
<Spinner className={'text-primary'} />
|
||||
<Spinner className={spinnerClassName} />
|
||||
|
||||
<div>{children}</div>
|
||||
</div>
|
||||
|
||||
@@ -10,11 +10,10 @@ export function Spinner(
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
className={cn(
|
||||
`h-8 w-8 animate-spin fill-white text-primary dark:fill-primary dark:text-primary/30`,
|
||||
`h-10 w-10 animate-spin fill-primary-foreground text-primary dark:fill-primary dark:text-primary/30`,
|
||||
props.className,
|
||||
)}
|
||||
viewBox="0 0 100 101"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
|
||||
Reference in New Issue
Block a user