Skip to content

Commit 3a58614

Browse files
committed
Increase breakpoints to enable wider card widths
1 parent fbdc547 commit 3a58614

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/app/components/pages/TeacherFeatures.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const TeacherFeatures = () => {
5656
</Col>}
5757
</Row>
5858
<Row className="isaac-cards-body px-3">
59-
<Col sm={6} md={4} className="mb-3 mb-md-0">
59+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
6060
<TeacherFeatureCard
6161
url = "/groups"
6262
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#groups"
@@ -65,7 +65,7 @@ export const TeacherFeatures = () => {
6565
disabled = {isDisabled}
6666
/>
6767
</Col>
68-
<Col sm={6} md={4} className="mb-3 mb-md-0">
68+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
6969
<TeacherFeatureCard
7070
url = {PATHS.SET_ASSIGNMENTS}
7171
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#set-assignments"
@@ -74,8 +74,7 @@ export const TeacherFeatures = () => {
7474
disabled = {isDisabled}
7575
/>
7676
</Col>
77-
<Col xs={0} sm={3} className="d-md-none"/>
78-
<Col sm={6} md={4}>
77+
<Col md={{size: 6, offset: 3}} lg={{size: 4, offset: 0}}>
7978
<TeacherFeatureCard
8079
url = {PATHS.ASSIGNMENT_PROGRESS}
8180
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#track-progress"
@@ -89,24 +88,23 @@ export const TeacherFeatures = () => {
8988
<h4>Teacher Support</h4>
9089
</Row>
9190
<Row className="isaac-cards-body mt-2 px-3">
92-
<Col sm={6} md={4} className="mb-3 mb-md-0">
91+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
9392
<TeacherFeatureCard
9493
url = "/support/teacher/general"
9594
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#teacher-forum"
9695
title = "Teacher FAQ"
9796
subtitle = "Answers to your questions and how-to guides."
9897
/>
9998
</Col>
100-
<Col sm={6} md={4} className="mb-3 mb-md-0">
99+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
101100
<TeacherFeatureCard
102101
url = "/events?types=teacher"
103102
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#use-with-class"
104103
title = "Teacher CPD"
105104
subtitle = "Free short courses to help you use Isaac: by topic or by level of experience with Isaac."
106105
/>
107106
</Col>
108-
<Col xs={0} sm={3} className="d-md-none"/>
109-
<Col sm={6} md={4}>
107+
<Col md={{size: 6, offset: 3}} lg={{size: 4, offset: 0}}>
110108
<TeacherFeatureCard
111109
url = "/teacher_emails"
112110
imgSrc = "/assets/phy/icons/computer.svg"
@@ -120,24 +118,23 @@ export const TeacherFeatures = () => {
120118
<h4>Teacher Resources</h4>
121119
</Row>
122120
<Row className="isaac-cards-body mb-5 mt-2 px-3">
123-
<Col sm={6} md={4} className="mb-3 mb-md-0">
121+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
124122
<TeacherFeatureCard
125123
url = "/pages/order_books"
126124
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#skills-book-cover"
127125
title = "Isaac Books"
128126
subtitle = "Buy one of our Skills Mastery books at cost."
129127
/>
130128
</Col>
131-
<Col sm={6} md={4} className="mb-3 mb-md-0">
129+
<Col md={6} lg={4} className="mb-3 mb-lg-0">
132130
<TeacherFeatureCard
133131
url = "/pages/pre_made_gameboards"
134132
imgSrc = "/assets/phy/icons/key_stage_sprite.svg#triple"
135133
title = "Boards by Topic"
136134
subtitle = {isLoggedIn(user) ? "A selection of our questions organised by topic." : "A selection of our questions organised by lesson topic."}
137135
/>
138136
</Col>
139-
<Col xs={0} sm={3} className="d-md-none"/>
140-
<Col sm={6} md={4}>
137+
<Col md={{size: 6, offset: 3}} lg={{size: 4, offset: 0}}>
141138
<TeacherFeatureCard
142139
url = "/events?types=student"
143140
imgSrc = "/assets/phy/icons/teacher_features_sprite.svg#calendar"

0 commit comments

Comments
 (0)