From b560e407bd7012a46e203ec587824fc1b2f46b68 Mon Sep 17 00:00:00 2001
From: Alex Lewin
Date: Tue, 4 Mar 2025 16:59:09 +0000
Subject: [PATCH 1/5] Restyle Teacher Features cards
---
src/app/components/pages/TeacherFeatures.tsx | 141 ++++++++++---------
src/scss/phy/menu-page-phy.scss | 24 ++--
2 files changed, 86 insertions(+), 79 deletions(-)
diff --git a/src/app/components/pages/TeacherFeatures.tsx b/src/app/components/pages/TeacherFeatures.tsx
index 3423a323ca..3224958821 100644
--- a/src/app/components/pages/TeacherFeatures.tsx
+++ b/src/app/components/pages/TeacherFeatures.tsx
@@ -1,10 +1,10 @@
import React from "react";
-import {Button, Col, Container, Row} from "reactstrap";
+import {Button, Card, Col, Container, Row} from "reactstrap";
import {TitleAndBreadcrumb} from "../elements/TitleAndBreadcrumb";
import {useAppSelector, selectors} from "../../state";
import {isLoggedIn, isTeacherOrAbove, PATHS} from "../../services";
import {Link} from "react-router-dom";
-import {IsaacCard} from "../content/IsaacCard";
+import classNames from "classnames";
export const TeacherFeatures = () => {
@@ -12,6 +12,27 @@ export const TeacherFeatures = () => {
const isDisabled = !isLoggedIn(user) || !isTeacherOrAbove(user);
+ interface TeacherFeatureCardProps {
+ url: string;
+ imgSrc: string;
+ title: string;
+ subtitle: string;
+ disabled?: boolean;
+ }
+
+ const TeacherFeatureCard = (props: TeacherFeatureCardProps) => {
+ const {url, imgSrc, title, subtitle, disabled} = props;
+ return
+
+
+
{title}
+

+
+ {subtitle}
+
+ ;
+ };
+
return
@@ -36,37 +57,31 @@ export const TeacherFeatures = () => {
-
-
-
@@ -77,35 +92,29 @@ export const TeacherFeatures = () => {
-
-
-
@@ -116,34 +125,28 @@ export const TeacherFeatures = () => {
-
-
-
diff --git a/src/scss/phy/menu-page-phy.scss b/src/scss/phy/menu-page-phy.scss
index c604f754b7..1207e1d778 100644
--- a/src/scss/phy/menu-page-phy.scss
+++ b/src/scss/phy/menu-page-phy.scss
@@ -17,12 +17,6 @@
margin-bottom: 15px;
display: flex;
position: relative;
-
- &.teacher-features {
- display: block;
- width: 62.5%;
- margin-left: 18.75%;
- }
}
.col-centered{
@@ -87,6 +81,20 @@
border-radius: 0;
outline: none !important;
}
+
+ &.teacher-features {
+ border-radius: 8px;
+ border: 2px solid $color-neutral-200;
+ img {
+ width: 15%;
+ }
+ &.disabled {
+ box-shadow: none !important;
+ img {
+ filter: grayscale(1);
+ }
+ }
+ }
}
button.hexagon-btn-link {
@@ -170,10 +178,6 @@
margin-right: auto !important;
margin-left: auto !important;
display: block;
-
- &.teacher-features {
- width: 150px;
- }
}
&.disabled {
From 4279fc1000090a97f040eda0227c5bd0baa7dfd9 Mon Sep 17 00:00:00 2001
From: Alex Lewin
Date: Tue, 4 Mar 2025 17:01:34 +0000
Subject: [PATCH 2/5] Left-align headings
---
src/app/components/pages/TeacherFeatures.tsx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/app/components/pages/TeacherFeatures.tsx b/src/app/components/pages/TeacherFeatures.tsx
index 3224958821..73ec2bc99c 100644
--- a/src/app/components/pages/TeacherFeatures.tsx
+++ b/src/app/components/pages/TeacherFeatures.tsx
@@ -86,9 +86,7 @@ export const TeacherFeatures = () => {
-
- Teacher Support
-
+ Teacher Support
@@ -119,9 +117,7 @@ export const TeacherFeatures = () => {
-
- Teacher Resources
-
+ Teacher Resources
From 9421a6ec3fff94e9b288422d08599f6151d2d86b Mon Sep 17 00:00:00 2001
From: Alex Lewin
Date: Tue, 4 Mar 2025 17:05:01 +0000
Subject: [PATCH 3/5] Replace hardcoded "Isaac Physics" with "Isaac"
---
src/app/components/pages/TeacherFeatures.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/app/components/pages/TeacherFeatures.tsx b/src/app/components/pages/TeacherFeatures.tsx
index 73ec2bc99c..68abf80edf 100644
--- a/src/app/components/pages/TeacherFeatures.tsx
+++ b/src/app/components/pages/TeacherFeatures.tsx
@@ -33,7 +33,7 @@ export const TeacherFeatures = () => {
;
};
- return
+ return
@@ -43,11 +43,11 @@ export const TeacherFeatures = () => {
{isDisabled ?
- Isaac Physics provides you with a huge range of resources to support your teaching of Physics – all for free.
+ Isaac provides you with a huge range of resources to support your teaching of Science subjects – all for free.
:
- Isaac Physics provides you with a huge range of resources to support your teaching of Physics – all for free.
+ Isaac provides you with a huge range of resources to support your teaching of Science subjects – all for free.
}
{isDisabled &&