forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a simple message on the webapp when it is configured to run in de…
…mo mode (airbytehq#1835)
- Loading branch information
1 parent
1a72a3e
commit 54f9979
Showing
10 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
airbyte-webapp/src/components/SingletonCard/SingletonCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { H5 } from "../Titles"; | ||
|
||
type IProps = { | ||
title: string | React.ReactNode; | ||
text: string | React.ReactNode; | ||
}; | ||
|
||
const Singleton = styled.div` | ||
position: fixed; | ||
bottom: 0px; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
padding: 25px 25px 22px; | ||
background: ${({ theme }) => theme.lightPrimaryColor}; | ||
border: 1px solid ${({ theme }) => theme.greyColor20}; | ||
box-shadow: 0px 1px 2px ${({ theme }) => theme.shadowColor}; | ||
border-radius: 8px; | ||
`; | ||
|
||
const Title = styled(H5)` | ||
margin-bottom: 5px; | ||
color: ${({ theme }) => theme.primaryColor}; | ||
font-style: normal; | ||
font-weight: bold; | ||
font-size: 15px; | ||
line-height: 18px; | ||
`; | ||
|
||
const Text = styled.div` | ||
color: ${({ theme }) => theme.mediumPrimaryColor}; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-size: 14px; | ||
line-height: 17px; | ||
`; | ||
|
||
const SingletonCard: React.FC<IProps> = props => ( | ||
<Singleton> | ||
<Title>{props.title}</Title> | ||
<Text>{props.text}</Text> | ||
</Singleton> | ||
); | ||
|
||
export default SingletonCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import SingletonCard from "./SingletonCard"; | ||
|
||
export default SingletonCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters