Skip to content

Commit 871ae21

Browse files
committed
Use consistent title formats on physics homepage
Both the capitalisation and the use of ampersands/and was inconsistent between sections! Also fix whitespace issues in the file itself.
1 parent 64bc012 commit 871ae21

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/app/components/site/phy/HomepagePhy.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const HomepageHero = () => {
6969
isStudent={false}/>
7070
</Col>
7171
</Row>
72-
</Container>
72+
</Container>
7373
</div>;
7474
}
7575
};
@@ -118,7 +118,7 @@ export const HomepagePhy = () => {
118118
useEffect( () => {document.title = SITE_TITLE;}, []);
119119

120120
const user = useAppSelector(selectors.user.orNull);
121-
121+
122122
const {data: news} = useGetNewsPodListQuery({subject: "physics"});
123123

124124
const [dashboardView, setDashboardView] = useState<"student" | "teacher" | undefined>(undefined);
@@ -158,16 +158,16 @@ export const HomepagePhy = () => {
158158
useEffect(() => {
159159
getEventsList({startIndex: 0, limit: 2, typeFilter: EventTypeFilter["All groups"], statusFilter: EventStatusFilter["Upcoming events"], stageFilter: [STAGE.ALL]});
160160
}, []);
161-
161+
162162
return <>
163163
<div id="homepage" className="homepage pb-5">
164164
<section id="dashboard">
165165
{isLoggedIn(user) && (isTutorOrAbove(user)
166166
? <TeacherDashboard assignmentsSetByMe={assignmentsSetByMe} quizzesSetByMe={isTutor(user) ? [] : quizzesSetByMe} groups={groups} myAssignments={myAssignments}
167-
myQuizAssignments={myQuizAssignments} streakRecord={streakRecord} dashboardView={dashboardView} setDashboardView={setDashboardView} />
167+
myQuizAssignments={myQuizAssignments} streakRecord={streakRecord} dashboardView={dashboardView} setDashboardView={setDashboardView} />
168168
: <StudentDashboard assignments={myAssignments} quizAssignments={myQuizAssignments} streakRecord={streakRecord} groups={groups} />)}
169169
</section>
170-
<section id="homepage-hero">
170+
<section id="homepage-hero">
171171
{!isLoggedIn(user) && <HomepageHero />}
172172
</section>
173173
<Container>
@@ -177,15 +177,15 @@ export const HomepagePhy = () => {
177177
<h3>Explore and learn!</h3>
178178
<div className="section-divider ms-2"/>
179179
</div>
180-
<ListViewCards cards={cards}/>
181-
</div>
180+
<ListViewCards cards={cards}/>
181+
</div>
182182
</section>
183183
<section id="events-news">
184184
<Row className="mt-5 row-cols-1 row-cols-lg-2">
185185
<div className="d-flex flex-column mt-3">
186186
<div className="d-flex">
187-
<h3>Upcoming Events</h3>
188-
<Link to="/events" className="news-events-link">More events</Link>
187+
<h3>Upcoming events</h3>
188+
<Link to="/events" className="news-events-link">More events</Link>
189189
<div className="section-divider-bold"/>
190190
</div>
191191
<ShowLoadingQuery
@@ -199,10 +199,10 @@ export const HomepagePhy = () => {
199199
</Row>;
200200
}}/>
201201
</div>
202-
<div className="d-flex flex-column mt-3">
202+
<div className="d-flex flex-column mt-3">
203203
<div className="d-flex">
204-
<h3>News & Features</h3>
205-
<Link to="/news" className="news-events-link">More news</Link>
204+
<h3>News and features</h3>
205+
<Link to="/news" className="news-events-link">More news</Link>
206206
<div className="section-divider-bold"/>
207207
</div>
208208
{news && <Row className="h-100">

0 commit comments

Comments
 (0)