Skip to content
Snippets Groups Projects
Commit 07e14381 authored by danieldeng2's avatar danieldeng2
Browse files

Create empty components for timeline

parent 21ba6cc2
No related branches found
No related tags found
No related merge requests found
import React from "react";
import Card from "react-bootstrap/Card";
const ModuleHeading: React.FC = () => {
return (
<Card>
</Card>
);
};
export default ModuleHeading;
import React from "react";
import styles from "./style.module.scss";
import ButtonGroup from "react-bootstrap/ButtonGroup";
import Button from "react-bootstrap/Button";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faLeaf, faSeedling, faSun } from "@fortawesome/free-solid-svg-icons";
const TermSwitcher: React.FC = () => {
return (
<>
<ButtonGroup style={{ float: "right" }}>
<Button
className={styles.termSwitch}
active={true}
variant="secondary"
>
<FontAwesomeIcon icon={faLeaf}/>
</Button>
<Button
className={styles.termSwitch}
active={false}
variant="secondary"
>
<FontAwesomeIcon icon={faSeedling}/>
</Button>
<Button
className={styles.termSwitch}
active={false}
variant="secondary"
>
<FontAwesomeIcon icon={faSun}/>
</Button>
</ButtonGroup>
</>
);
};
export default TermSwitcher;
.termSwitch {
background-color: var(--primary-button);
color: var(--primary-button-text);
border-width: 0px;
border-radius: 8px;
margin-left: 20px;
justify-content: space-between;
height: 2.25rem;
font-size: 1.05rem;
transition: 0.2s background-color;
-webkit-transition: 0.2s background-color;
-moz-transition: 0.2s background-color;
}
.termSwitch:active,
.termSwitch:global(.active) {
background: var(--primary-button-active) !important;
color: var(--primary-button-text-active) !important;
font-weight: 500;
text-align: left;
border-width: 0rem;
height: 2.25rem;
line-height: 1.375rem;
}
.termSwitch:hover {
background-color: var(--primary-button-hover);
color: var(--primary-button-text);
box-shadow: none !important;
}
import React from "react";
const WeekHeading: React.FC = () => {
return (
<>
</>
);
};
export default WeekHeading;
\ No newline at end of file
import React from "react";
import MyBreadcrumbs from "components/atoms/MyBreadcrumbs";
import styles from "./style.module.scss";
import TermSwitcher from "./components/TermSwitcher";
interface TimelineProps {
initSideBar: () => void;
revertSideBar: () => void;
initSideBar: () => void;
revertSideBar: () => void;
}
class Timeline extends React.Component<TimelineProps, {}> {
componentDidMount() {;
this.props.initSideBar();
componentDidMount() {
this.props.initSideBar();
}
componentWillUnmount() {
......@@ -16,8 +18,12 @@ class Timeline extends React.Component<TimelineProps, {}> {
}
render() {
return <></>;
return (
<div className={styles.timelineContainer}>
<MyBreadcrumbs />
{/* <TermSwitcher/> */}
</div>
);
}
}
......
.timelineContainer {
margin-top: 1.875rem;
margin-left: 1.875rem;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment