Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

200 rebrand quassel to lemon #217

Merged
merged 4 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/loud-parents-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@quassel/frontend": patch
"@quassel/backend": patch
"@quassel/mockup": patch
"@quassel/ui": patch
---

Rebrand quassel to LEMON
4 changes: 2 additions & 2 deletions apps/backend/db/seeds/DatabaseSeeder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export class DatabaseSeeder extends Seeder {
{
role: UserRole.ADMIN,
email: "[email protected]",
password: await getPasswordHash("Quassel*1234"),
password: await getPasswordHash("Lemon*1234"),
},
{
role: UserRole.ASSISTANT,
email: "[email protected]",
password: await getPasswordHash("Quassel*1234"),
password: await getPasswordHash("Lemon*1234"),
},
];

Expand Down
61 changes: 32 additions & 29 deletions apps/frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quassel</title>
<link rel="icon" href="/favicon.ico" />
<style>
html {
height: 100%;
}

body {
margin: 0;
padding: 0;
min-height: 100%;
}
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lemon</title>
<link rel="icon" href="/favicon.ico" />
<style>
html {
height: 100%;
}

#root {
min-height: 100%;
}
</style>
<script type="text/javascript">
window.env = {
apiUrl: '//REPLACE_WITH_API_URL'
};
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
body {
margin: 0;
padding: 0;
min-height: 100%;
}

#root {
min-height: 100%;
}
</style>
<script type="text/javascript">
window.env = {
apiUrl: '//REPLACE_WITH_API_URL'
};
</script>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
13 changes: 10 additions & 3 deletions apps/frontend/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
IconCalendarWeek,
IconMapSearch,
Divider,
FooterLogos,
} from "@quassel/ui";
import { createRootRouteWithContext, Link, Outlet, useNavigate } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
Expand Down Expand Up @@ -49,7 +50,7 @@
return (
<>
<AppShell
header={{ height: 118 }}
header={{ height: 104 }}

Check warning on line 53 in apps/frontend/src/routes/__root.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/routes/__root.tsx#L53

Added line #L53 was not covered by tests
footer={{ height: 84 }}
navbar={{ width: 300, breakpoint: "sm", collapsed: { desktop: !layoutStore.admin } }}
padding="xl"
Expand All @@ -63,7 +64,7 @@
{sessionStore.email && (
<Group>
<Text>{sessionStore.email}</Text>
<Button leftSection={<IconLogout />} onClick={handleSignOut}>
<Button variant="outline" leftSection={<IconLogout />} onClick={handleSignOut}>
Sign out
</Button>
</Group>
Expand Down Expand Up @@ -91,10 +92,16 @@
<NavLink component={Link} to="/administration/users" leftSection={<IconUsers />} label="Users" />
</AppShell.Navbar>
)}

Check warning on line 95 in apps/frontend/src/routes/__root.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/routes/__root.tsx#L95

Added line #L95 was not covered by tests
<AppShell.Main>
<Outlet />
</AppShell.Main>
<AppShell.Footer>Version {version}</AppShell.Footer>
<AppShell.Footer>
<Group justify="space-between">
<FooterLogos />
Version {version}
</Group>
</AppShell.Footer>

Check warning on line 104 in apps/frontend/src/routes/__root.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/routes/__root.tsx#L99-L104

Added lines #L99 - L104 were not covered by tests
</AppShell>
<TanStackRouterDevtools position="top-left" />
</>
Expand Down
6 changes: 1 addition & 5 deletions apps/frontend/src/sections/HeroSection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
font-size: rem(44px);
line-height: 1.2;
font-weight: 900;

}

.control {
}

.highlight {
position: relative;
background-color: var(--mantine-color-blue-light);
background-color: var(--mantine-primary-color-light);
border-radius: var(--mantine-radius-sm);
padding: rem(4px) rem(12px);
}
2 changes: 1 addition & 1 deletion apps/frontend/src/sections/HeroSection.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions apps/frontend/src/sections/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Link } from "@tanstack/react-router";

