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(ui): update influxdbu announcement #6860

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/images/influxdbu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/me/components/AnnouncementBlock.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@
}
}

.announcement-block--image-spacer {
padding: $cf-space-s $cf-space-2xl;
border-radius: $cf-radius;
display: inline-flex;
justify-content: center;
align-items: center;
width: 100%;

&.announcement-block--image-spacer__light {
background-color: $cf-grey-95;
}
}

.announcement-block--panel-body {
color: $cf-grey-55;
}
Expand Down
36 changes: 19 additions & 17 deletions src/me/components/CurrentAnnouncement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,49 @@
import React, {FC} from 'react'

// Components
import {InfluxColors} from '@influxdata/clockface'
import {AnnouncementBlock} from 'src/me/components/AnnouncementBlock'

// Assets
import iiotWebinarBanner from 'assets/images/iiot-webinar-banner.png'
import influxdbu from 'assets/images/influxdbu.svg'

export const CurrentAnnouncement: FC = () => {
const currentDate = new Date()
const targetDate = new Date('2023-11-06T05:00:00-07:00')
const targetDate = new Date('2024-02-06T01:00:00-07:00')

const outgoingAnnouncement = (
<AnnouncementBlock
body={
<p>
InfluxDB Clustered is the solution for organizations needing control
over their data and underlying infrastructure. Clustered turns any
InfluxDB instance into a production-ready cluster that can run
on-premises or in your private cloud. Keep your time series data where
you need it.
Discover through real-life use cases how companies use InfluxDB for
IIoT.
</p>
}
ctaLink="https://www.influxdata.com/blog/announcing-influxdb-clustered?utm_source=in-app&utm_medium=product&utm_campaign=2023_09_launch_clustered"
ctaText="Learn More Here"
iconColor={InfluxColors.Chartreuse}
title="Announcing InfluxDB Clustered"
ctaLink="https://www.influxdata.com/resources/industrial-iot-or-live-demo/"
ctaText="Save Your Spot"
icon={null}
title="Live Demo"
/>
)

const incomingAnnouncement = (
<AnnouncementBlock
image={<img src={iiotWebinarBanner} />}
image={
<div className="announcement-block--image-spacer announcement-block--image-spacer__light">
<img src={influxdbu} />
</div>
}
body={
<p>
Discover through real-life use cases how companies use InfluxDB for
IIoT.
In this training, we'll learn about a variety of third-party solutions
that can replace the task engine in InfluxDB 2.0. We'll also learn
about the advantages of each solution and some of the advancements to
the Python Client Library.
</p>
}
ctaLink="https://www.influxdata.com/resources/industrial-iot-or-live-demo/"
ctaLink="https://www.influxdata.com/training/influxdb-3-0-task-engine-training/?utm_source=in-app&utm_medium=product&utm_campaign=2024-02-22_Training_InfluxDBTaskEngine"
ctaText="Save Your Spot"
icon={null}
title="Live Demo"
title="New Live Training: InfluxDB 3.0 Task Engine"
/>
)

Expand Down