Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit c5cd28d

Browse files
committed
name the guides as "Learn X"
1 parent a8fbdf2 commit c5cd28d

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

components/learn/subject-card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default ({ subject }) => (
8181
<i className={subject.icon} />
8282
</div>
8383
<div className="content">
84-
<h3 className="title">{subject.title}</h3>
84+
<h3 className="title">Learn {subject.title}</h3>
8585
<p className="subtitle" fontSize={[12, 14, 16]}>
8686
{subject.domain}
8787
</p>

pages/learn/subject.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,24 +130,19 @@ export default class Subject extends React.Component {
130130
}
131131

132132
render() {
133-
const subjectIcon = listOfSubjects.find(item => item.subjectId === this.props.url.query.subject).icon;
133+
const subject = listOfSubjects.find(item => item.subjectId === this.props.url.query.subject);
134134
return this.state.activeSubject === null ? (
135135
<Layout>
136136
<BannerSection
137137
textInverted
138-
title={this.props.url.query.subject.toUpperCase()}
138+
title={`Learn ${subject.title}`}
139139
subTitle={`Curriculum for ${this.props.url.query.subject.toUpperCase()} and others Coming soon!!`}
140-
icon={subjectIcon}
140+
icon={subject.icon}
141141
/>
142142
</Layout>
143143
) : (
144144
<Layout>
145-
<BannerSection
146-
textInverted
147-
title={this.props.url.query.subject.toUpperCase()}
148-
subTitle="Web Development"
149-
icon={subjectIcon}
150-
/>
145+
<BannerSection textInverted title={`Learn ${subject.title}`} subTitle={subject.domain} icon={subject.icon} />
151146
<CurriculumSection my={[0, 4]}>
152147
<Flex column={false}>
153148
{this.state.isSidebarOpen ? (

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy