Skip to content

BGDIINF_SB-2678 Made the test banner dynamic based on hostname#322

Merged
procrastinatio merged 1 commit intodevelopfrom
feat_BGDIINF_SB-2678_warning_banners
Dec 20, 2022
Merged

BGDIINF_SB-2678 Made the test banner dynamic based on hostname#322
procrastinatio merged 1 commit intodevelopfrom
feat_BGDIINF_SB-2678_warning_banners

Conversation

@procrastinatio
Copy link
Contributor

@procrastinatio procrastinatio commented Dec 7, 2022

Display a warning ribbon like: https://test.map.geo.admin.ch/

The test link won't work as the ribbon is only shown if DEV_SITE_WARNING is set to False and the hostname is matching WARNING_RIBBON_HOSTNAMES. Build locally and run npm run preview (production preview)

Test link

@procrastinatio procrastinatio marked this pull request as draft December 7, 2022 13:42
@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2678_warning_banners branch from 4220477 to fd3c3af Compare December 8, 2022 12:50
@procrastinatio procrastinatio marked this pull request as ready for review December 8, 2022 12:50
@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2678_warning_banners branch from fd3c3af to 3401fee Compare December 8, 2022 12:52
@procrastinatio procrastinatio requested review from jedef and pakb December 9, 2022 10:34
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

The current big test banner should be not set based on configuration variable but on location hostname.

@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2678_warning_banners branch 3 times, most recently from ed266f5 to 42aa6d3 Compare December 14, 2022 15:40
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Good work

@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2678_warning_banners branch from 42aa6d3 to 2daf3be Compare December 16, 2022 12:17
line-height: 50px;
letter-spacing: 1px;
font-weight: bold;
font-size: 2em;
Copy link
Contributor

Choose a reason for hiding this comment

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

I personally prefer without the font-size (maybe matter of taste):

With font-size 2em:
image

Without font-size:
image

Without looks more similar to the current ribbon banner on test.map.geo.admin.ch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, as you want.

@procrastinatio procrastinatio force-pushed the feat_BGDIINF_SB-2678_warning_banners branch from e47280d to b3d5a86 Compare December 20, 2022 10:21
@procrastinatio procrastinatio merged commit 5be5818 into develop Dec 20, 2022
@procrastinatio procrastinatio deleted the feat_BGDIINF_SB-2678_warning_banners branch December 20, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants