alert
This commit is contained in:
@ -10,6 +10,7 @@ export const theme: ThemeConfig = {
|
|||||||
colorBgBase: "#001529",
|
colorBgBase: "#001529",
|
||||||
borderRadius: 5,
|
borderRadius: 5,
|
||||||
fontFamily: "Comfortaa",
|
fontFamily: "Comfortaa",
|
||||||
|
colorWarningBg: "#001529",
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
Input: {
|
Input: {
|
||||||
|
|||||||
@ -97,5 +97,8 @@
|
|||||||
},
|
},
|
||||||
"News": {
|
"News": {
|
||||||
"ru": "Новости"
|
"ru": "Новости"
|
||||||
|
},
|
||||||
|
"BETA! Be aware about loosing ALL your data here, as well as unexpected service shutdowns, bugs and other beta's features :)": {
|
||||||
|
"ru" : "БЕТА! Помните, что ВСЕ ваши данные здесь могут быть утеряны, сервер может прилечь на неизвестное количество времени, ну и про баги-фичи тоже не забывайте :)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,9 +1,10 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./styles.css";
|
import "./styles.css";
|
||||||
import logo from "../../static/logo-full.png";
|
import logo from "../../static/logo-full.png";
|
||||||
import { Button } from "antd";
|
import { Alert, Button } from "antd";
|
||||||
import tr from "../config/translation";
|
import tr from "../config/translation";
|
||||||
import { isMobile } from "react-device-detect";
|
import { isMobile } from "react-device-detect";
|
||||||
|
import { WarningOutlined } from "@ant-design/icons";
|
||||||
|
|
||||||
const MainPage = () => {
|
const MainPage = () => {
|
||||||
return (
|
return (
|
||||||
@ -12,6 +13,15 @@ const MainPage = () => {
|
|||||||
<p style={{ fontSize: "2rem" }}>
|
<p style={{ fontSize: "2rem" }}>
|
||||||
{tr("Queuing has never been so simple")}
|
{tr("Queuing has never been so simple")}
|
||||||
</p>
|
</p>
|
||||||
|
<Alert
|
||||||
|
type="warning"
|
||||||
|
icon={<WarningOutlined />}
|
||||||
|
message={tr(
|
||||||
|
"BETA! Be aware about loosing ALL your data here, as well as unexpected service shutdowns, bugs and other beta's features :)"
|
||||||
|
)}
|
||||||
|
showIcon
|
||||||
|
style={{ marginBottom: "1rem" }}
|
||||||
|
/>
|
||||||
<div className="button-box">
|
<div className="button-box">
|
||||||
<Button size="large">{tr("Join a queue")}</Button>
|
<Button size="large">{tr("Join a queue")}</Button>
|
||||||
{!(
|
{!(
|
||||||
|
|||||||
Reference in New Issue
Block a user