Skip to content

Commit

Permalink
Adding deprecation banner
Browse files Browse the repository at this point in the history
  • Loading branch information
tejitpabari-microsoft committed Nov 21, 2024
1 parent d03a50d commit 071b139
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/common/translations/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ const en = {
'diagnostic.package': 'Diagnostic Package',
docs: 'Documentation',
'docs.link': 'Link to documentation',
'deprecation.text': 'The Azure Maps Creator indoor map service is now deprecated and will be retired on 9/30/25. For more information, see',
'deprecation.link.text': 'End of Life Announcement of Azure Maps Creator',
'deprecation.link': 'https://aka.ms/AzureMapsCreatorDeprecation',
download: 'Download',
'download.diagnostics': 'Download Diagnostics',
'dwg.layers': 'DWG Layers',
Expand Down
20 changes: 20 additions & 0 deletions src/components/top-bar/top-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ import { useTranslation } from 'react-i18next';
import {
azMapsCreatorTextStyle,
barStyle,
deprecationBarStyle,
deprecationTextStyle,
deprecationLinkStyle,
docLink,
linksContainer,
logoContainer,
msftAzureTextStyle,
splitterStyle,
} from './top-bar.style';

import { Icon } from '@fluentui/react/lib/Icon';

const docsLink = 'https://learn.microsoft.com/en-us/azure/azure-maps/drawing-package-guide?pivots=drawing-package-v2';
const feedbackLink =
'https://feedback.azure.com/d365community/post/fc834083-0925-ec11-b6e6-000d3a4f09d0?page=1&sort=newest';
Expand All @@ -19,6 +24,7 @@ const TopBar = () => {
const { isPlacesPreview } = useFeatureFlags();

return (
<div>
<div className={barStyle}>
<div className={logoContainer}>
<span className={msftAzureTextStyle}>Microsoft Azure</span>
Expand All @@ -36,6 +42,20 @@ const TopBar = () => {
</a>
</div>
</div>
<div style={{display:'flex', justifyContent: 'center', alignItems: 'center'}}>
<div className={deprecationBarStyle}>
<Icon iconName='error'/>&nbsp;
<span className={deprecationTextStyle}>
{t('deprecation.text')}&nbsp;
<a className={deprecationLinkStyle} href={t('deprecation.link')} target='_blank' rel='noreferrer' aria-label={t('deprecation.link')}>
{t('deprecation.link.text')}
</a>
</span>

</div>
</div>

</div>
);
};

Expand Down
23 changes: 23 additions & 0 deletions src/components/top-bar/top-bar.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,29 @@ export const barStyle = css`
box-shadow: 0px 0px 0.625rem ${color.shadow};
`;

export const deprecationBarStyle = css`
background: #efd9fd;
color: red;
height: 2rem;
border-radius: 0.625rem;
margin: 0.625rem;
padding: 0.125rem;
padding-left: 2rem;
padding-right: 2rem;
text-align: center;
display: inline-flex;
align-items: center;
justify-content: center;
`;

export const deprecationTextStyle = css`
font-size: ${fontSize.xl};
`;

export const deprecationLinkStyle = css`
color: red;
`;

export const msftAzureTextStyle = css`
font-weight: ${fontWeight.semibold};
font-size: ${fontSize.lg};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/conversion/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { css, keyframes } from '@emotion/css';
import { color, fontSize, fontWeight } from 'common/styles';

export const container = css`
position: fixed;
// position: fixed;
top: 5.5rem;
height: calc(100% - 5.5rem - 2px);
width: calc(100% - 2.5rem);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/processing/processing.style.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from '@emotion/css';

export const containerStyle = css`
position: fixed;
// position: fixed;
width: 100%;
align-self: center;
height: 100%;
Expand Down

0 comments on commit 071b139

Please sign in to comment.