-
Notifications
You must be signed in to change notification settings - Fork 261
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
feat(funnels): Informative Screen and StepHeadline component #4321
Conversation
…app-directory-helloworld
…app-directory-helloworld
…app-directory-helloworld
Co-authored-by: Ante Barić <ante@kickass.website>
…nto feat-app-directory-helloworld
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
packages/shared/src/styles/base.css
Outdated
.bg-gradient-funnel { | ||
&-default { | ||
background: radial-gradient(100% 22.49% at 100% -10%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-cabbage-baseline) 100%), | ||
radial-gradient(100% 22.49% at 0% -10%, var(--theme-accent-onion-default) 0%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-top { | ||
background: radial-gradient(192.5% 100% at 50% 0%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-onion-default) 50%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-circle { | ||
background: radial-gradient(94% 48.83% at 50% 0%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-onion-default) 75.12%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-hourglass { | ||
background: radial-gradient(192.5% 100% at 50% 100%, #CE3DF3 0%, rgba(206, 61, 243, 0) 50%), | ||
radial-gradient(192.5% 100% at 50% 0%, #7147ED 0%, rgba(113, 71, 237, 0) 50%); | ||
} | ||
} |
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.
Added those gradient using theme variables cc @rebelchris @sshanzel
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.
Ah ok it's better like this yeah :)
Not 100% ideal but let's go with this.
packages/shared/src/styles/base.css
Outdated
/** | ||
* Current old colors, these should all be changed to one of the above matching ones. | ||
*/ | ||
--theme-active: theme('colors.raw.salt.90') 33; |
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.
This space will break the usage :)
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.
@rebelchris reverted space changes 🙏
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.
Just check the base.css the spaces will break our app.
packages/shared/src/styles/base.css
Outdated
.bg-gradient-funnel { | ||
&-default { | ||
background: radial-gradient(100% 22.49% at 100% -10%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-cabbage-baseline) 100%), | ||
radial-gradient(100% 22.49% at 0% -10%, var(--theme-accent-onion-default) 0%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-top { | ||
background: radial-gradient(192.5% 100% at 50% 0%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-onion-default) 50%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-circle { | ||
background: radial-gradient(94% 48.83% at 50% 0%, var(--theme-accent-cabbage-default) 0%, var(--theme-accent-onion-default) 75.12%, var(--theme-accent-onion-baseline) 100%); | ||
} | ||
|
||
&-hourglass { | ||
background: radial-gradient(192.5% 100% at 50% 100%, #CE3DF3 0%, rgba(206, 61, 243, 0) 50%), | ||
radial-gradient(192.5% 100% at 50% 0%, #7147ED 0%, rgba(113, 71, 237, 0) 50%); | ||
} | ||
} |
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.
Ah ok it's better like this yeah :)
Not 100% ideal but let's go with this.
packages/shared/tailwind/colors.ts
Outdated
@@ -93,6 +93,7 @@ const colors = { | |||
90: '#D9113A', | |||
}, | |||
cabbage: { | |||
0: '#E669FB00', |
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.
We probably have this already no? it's just a gradient version.
We use the color-mix for that normally.
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.
I don't think this variable ended up being used at all, so I removed it
Changes
Informative Step of the web funnel. Can also be reused for "McKInsey Graph" as it seems to be the same component, just with image / text reversed.
Samples
Informative:

McKinsey:

Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Jira ticket
MI-847
Preview domain
https://mi-847.preview.app.daily.dev