File size: 4,895 Bytes
fc0f7bd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | import React from "react";
import { Stack } from "office-ui-fabric-react/lib/Stack";
import { mergeStyleSets } from "@uifabric/styling";
import { Text } from "office-ui-fabric-react/lib/Text";
import { localization } from "../Localization/localization";
import { ActionButton } from "office-ui-fabric-react/lib/Button";
export interface IIntroTabProps {
onNext: () => void;
}
export class IntroTab extends React.PureComponent <IIntroTabProps> {
private static readonly classNames = mergeStyleSets({
firstSection: {
padding: "43px 94px",
fontFamily: `"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif`,
backgroundColor: "#333333",
color: "#FFFFFF",
},
firstSectionTitle: {
fontSize: "60px",
lineHeight: "82px",
fontWeight: "100"
},
firstSectionSubtitle: {
fontSize: "60px",
lineHeight: "82px",
fontWeight: "500"
},
firstSectionBody: {
paddingTop: "30px",
paddingBottom: "70px",
maxWidth: "500px",
color: "#EBEBEB",
fontWeight: "300",
fontSize: "18px",
lineHeight: "24px",
},
lowerSection: {
padding: "50px 70px 90px 90px",
backgroundColor: "#F2F2F2",
color: "#333333",
flexGrow: 1
},
stepsContainer: {
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
borderBottom: "1px solid #CCCCCC",
paddingBottom: "38px"
},
boldStep: {
fontSize: "18px",
lineHeight: "24px",
fontWeight: "500",
maxWidth: "300px",
paddingRight: "25px",
flex: 1,
},
numericLabel: {
display:"inline-block",
fontSize: "18px",
lineHeight: "24px",
fontWeight: "700",
color: "#000000",
width: "30px"
},
stepLabel: {
color: "#333333",
fontSize: "18px",
lineHeight: "24px",
fontWeight: "500",
},
explanatoryStep: {
maxWidth: "300px",
paddingRight: "20px",
flex: 1
},
explanatoryText: {
paddingTop: "15px",
fontSize: "15px",
lineHeight: "20px",
color: "#666666"
},
getStarted: {
paddingTop: "30px",
color: "#333333",
fontSize: "18px",
lineHeight: "24px",
fontWeight: "500"
}
});
render(): React.ReactNode {
return (<Stack style={{height: "100%"}}>
<div className={IntroTab.classNames.firstSection}>
<div className={IntroTab.classNames.firstSectionTitle}>{localization.Intro.welcome}</div>
<div className={IntroTab.classNames.firstSectionSubtitle}>{localization.Intro.fairlearnDashboard}</div>
<div className={IntroTab.classNames.firstSectionBody}>{localization.Intro.introBody}</div>
</div>
<div className={IntroTab.classNames.lowerSection}>
<div className={IntroTab.classNames.stepsContainer}>
<div className={IntroTab.classNames.boldStep}>{localization.Intro.explanatoryStep}</div>
<div className={IntroTab.classNames.explanatoryStep}>
<div>
<span className={IntroTab.classNames.numericLabel}>01</span>
<span className={IntroTab.classNames.stepLabel}>{localization.Intro.features}</span>
</div>
<div className={IntroTab.classNames.explanatoryText}>{localization.Intro.featuresInfo}</div>
</div>
<div className={IntroTab.classNames.explanatoryStep}>
<div>
<span className={IntroTab.classNames.numericLabel}>02</span>
<span className={IntroTab.classNames.stepLabel}>{localization.Intro.accuracy}</span>
</div>
<div className={IntroTab.classNames.explanatoryText}>{localization.Intro.accuracyInfo}</div>
</div>
</div>
<Stack horizontalAlign={"center"}>
<ActionButton
iconProps={{iconName: "Forward"}}
className={IntroTab.classNames.getStarted}
onClick={this.props.onNext}>{localization.Intro.getStarted}</ActionButton>
</Stack>
</div>
</Stack>);
}
} |