const messages = i18n("heroSection", {
title: "Quassel",
title: "LEMON",

Check warning on line 9 in apps/frontend/src/sections/HeroSection.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/sections/HeroSection.tsx#L9

Added line #L9 was not covered by tests
subtitle: "Gather language exposure",
toFormAction: "Questionnaire",
toAdminAction: "Administration",
Expand All @@ -22,7 +22,7 @@
<span className={classes.highlight}>{t.title}</span>
</Title>
<Text c="dimmed" mt="md">
{t.subtitle}
<b>L</b>anguage <b>E</b>xposure questionnaire for <b>M</b>ultilinguals <b>On</b>line

Check warning on line 25 in apps/frontend/src/sections/HeroSection.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/sections/HeroSection.tsx#L25

Added line #L25 was not covered by tests
</Text>

<Group mt={30}>
Expand All @@ -34,7 +34,7 @@
</Button>
</Group>
</div>
<img src={image} alt="Quassel family" className={classes.image} />
<img src={image} alt="Lemon family" className={classes.image} />

Check warning on line 37 in apps/frontend/src/sections/HeroSection.tsx

View check run for this annotation

Codecov / codecov/patch

apps/frontend/src/sections/HeroSection.tsx#L37

Added line #L37 was not covered by tests
</div>
</Container>
);
Expand Down
Binary file added libs/ui/src/assets/KleineWeltentdeckerLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions libs/ui/src/assets/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
15 changes: 8 additions & 7 deletions libs/ui/src/components/Brand.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { Divider, Group, Text } from "@mantine/core";
import Logo from "./Logo.svg?react";
import { Group, Stack, Title } from "@mantine/core";
import Logo from "../assets/Logo.svg?react";

export function Brand() {
return (
<Group gap={30}>
<Group className="quassel-Brand" gap="md">
<Logo className="quassel-Logo" />
<Divider orientation="vertical" />
<Text size="xl" fw={600} c="black">
Quassel
</Text>
<Stack gap={0}>
<Title order={2} c="black">
LEMON
</Title>
</Stack>
</Group>
);
}
16 changes: 16 additions & 0 deletions libs/ui/src/components/FooterLogos.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Group } from "@mantine/core";
import UZHLogo from "../assets/UZHLogo.svg?react";
import KleineWeltentdeckerLogo from "../assets/KleineWeltentdeckerLogo.png";

export function FooterLogos() {
return (
<Group>
<a href="https://uzh.ch">
<UZHLogo />
</a>
<a href="https://www.psychologie.uzh.ch/de/bereiche/dev/devpsy/Weltentdecker.html">
<img src={KleineWeltentdeckerLogo} height={50} />
</a>
</Group>
);
}
1 change: 1 addition & 0 deletions libs/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export { formatDate, getTime, getDateFromTimeAndWeekday, getNext, isSameOrAfter,

// custom components
export { Brand } from "./components/Brand";
export { FooterLogos } from "./components/FooterLogos";
export { ImportInput } from "./components/ImportInput";
export { ImportPreview } from "./components/ImportPreview";
export { MonthPicker } from "./components/MonthPicker";
Expand Down
22 changes: 14 additions & 8 deletions libs/ui/src/theme/Theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@
--fc-border-color: var(--mantine-color-default-border);
}

/* Page layout */
.quassel-Logo {
max-height: 4rem;
width: auto;
}

/* Page layout */
.mantine-AppShell-header,
.mantine-AppShell-footer {
padding: var(--mantine-spacing-xl) var(--quassel-padding-x);
}
display: flex;
align-items: center;
padding-inline: var(--quassel-padding-x);

[data-admin] :is(.mantine-AppShell-header, .mantine-AppShell-footer) {
padding: var(--mantine-spacing-xl) var(--mantine-spacing-sm);
>* {
flex: 1;
}
}

[data-admin] .mantine-AppShell-header .quassel-Logo {
width: calc(var(--app-shell-navbar-width) - var(--mantine-spacing-sm) - var(--group-gap));
[data-admin] :is(.mantine-AppShell-header, .mantine-AppShell-footer) {
padding-inline: var(--mantine-spacing-xl);
}

/* Components overrides */
Expand All @@ -35,4 +41,4 @@

.mantine-AppShell-footer {
background-color: var(--quassel-color-light-gray);
}
}
2 changes: 1 addition & 1 deletion libs/ui/src/theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const theme: MantineThemeOverride = {
uzhBlack: convertUZHColorsToMantine(uzhColors.uzhBlack),
uzhWhite: convertUZHColorsToMantine(uzhColors.uzhWhite),
},
primaryColor: "uzhBlue",
primaryColor: "uzhGold",
};

export function ThemeProvider({ children, ...args }: ThemeProviderProps) {
Expand Down
Loading