Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue authored and actions-user committed Nov 13, 2023
1 parent 9cee5af commit 64bac48
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 64 deletions.
6 changes: 3 additions & 3 deletions ui/src/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFi
const FormField = <
TFieldValues extends FieldValues = FieldValues,
TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
>({
...props
}: ControllerProps<TFieldValues, TName>) => {
>(
{ ...props }: ControllerProps<TFieldValues, TName>,
) => {
return (
<FormFieldContext.Provider value={{ name: props.name }}>
<Controller {...props} />
Expand Down
78 changes: 39 additions & 39 deletions ui/src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,58 @@
@tailwind utilities;

@layer base {
:root,
.theme-default {
--si-yellow: hsl(48, 100%, 49%);
--background: hsl(219, 100%, 97%);
--foreground: hsl(20 14.3% 4.1%);
:root,
.theme-default {
--si-yellow: hsl(48, 100%, 49%);
--background: hsl(219, 100%, 97%);
--foreground: hsl(20 14.3% 4.1%);

--card: hsl(0 100% 100%);
--card-foreground: hsl(20 14.3% 4.1%);
--card: hsl(0 100% 100%);
--card-foreground: hsl(20 14.3% 4.1%);

--popover: hsl(0 100% 100%);
--popover-foreground: hsl(0, 0%, 40%);
--popover: hsl(0 100% 100%);
--popover-foreground: hsl(0, 0%, 40%);

--primary: hsl(216, 54%, 55%);
--primary-foreground: hsl(60 9.1% 97.8%);
--primary: hsl(216, 54%, 55%);
--primary-foreground: hsl(60 9.1% 97.8%);

--secondary: hsl(8, 89%, 62%);
--secondary-foreground: hsl(240, 2%, 21%);
--secondary: hsl(8, 89%, 62%);
--secondary-foreground: hsl(240, 2%, 21%);

--muted: hsl(60 4.8% 95.9%);
--muted-foreground: hsl(25 5.3% 44.7%);
--muted: hsl(60 4.8% 95.9%);
--muted-foreground: hsl(25 5.3% 44.7%);

--accent: hsl(219, 100%, 95%);
--accent-foreground: hsl(24 9.8% 10%);
--accent: hsl(219, 100%, 95%);
--accent-foreground: hsl(24 9.8% 10%);

--destructive: hsl(0, 75%, 42%);
--destructive-foreground: hsl(60 9.1% 97.8%);
--destructive: hsl(0, 75%, 42%);
--destructive-foreground: hsl(60 9.1% 97.8%);

--border: hsl(20 5.9% 80%);
--input: hsl(20 5.9% 90%);
--ring: hsl(216, 54%, 55%);
--border: hsl(20 5.9% 80%);
--input: hsl(20 5.9% 90%);
--ring: hsl(216, 54%, 55%);

--radius: 0.5rem;
}
--radius: 0.5rem;
}

.theme-light-blue {
--background: hsl(216, 54%, 95%);
}
.theme-light-blue {
--background: hsl(216, 54%, 95%);
}

.theme-dark-blue {
--si-yellow: hsl(48, 100%, 49%);
--background: hsl(216, 54%, 55%);
--foreground: hsl(60 9.1% 97.8%);
.theme-dark-blue {
--si-yellow: hsl(48, 100%, 49%);
--background: hsl(216, 54%, 55%);
--foreground: hsl(60 9.1% 97.8%);

--primary: hsl(48, 100%, 49%);
--primary-foreground: hsl(0, 0%, 20%);
}
--primary: hsl(48, 100%, 49%);
--primary-foreground: hsl(0, 0%, 20%);
}
}

@layer base {
body,
.theme-default,
.theme-dark-blue {
@apply bg-background text-foreground;
}
body,
.theme-default,
.theme-dark-blue {
@apply bg-background text-foreground;
}
}
23 changes: 11 additions & 12 deletions website/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@
@tailwind components;
@tailwind utilities;


:root {
--h-navbar: 4.5rem;
--h-navbar-mobile: 4rem;
--h-navbar: 4.5rem;
--h-navbar-mobile: 4rem;
}

.min-h-navbar {
min-height: var(--h-navbar-mobile);
@media screen(md) {
min-height: var(--h-navbar);
}
min-height: var(--h-navbar-mobile);
@media screen(md) {
min-height: var(--h-navbar);
}
}

.min-h-screen-navbar {
min-height: calc(100vh - var(--h-navbar-mobile));
@media screen(md) {
min-height: calc(100vh - var(--h-navbar));
}
}
min-height: calc(100vh - var(--h-navbar-mobile));
@media screen(md) {
min-height: calc(100vh - var(--h-navbar));
}
}
13 changes: 3 additions & 10 deletions website/src/components/navbar/navbar-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,9 @@ type NavbarProps = {
}[];
} & DefaultParams;

export function NavbarClient({
lang,
region,
translations,
languages,
regions,
currencies,
navigation = [],
showNavigation = true,
}: NavbarProps) {
export function NavbarClient(
{ lang, region, translations, languages, regions, currencies, navigation = [], showNavigation = true }: NavbarProps,
) {
const [isOpen, setIsOpen] = useState(false);

const i18nDialog = (
Expand Down

0 comments on commit 64bac48

Please sign in to comment.