Skip to content
Open
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
Binary file added public/images/diagram.png
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 public/images/en.dark.auth0-flow.png
Binary file not shown.
Binary file removed public/images/en.light.auth0-flow.png
Binary file not shown.
Binary file removed public/images/ja.dark.auth0-flow.png
Binary file not shown.
Binary file removed public/images/ja.light.auth0-flow.png
Binary file not shown.
24 changes: 0 additions & 24 deletions public/images/mobile.dark.auth0-flow-bg.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/mobile.en.dark.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/mobile.en.light.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/mobile.ja.dark.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/mobile.ja.light.auth0-flow.svg

This file was deleted.

24 changes: 0 additions & 24 deletions public/images/mobile.light.auth0-flow-bg.svg

This file was deleted.

24 changes: 0 additions & 24 deletions public/images/tablet.dark.auth0-flow-bg.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/tablet.en.dark.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/tablet.en.light.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/tablet.ja.dark.auth0-flow.svg

This file was deleted.

113 changes: 0 additions & 113 deletions public/images/tablet.ja.light.auth0-flow.svg

This file was deleted.

24 changes: 0 additions & 24 deletions public/images/tablet.light.auth0-flow-bg.svg

This file was deleted.

21 changes: 21 additions & 0 deletions src/features/common/assets/arrow-head-icon.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";

export const ArrowHeadIconComponent: React.FC = () => {
return (
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 4L10 8L6 12"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
></path>
</svg>
);
};
63 changes: 29 additions & 34 deletions src/features/common/components/auth0-cta/auth0-cta.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import React from "react";
import { getLocalizedSecondaryFont } from "@/libs/theme/fonts";
import clsx from "clsx";
import { Auth0DictionaryModel } from "@/features/localization/models/auth0-dictionary.model";
import { BoxComponent } from "@/features/common/components/box/box.component";
import styles from "./auth0-cta.module.scss";
import Link from "next/link";
import NextArrow from "@/features/common/assets/arrow-right.svg";
import { ArrowHeadIconComponent } from "../../assets/arrow-head-icon.component";

interface Auth0CtaComponentProps {
languageCode: string;
Expand All @@ -17,40 +16,36 @@ export const Auth0CtaComponent: React.FC<Auth0CtaComponentProps> = ({
dictionary,
}) => {
return (
<BoxComponent
containerClassName={styles.container}
contentClassName={styles.content}
wrapperClassName={styles.wrapper}
>
<div className={styles.cta}>
<div className={styles.cta__copy}>
<div className={styles.cta__text}>
<h3
className={clsx(
getLocalizedSecondaryFont(languageCode),
styles.cta__title,
)}
>
{dictionary.title}
</h3>
<p className={styles.cta__description}>{dictionary.description}</p>
</div>
{dictionary.ctaButton && (
<Link
target="_blank"
rel="noopener noreferrer"
className={styles.button}
href={dictionary.ctaButton.path}
>
{dictionary.ctaButton.label}
<div className={styles.button__arrow}>
<NextArrow />
<div className={styles.cta_container}>
<div className={styles.cta_wrapper}>
<div className={styles.cta_content}>
<div className={styles.cta_cta}>
<div className={styles.cta__copy}>
<div className={styles.cta__text}>
<h3
className={clsx(
getLocalizedSecondaryFont(languageCode),
styles.cta__title
)}
>
{dictionary.title}
</h3>
<p className={styles.cta__description}>
{dictionary.description}
</p>
</div>
</Link>
)}
<Link
className={styles.cta__button}
href={dictionary.ctaButton.path}
>
{dictionary.ctaButton.label}
<ArrowHeadIconComponent />
</Link>
</div>
<div className={styles.cta__media}></div>
</div>
</div>
<div className={styles.cta__media} />
</div>
</BoxComponent>
</div>
);
};
Loading