intro video
parent
7fa7bd043b
commit
a24153ca70
13
env.example
13
env.example
|
@ -1 +1,12 @@
|
||||||
REACT_APP_RECAPTCHA_SITE_KEY=
|
REACT_APP_RECAPTCHA_SITE_KEY=
|
||||||
|
|
||||||
|
REACT_APP_PRIVACY_POLICY_URL=
|
||||||
|
|
||||||
|
REACT_APP_EMBED_CALENDAR_ADDRESS=
|
||||||
|
REACT_APP_EMBED_CALENDAR_SCRIPT_ADDRESS=
|
||||||
|
|
||||||
|
REACT_APP_CLARITY_PROJECT_ID=
|
||||||
|
REACT_APP_SUPPORT_EMAIL=
|
||||||
|
REACT_APP_ZEITADLER_HOMEPAGE_PRICING=
|
||||||
|
|
||||||
|
REACT_APP_DASHBOARD_INTRODUCTION_VIDEO=""
|
|
@ -130,6 +130,9 @@
|
||||||
"paymentPlanTrailingDaysLeft": "{{daysLeft}} {{dayUnit}} verbleibend",
|
"paymentPlanTrailingDaysLeft": "{{daysLeft}} {{dayUnit}} verbleibend",
|
||||||
"paymentPlanUpgradeButton": "Jetzt upgraden"
|
"paymentPlanUpgradeButton": "Jetzt upgraden"
|
||||||
},
|
},
|
||||||
|
"dashboard": {
|
||||||
|
"pageTitle": "Einführung"
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"pageTitle": "Mitarbeiter",
|
"pageTitle": "Mitarbeiter",
|
||||||
"addEmployee": "Mitarbeiter anlegen",
|
"addEmployee": "Mitarbeiter anlegen",
|
||||||
|
|
|
@ -130,6 +130,9 @@
|
||||||
"paymentPlanTrailingDaysLeft": "{{daysLeft}} {{dayUnit}} left",
|
"paymentPlanTrailingDaysLeft": "{{daysLeft}} {{dayUnit}} left",
|
||||||
"paymentPlanUpgradeButton": "Upgrade now"
|
"paymentPlanUpgradeButton": "Upgrade now"
|
||||||
},
|
},
|
||||||
|
"dashboard": {
|
||||||
|
"pageTitle": "Introduction"
|
||||||
|
},
|
||||||
"employees": {
|
"employees": {
|
||||||
"pageTitle": "Employees",
|
"pageTitle": "Employees",
|
||||||
"addEmployee": "Add employee",
|
"addEmployee": "Add employee",
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
export default function MyCenteredContainer({ children, fullHeight = false }) {
|
export default function MyCenteredContainer({
|
||||||
|
children,
|
||||||
|
fullHeight = false,
|
||||||
|
height = "100vh",
|
||||||
|
}) {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
@ -7,7 +11,7 @@ export default function MyCenteredContainer({ children, fullHeight = false }) {
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignContent: "center",
|
alignContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
height: fullHeight ? "100vh" : "85.3vh",
|
height: fullHeight ? height : "85.3vh",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|
|
@ -1,13 +1,30 @@
|
||||||
import { Card } from "antd";
|
import { Card, Spin } from "antd";
|
||||||
|
import { useState } from "react";
|
||||||
|
import MyCenteredContainer from "../../Components/MyContainer";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card title="Dashboard" style={{ height: "100%" }}>
|
<Card title={t("dashboard.pageTitle")}>
|
||||||
|
{isLoading && (
|
||||||
|
<MyCenteredContainer fullHeight height={616}>
|
||||||
|
<Spin size="large" />
|
||||||
|
</MyCenteredContainer>
|
||||||
|
)}
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src="https://www.youtube.com/watch?v=iSwaz71_YkE"
|
src={process.env.REACT_APP_DASHBOARD_INTRODUCTION_VIDEO}
|
||||||
|
onLoad={() => setIsLoading(false)}
|
||||||
|
width={1096}
|
||||||
|
height={616}
|
||||||
style={{
|
style={{
|
||||||
width: "100%",
|
border: "none",
|
||||||
height: "100%",
|
zIndex: 2,
|
||||||
|
display: isLoading ? "none" : "block",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
Loading…
Reference in New Issue