CourseSectionCard.tsx 2.04 KB
Newer Older
1
2
import * as React from 'react';
import { Button, Card, CardBody, CardTitle, Col, Row } from 'reactstrap';
David Haynes's avatar
David Haynes committed
3
4
5
6
7
8
9
import CourseSection from '../util/CourseSection';

interface CourseSectionCardProps {
    courseSectionAction: (courseSection: CourseSection) => void;
    courseSection: CourseSection;
    courseSectionActionButtonText: string;
}
10
11
12

require('../css/button-text-override.css');

David Haynes's avatar
David Haynes committed
13
14
15
16
17
const CourseSectionCard = ({
    courseSection,
    courseSectionAction,
    courseSectionActionButtonText,
}: CourseSectionCardProps) => (
18
    <Row className="justify-content-center">
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
        <Col md="9">
            <Card>
                <CardBody>
                    <CardTitle className="mb-4">
                        <i className="fas fa-hashtag" /> 78212
                    </CardTitle>
                    <Row>
                        <Col md="6">
                            <div className="mb-4">
                                <h4>Senior Adv Design Project I</h4>
                                <p>CYSE 492 - 001</p>
                            </div>
                            <i className="fas fa-chalkboard-teacher fa-fw" /> Gino J Manzo
                            <br />
                            <i className="fas fa-clock fa-fw" /> Thursdays, 4:30 pm - 6:20 pm
                            <br />
                            <i className="fas fa-school fa-fw" /> James Buchanan Hall D023
                        </Col>
                        <Col md="6">
David Haynes's avatar
David Haynes committed
38
39
40
41
42
43
44
                            <Button
                                onClick={() => courseSectionAction(courseSection)}
                                color="primary"
                                size="lg"
                                block
                                className="shadow-sm mt-3">
                                <i className="fas fa-plus-circle mr-2 fa-fw" /> {courseSectionActionButtonText}
45
46
47
48
49
50
51
52
53
54
                            </Button>
                        </Col>
                    </Row>
                </CardBody>
            </Card>
        </Col>
    </Row>
);

export default CourseSectionCard;