-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from Open-Earth-Foundation/fix/invite-collabo…
…rators-to-invite-flow Fix/invite collaborators to invite flow
- Loading branch information
Showing
40 changed files
with
1,425 additions
and
76 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import "../globals.css"; | ||
import type { Metadata } from "next"; | ||
import { Providers } from "../providers"; | ||
import { dir } from "i18next"; | ||
import { languages } from "@/i18n/settings"; | ||
import { NavigationBar } from "@/components/navigation-bar"; | ||
|
||
export const metadata: Metadata = { | ||
title: "CityCatalyst", | ||
description: "Make building a climate inventory a breeze", | ||
}; | ||
|
||
export async function generateStaticParams() { | ||
return languages.map((lng: string) => ({ lng })); | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
params: { lng }, | ||
}: { | ||
children: React.ReactNode; | ||
params: { lng: string }; | ||
}) { | ||
return ( | ||
<html lang=""> | ||
<head> | ||
<link rel="icon" type="image/svg+xml" href="/assets/icon.svg" /> | ||
<link rel="icon" type="image/png" href="/assets/icon.png" /> | ||
</head> | ||
<body> | ||
<Providers> | ||
<NavigationBar lng="" /> | ||
{children} | ||
</Providers> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
"use client"; | ||
import { useTranslation } from "@/i18n/client"; | ||
import { api } from "@/services/api"; | ||
import { ArrowForwardIcon } from "@chakra-ui/icons"; | ||
import { Box, Text } from "@chakra-ui/layout"; | ||
import { Button, IconButton } from "@chakra-ui/react"; | ||
import Image from "next/image"; | ||
import { useRouter } from "next/navigation"; | ||
import React from "react"; | ||
|
||
const NotFound = ({ params: { lng } }: { params: { lng: string } }) => { | ||
const { data: userInfo, isLoading: isUserInfoLoading } = | ||
api.useGetUserInfoQuery(); | ||
const router = useRouter(); | ||
const { t } = useTranslation(lng, "not-found"); | ||
|
||
return ( | ||
<Box className="flex w-full justify-start relative h-[100vh] z-20"> | ||
<Image | ||
src="/assets/not-found-background.svg" | ||
layout="fill" | ||
objectFit="cover" | ||
sizes="100vw" | ||
className="relative" | ||
alt="not-found page background" | ||
/> | ||
<Box | ||
display="flex" | ||
flexDir="column" | ||
gap="" | ||
alignItems="center" | ||
justifyContent="center" | ||
h="full" | ||
w="full" | ||
zIndex="10" | ||
> | ||
<Text | ||
fontSize="display.xl" | ||
fontWeight="bold" | ||
fontFamily="heading" | ||
color="content.alternative" | ||
> | ||
404 | ||
</Text> | ||
<Text | ||
mb="48px" | ||
w="0px" | ||
width="400px" | ||
textAlign="center" | ||
lineHeight="32px" | ||
letterSpacing="wide" | ||
> | ||
{t("not-found-description")} | ||
</Text> | ||
<Button | ||
onClick={() => router.push(`/${userInfo?.defaultInventoryId}`)} | ||
gap="8px" | ||
h="48px" | ||
px="24px" | ||
fontSize="body.md" | ||
isLoading={isUserInfoLoading} | ||
rightIcon={<ArrowForwardIcon />} | ||
> | ||
{t("goto-dashboard")} | ||
</Button> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default NotFound; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.