Skip to content

Commit

Permalink
feat(ui): update influxdbu announcement (#6860)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavarius authored Feb 13, 2024
1 parent 6ef8a62 commit 167c4c6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 17 deletions.
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

0 comments on commit 167c4c6

Please sign in to comment.