Skip to content

Commit

Permalink
Merge pull request #29 from Cosmian/feat/login_page_redesign
Browse files Browse the repository at this point in the history
Feat/login page redesign
  • Loading branch information
HatemMn authored Jun 13, 2024
2 parents 39dba32 + 5cee3d4 commit 6329696
Show file tree
Hide file tree
Showing 17 changed files with 212 additions and 52 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/Cosmian/Files/main/svg/cosmian-icon-color.svg" />
<link rel="icon" href="src/assets/favicons/cropped-favicon-cosmian-32x32.png" sizes="32x32" />
<link rel="icon" href="src/assets/favicons/cropped-favicon-cosmian-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="src/assets/favicons/cropped-favicon-cosmian-180x180.png" />
<meta name="msapplication-TileImage" content="src/assets/favicons/cropped-favicon-cosmian-270x270.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cosmian - Interactive tutorial</title>
</head>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

14 changes: 13 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@ const App = (): JSX.Element => {
}

if (!isAuthenticated) {
return <LoginPage loginWithRedirect={() => loginWithRedirect()} />;
return (
<LoginPage
loginWithRedirect={() => loginWithRedirect()}
signUpWithRedirect={() =>
// https://github.com/auth0/auth0-react/issues/571#issuecomment-1718878155
loginWithRedirect({
authorizationParams: {
screen_hint: "signup",
},
})
}
/>
);
}

return <AppRouter />;
Expand Down
13 changes: 13 additions & 0 deletions src/assets/Cosmian_Logo_black.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: 6 additions & 0 deletions src/assets/cosmian_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/endtoend-encryption-img.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/fonts/Poppins-Bold.ttf
Binary file not shown.
Binary file added src/assets/fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added src/assets/login_page_background_image.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 src/assets/logoCosmian.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/component/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CheckCircleOutlined, CloseCircleOutlined } from "@ant-design/icons/lib/icons";
import { useAuth0 } from "@auth0/auth0-react";
import { Tag } from "antd";
import { Button, CosmianLogo, Header } from "cosmian_ui";
import { Button, Header } from "cosmian_ui";
import React, { useEffect, useState } from "react";
import { IoLogOutOutline } from "react-icons/io5";
import { LiaExternalLinkAltSolid } from "react-icons/lia";
Expand All @@ -12,6 +12,7 @@ import { findCurrentNavigationItem } from "../utils/navigationActions";
import { FooterNavigation } from "./Footer";
import { MainNavigation } from "./MainNavigation";
import "./layout.less";
import logo from "../assets/Cosmian_Logo_black.svg";

const Layout = (): JSX.Element => {
const steps = useBoundStore((state) => state.steps);
Expand Down Expand Up @@ -43,7 +44,7 @@ const Layout = (): JSX.Element => {
<Header
mainLogo={
<Link to={window.location.origin}>
<CosmianLogo />
<img loading="lazy" decoding="async" src={logo} alt="Cosmian logo white" title="Cosmian Logo" />
</Link>
}
title="Interactive tutorial"
Expand Down
Loading

0 comments on commit 6329696

Please sign in to comment.