Newer
Older
import React from "react";
import styles from "./style.module.scss";
import MyBreadcrumbs from "components/atoms/MyBreadcrumbs";
import InputGroup from "react-bootstrap/InputGroup";
import FormControl from "react-bootstrap/FormControl";
import Button from "react-bootstrap/Button";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faInfoCircle } from "@fortawesome/free-solid-svg-icons";
import QuickAccess from "components/molecules/QuickAccess";
import ResourceFolders from "components/molecules/ResourceFolders";
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
let folderItems = [
{
title: "Lecture Materials",
id: 0,
},
{
title: "Panopto Videos",
id: 1,
},
{
title: "Tutorial Sheets",
id: 2,
},
{
title: "Code",
id: 3,
},
{
title: "Useful Links",
id: 4,
},
{
title: "Other",
id: 5,
},
];
let quickAccessItems = [
{
title: "Notes 1",
type: "File",
tags:["new", "Week 1"],
id: 0,
},
{
title: "Slides 1 - 1UP",
type: "File",
tags:["new", "Week 2"],
id: 1,
},
{
title: "Circuit simulator",
type: "Link",
tags:["new", "Week 2"],
id: 2,
},
{
title: "C - Lecture 1",
type: "Panopto",
tags:["new"],
id: 3,
},
{
title: "Translation Validity",
type: "Link",
tags:["Week 2"],
id: 4,
},
{
title: "Revision Exercises",
type: "File",
tags:["Week 3"],
id: 5,
},
]
<InputGroup>
<FormControl
className={styles.searchBar}
aria-label="Search"
placeholder="Search..."
/>
<InputGroup.Append>
<Button className={styles.searchBarIcon}>
<FontAwesomeIcon size="1x" icon={faInfoCircle} />
</Button>
</InputGroup.Append>
<QuickAccess quickAccessItems={quickAccessItems}/>
<ResourceFolders folderItems={folderItems}/>