-
Notifications
You must be signed in to change notification settings - Fork 26
Handbook banner #86
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
Open
javiert-okta
wants to merge
8
commits into
configuration-modal-logic
Choose a base branch
from
handbook-banner
base: configuration-modal-logic
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+316
−4
Open
Handbook banner #86
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
200c4a2
add handbook banner component to homepage
javiert-okta 9929dc6
add new handbook image
javiert-okta 1c47d76
add handbook component
javiert-okta 5c44425
add auth0 banner component to page
javiert-okta 8c5c334
add auth0 image
javiert-okta 008c447
add auth0 banner and styling
javiert-okta 0558ee4
fix props for common button
javiert-okta 28abb0a
fix handbook banner styling
javiert-okta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
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.
39 changes: 39 additions & 0 deletions
39
src/features/common/components/auth0-banner/auth0-banner.component.tsx
This file contains hidden or 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,39 @@ | ||
| import Image from "next/image"; | ||
| import { LinkButton } from "../button/button.component"; | ||
| import styles from "./auth0-banner.module.scss"; | ||
|
|
||
| export const Auth0Banner = () => { | ||
| return ( | ||
| <div className={styles.container}> | ||
| <div className={styles.wrapper}> | ||
| <div className={styles.content}> | ||
| <div className={styles.left_container}> | ||
| <p className={styles.title}> | ||
| The OIDC playground is brought to you by Auth0 | ||
| </p> | ||
| <p className={styles.subtitle}> | ||
| A cloud service, APIs and tools that eliminate the friction of identity for your applications and APIs. | ||
| </p> | ||
| <div className={styles.button_container}> | ||
| <LinkButton | ||
| label="Try Auth0 for free" | ||
| href="https://auth0.com/signup/?utm_source=openidconnect.net&utm_medium=microsites&utm_campaign=devn_signup" | ||
| showIcon={false} | ||
| /> | ||
| </div> | ||
| </div> | ||
| <div className={styles.right_container}> | ||
| <div className={styles.background_layout}></div> | ||
| <Image | ||
| src={"/images/auth0-banner.svg"} | ||
| width={365} | ||
| height={425} | ||
| alt="openid connect handbook" | ||
| className={styles.banner_image} | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
90 changes: 90 additions & 0 deletions
90
src/features/common/components/auth0-banner/auth0-banner.module.scss
This file contains hidden or 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,90 @@ | ||
| @use "libs/theme/styles/variables" as *; | ||
| @use "libs/theme/styles/mixins" as *; | ||
|
|
||
| .container { | ||
| @include Container; | ||
| font-family: Aeonik; | ||
|
|
||
| } | ||
|
|
||
| .wrapper { | ||
| @include ExtendedGrid; | ||
| } | ||
|
|
||
| .content { | ||
| margin: 4rem 2rem 20px; | ||
| color: var(--color_fg_link); | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| border-radius: 24px; | ||
| border: 0.5px solid var(--color_border_light); | ||
| background: var(--color_bg_layer_alternate); | ||
|
|
||
| @media #{$breakpoint-dimension-sm} { | ||
| display: flex; | ||
| flex-direction: row; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| .left_container { | ||
| padding: 5rem 2.5rem 5rem 2.5rem; | ||
| flex: 1; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| position: relative; | ||
| height: 100%; | ||
| width: 100%; | ||
| @media #{$breakpoint-dimension-sm} { | ||
| align-items: flex-start; | ||
| } | ||
| } | ||
|
|
||
| .right_container { | ||
| flex: 1; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| @media #{$breakpoint-dimension-md} { | ||
| padding: 40px 0px 0px; | ||
| } | ||
| } | ||
|
|
||
| .button_container { | ||
| width: 100%; | ||
| @media #{$breakpoint-dimension-md} { | ||
| width: auto; | ||
| } | ||
| } | ||
|
|
||
| .background_layout { | ||
| border-radius: 24px 0 0 0; | ||
| background: linear-gradient(163deg, #191919 -7.59%, #4016A0 33.77%, #3F59E4 64.58%, #4CB7A3 123.71%, #F6F1E7 165.82%); | ||
| width: 100%; | ||
| height: 428px; | ||
| } | ||
|
|
||
| .banner_image { | ||
| position: absolute; | ||
| } | ||
|
|
||
| .title { | ||
| font-size: 24px; | ||
| line-height: 114%; | ||
| letter-spacing: -1.12px; | ||
| margin-bottom: 12px; | ||
| @media #{$breakpoint-dimension-md} { | ||
| font-size: 56px; | ||
| } | ||
| } | ||
|
|
||
| .subtitle { | ||
| overflow: hidden; | ||
| color: var(--color_fg_neutral); | ||
| text-overflow: ellipsis; | ||
| font-size: 18px; | ||
| line-height: 27px; | ||
| letter-spacing: -0.05px; | ||
| margin-bottom: 24px; | ||
| } | ||
This file contains hidden or 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
34 changes: 34 additions & 0 deletions
34
src/features/common/components/handbook-banner/handbook-banner.component.tsx
This file contains hidden or 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,34 @@ | ||
| import Image from "next/image"; | ||
| import { LinkButton } from "../button/button.component"; | ||
| import styles from "./handbook-banner.module.scss"; | ||
|
|
||
| export const HandbookBanner = () => { | ||
| return ( | ||
| <div className={styles.container}> | ||
| <div className={styles.wrapper}> | ||
| <div className={styles.content}> | ||
| <div className={styles.left_container}> | ||
| <p className={styles.title}>Get the OpenID Handbook</p> | ||
| <p className={styles.subtitle}> | ||
| Download it now for free and get up-to-speed faster. | ||
| </p> | ||
| <div className={styles.button_container}> | ||
| <LinkButton | ||
| label="Download Ebook" | ||
| href="https://auth0.com/resources/ebooks/the-openid-connect-handbook?utm_source=openidconnect&utm_medium=gc_banner&utm_campaign=oidc_gc_banner_12_2019" | ||
| /> | ||
| </div> | ||
| </div> | ||
| <div className={styles.right_container}> | ||
| <Image | ||
| src={"/images/book.png"} | ||
| width={250} | ||
| height={250} | ||
| alt="openid connect handbook" | ||
| /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; |
72 changes: 72 additions & 0 deletions
72
src/features/common/components/handbook-banner/handbook-banner.module.scss
This file contains hidden or 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,72 @@ | ||
| @use "libs/theme/styles/variables" as *; | ||
| @use "libs/theme/styles/mixins" as *; | ||
|
|
||
| .container { | ||
| @include Container; | ||
| font-family: Aeonik; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| } | ||
|
|
||
| .wrapper { | ||
| @include ExtendedGrid; | ||
| } | ||
|
|
||
| .content { | ||
| margin: 4rem 2rem 20px; | ||
| color: var(--color_fg_link); | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| border-radius: 24px; | ||
| border: 0.5px solid var(--color_border_light); | ||
| background: var(--color_bg_layer_alternate); | ||
|
|
||
| @media #{$breakpoint-dimension-sm} { | ||
| display: flex; | ||
| flex-direction: row; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| .left_container { | ||
| padding: 2rem; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| @media #{$breakpoint-dimension-sm} { | ||
| align-items: flex-start; | ||
| } | ||
| } | ||
|
|
||
| .right_container { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| padding: 32px 72px 0px; | ||
| @media #{$breakpoint-dimension-md} { | ||
| padding: 60px 160px 0px; | ||
| } | ||
| } | ||
|
|
||
| .button_container { | ||
| width: 100%; | ||
| @media #{$breakpoint-dimension-md} { | ||
| width: auto; | ||
| } | ||
| } | ||
|
|
||
| .title { | ||
| font-size: 32px; | ||
| line-height: 40px; | ||
| letter-spacing: -0.5px; | ||
| margin-bottom: 12px; | ||
| } | ||
|
|
||
| .subtitle { | ||
| overflow: hidden; | ||
| color: var(--color_fg_neutral); | ||
| text-overflow: ellipsis; | ||
| font-size: 18px; | ||
| line-height: 27px; | ||
| letter-spacing: -0.05px; | ||
| margin-bottom: 24px; | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--font-mono