Skip to content
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

Merged
merged 94 commits into from
Apr 8, 2025

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Apr 2, 2025

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:
Screenshot 2025-04-02 at 14 09 46

McKinsey:
Screenshot 2025-04-02 at 14 10 10

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

ilasw and others added 26 commits March 18, 2025 15:22
Co-authored-by: Ante Barić <ante@kickass.website>
Copy link

vercel bot commented Apr 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Apr 7, 2025 1:51pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Apr 7, 2025 1:51pm

Comment on lines 811 to 829
.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%);
}
}
Copy link
Contributor

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

Copy link
Contributor

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.

/**
* Current old colors, these should all be changed to one of the above matching ones.
*/
--theme-active: theme('colors.raw.salt.90') 33;
Copy link
Contributor

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 :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rebelchris reverted space changes 🙏

Copy link
Contributor

@rebelchris rebelchris left a 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.

Comment on lines 811 to 829
.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%);
}
}
Copy link
Contributor

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.

@@ -93,6 +93,7 @@ const colors = {
90: '#D9113A',
},
cabbage: {
0: '#E669FB00',
Copy link
Contributor

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.

Copy link
Contributor Author

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

@AmarTrebinjac AmarTrebinjac merged commit 0558844 into feat-web-funnel Apr 8, 2025
10 checks passed
@AmarTrebinjac AmarTrebinjac deleted the MI-847 branch April 8, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants