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

Fix sidebar issues and icon wrapping

parent f6cfbf47
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ module }: ModuleCardProps) => { ...@@ -42,7 +42,7 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ module }: ModuleCardProps) => {
textColor = "#000"; textColor = "#000";
} }
return ( return (
<Col xs={12} sm={12} md={6} lg={6} xl={4} style={{ marginTop: "1.875rem" }}> <Col xs={12} sm={12} md={6} lg={4} xl={3} style={{ marginTop: "1.875rem" }}>
<Card <Card
className={classNames(styles.moduleCard)} className={classNames(styles.moduleCard)}
as={Link} as={Link}
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
padding: 0.5rem; padding: 0.5rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 1.125rem;
} }
.moduleCard :global(.card-body) { .moduleCard :global(.card-body) {
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
display: block; display: block;
top: 0; top: 0;
left: 0; left: 0;
width: 250px; width: 15.625rem;
height: calc(100vh - 61px); height: calc(100vh - 3.8125rem);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
transition: visibility 0.5s ease-in-out, transform 0.5s ease-in-out; transition: visibility 0.5s ease-in-out, transform 0.5s ease-in-out;
z-index: 5000; z-index: 5000;
margin-top: 61px; margin-top: 3.8125rem;
padding-bottom: 1.875rem; padding-bottom: 1.875rem;
background: #fff; background: #fff;
box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.1); box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.1);
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
display: block; display: block;
top: 0; top: 0;
right: 0; right: 0;
width: 250px; width: 15.625rem;
height: calc(100vh - 61px); height: calc(100vh - 3.813rem);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
transition: visibility 0.5s ease-in-out, transform 0.5s ease-in-out; transition: visibility 0.5s ease-in-out, transform 0.5s ease-in-out;
z-index: 5000; z-index: 5000;
margin-top: 61px; margin-top: 3.813rem;
padding-bottom: 1.875rem; padding-bottom: 1.875rem;
background: #fff; background: #fff;
box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.1); box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.1);
......
...@@ -39,12 +39,7 @@ const ModuleFeedback: React.FC = () => { ...@@ -39,12 +39,7 @@ const ModuleFeedback: React.FC = () => {
<Col xs={12} sm={6} md={6} lg={4} xl={3} key={i}> <Col xs={12} sm={6} md={6} lg={4} xl={3} key={i}>
<Card className={styles.quickViewCard}> <Card className={styles.quickViewCard}>
<Card.Header> <Card.Header>
<div className={styles.assessmentIcons}> <span className={styles.assessmentResult}>40 / 50</span>
<FontAwesomeIcon icon={faClock} />
<FontAwesomeIcon icon={faExclamationTriangle} />
<FontAwesomeIcon icon={faCalendarPlus} />
</div>
<span>40 / 50</span>
</Card.Header> </Card.Header>
<Card.Img variant="top" src={graphIllustration} /> <Card.Img variant="top" src={graphIllustration} />
<Card.Body> <Card.Body>
......
...@@ -8,9 +8,8 @@ ...@@ -8,9 +8,8 @@
margin-top: 1rem; margin-top: 1rem;
} }
.assessmentIcons > * { .assessmentResult{
margin-right: .5rem; float: right;
height: 1.125rem;
} }
.searchBar { .searchBar {
......
...@@ -7,13 +7,19 @@ import MyBreadcrumbs from "components/atoms/MyBreadcrumbs"; ...@@ -7,13 +7,19 @@ import MyBreadcrumbs from "components/atoms/MyBreadcrumbs";
import graphIllustration from "assets/images/graph-illustration.svg"; import graphIllustration from "assets/images/graph-illustration.svg";
import InputGroup from "react-bootstrap/InputGroup"; import InputGroup from "react-bootstrap/InputGroup";
import FormControl from "react-bootstrap/FormControl"; import FormControl from "react-bootstrap/FormControl";
import Carousel from "react-bootstrap/Carousel";
import Button from "react-bootstrap/Button"; import Button from "react-bootstrap/Button";
import Badge from "react-bootstrap/Badge"; import Badge from "react-bootstrap/Badge";
import Card from "react-bootstrap/Card"; import Card from "react-bootstrap/Card";
import Row from "react-bootstrap/esm/Row"; import Row from "react-bootstrap/esm/Row";
import Col from "react-bootstrap/esm/Col"; import Col from "react-bootstrap/esm/Col";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faInfoCircle, faFile } from "@fortawesome/free-solid-svg-icons"; import {
faInfoCircle,
faFile,
faFolder,
} from "@fortawesome/free-solid-svg-icons";
const ModuleResources: React.FC = () => { const ModuleResources: React.FC = () => {
useEffect(() => { useEffect(() => {
...@@ -52,10 +58,16 @@ const ModuleResources: React.FC = () => { ...@@ -52,10 +58,16 @@ const ModuleResources: React.FC = () => {
/> />
</Card.Body> </Card.Body>
<Card.Footer> <Card.Footer>
<Badge pill className={classNames(styles.quickViewTag, styles.tagTeal)}> <Badge
pill
className={classNames(styles.quickViewTag, styles.tagTeal)}
>
New New
</Badge> </Badge>
<Badge pill className={classNames(styles.quickViewTag, styles.tagBlue)}> <Badge
pill
className={classNames(styles.quickViewTag, styles.tagBlue)}
>
Week 1 Week 1
</Badge> </Badge>
</Card.Footer> </Card.Footer>
...@@ -78,7 +90,7 @@ const ModuleResources: React.FC = () => { ...@@ -78,7 +90,7 @@ const ModuleResources: React.FC = () => {
<Card.Text style={{ marginBottom: 0 }}>Folder {i}</Card.Text> <Card.Text style={{ marginBottom: 0 }}>Folder {i}</Card.Text>
<FontAwesomeIcon <FontAwesomeIcon
style={{ fontSize: "1.125rem" }} style={{ fontSize: "1.125rem" }}
icon={faFile} icon={faFolder}
/> />
</Card.Body> </Card.Body>
</Card> </Card>
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
} }
.searchBar { .searchBar {
border-radius: .5rem; border-radius: 0.5rem;
background-color: $gray-100; background-color: $gray-100;
border-color: $gray-100; border-color: $gray-100;
transition: 0.2s background-color; transition: 0.2s background-color;
-webkit-transition: 0.2s background-color; -webkit-transition: 0.2s background-color;
-moz-transition: 0.2s back-ground-color; -moz-transition: 0.2s back-ground-color;
} }
...@@ -22,22 +22,22 @@ ...@@ -22,22 +22,22 @@
opacity: 1; opacity: 1;
} }
.searchBar:focus + :global(.input-group-append) .searchBarIcon{ .searchBar:focus + :global(.input-group-append) .searchBarIcon {
box-shadow: none !important; box-shadow: none !important;
border-left: none; border-left: none;
border-color: $gray-300; border-color: $gray-300;
background-color: $white; background-color: $white;
} }
.searchBar:focus{ .searchBar:focus {
box-shadow: none !important; box-shadow: none !important;
border-right: none; border-right: none;
border-color: $gray-300; border-color: $gray-300;
background-color: $white; background-color: $white;
} }
.searchBarIcon { .searchBarIcon {
border-radius: .5rem; border-radius: 0.5rem;
background-color: $gray-100; background-color: $gray-100;
border-color: $gray-100; border-color: $gray-100;
color: $gray-500; color: $gray-500;
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
.quickViewCard { .quickViewCard {
margin-top: 1.25rem; margin-top: 1.25rem;
border-radius: .5rem; border-radius: 0.5rem;
border-color: $gray-300; border-color: $gray-300;
transition: transform 0.2s; transition: transform 0.2s;
} }
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
} }
.quickViewCard :global(.card-img-top) { .quickViewCard :global(.card-img-top) {
border-top-left-radius: .5rem; border-top-left-radius: 0.5rem;
border-top-right-radius: .5rem; border-top-right-radius: 0.5rem;
} }
$blue-tag-background: transparentize($blue-100, 0.5); $blue-tag-background: transparentize($blue-100, 0.5);
...@@ -104,10 +104,10 @@ $teal-tag-background: transparentize($teal-100, 0.5); ...@@ -104,10 +104,10 @@ $teal-tag-background: transparentize($teal-100, 0.5);
.quickViewTag { .quickViewTag {
text-transform: uppercase; text-transform: uppercase;
font-size: .8rem; font-size: 0.8rem;
font-weight: 500; font-weight: 500;
border-radius: .33rem; border-radius: 0.33rem;
margin-right: .5rem; margin-right: 0.5rem;
} }
.tagBlue { .tagBlue {
...@@ -121,7 +121,7 @@ $teal-tag-background: transparentize($teal-100, 0.5); ...@@ -121,7 +121,7 @@ $teal-tag-background: transparentize($teal-100, 0.5);
} }
.folderCard { .folderCard {
border-radius: .5rem; border-radius: 0.5rem;
transition: transform 0.2s; transition: transform 0.2s;
margin-top: 0.67rem; margin-top: 0.67rem;
} }
...@@ -140,4 +140,4 @@ $teal-tag-background: transparentize($teal-100, 0.5); ...@@ -140,4 +140,4 @@ $teal-tag-background: transparentize($teal-100, 0.5);
} }
@media (min-width: 62rem) { @media (min-width: 62rem) {
} }
\ No newline at end of file
...@@ -52,7 +52,7 @@ const StandardView: React.FC<StandardViewProps> = ({ ...@@ -52,7 +52,7 @@ const StandardView: React.FC<StandardViewProps> = ({
</Switch> </Switch>
<div id="sidenav-overlay" onClick={(e) => onOverlayClick(e)}></div> <div id="sidenav-overlay" onClick={(e) => onOverlayClick(e)}></div>
<Container className={classNames("px-4", "pageContainer")}> <Container className={classNames("px-3", "pageContainer")}>
<Switch> <Switch>
<Route path="/dashboard"> <Route path="/dashboard">
<ExamplePage name="Dashboard" /> <ExamplePage name="Dashboard" />
......
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