Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
refactor: HelpGov -> AskGov (#11)
Browse files Browse the repository at this point in the history
Take the chance to change meta `theme-color`
  • Loading branch information
nauynix authored Aug 3, 2021
1 parent 4b40b65 commit 7e63501
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 16 deletions.
7 changes: 4 additions & 3 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/LogoGlyphMd.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="black">
<title>AskGov</title>
<meta
name="description"
content="Web site created using create-react-app"
content="Answers from the Singapore Government"
/>

<title>HelpGov</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap"
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Header/Header.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Header = () => {
className="navbar-brand"
to={agency ? `/agency/${agency.shortname}` : '/'}
>
<Logo className="helpgov-name" />
<Logo className="askgov-name" />
{agency ? (
<>
<Text
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Header/Header.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
top: 8px;
}

.helpgov-name {
.askgov-name {
// @include logofont;
// color: white;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/PageTitle/PageTitle.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import Helmet from 'react-helmet'

const PageTitle = ({ title }) => {
let defaultTitle = 'HelpGov'
let defaultTitle = 'AskGov'

return (
<Helmet>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Login/Login.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Login = () => {
return (
<div className="login-page">
<Spacer h={['64px', '64px', '84px']} />
<h2>HelpGov</h2>
<h2>AskGov</h2>
<p>Official Government Help Center</p>
<AuthForm />
<Spacer minH={20} />
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Post/Post.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Post = () => {
<Spinner type="page" width="75px" height="200px" />
) : (
<>
<PageTitle title={`${post.title} - HelpGov`} />
<PageTitle title={`${post.title} - AskGov`} />
<div className="post-page">
<Flex pb="14px" align="center">
<BackButtonForPostDetail agencyShortName={agencyShortName} />
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/SearchResults/SearchResults.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const SearchResults = () => {
) : (
<Fragment>
{searchQuery ? (
<PageTitle title={`Search Results for ${searchQuery} - HelpGov`} />
<PageTitle title={`Search Results for ${searchQuery} - AskGov`} />
) : (
''
)}
Expand Down
10 changes: 5 additions & 5 deletions client/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ import { CitizenTerms, AgencyTerms, Privacy } from './components/PrivacyTerms/'

const HomePageComponent = withPageTitle({
component: HomePage,
title: 'HelpGov',
title: 'AskGov',
})

const SearchResultsComponent = withPageTitle({
component: SearchResults,
title: 'All Questions - HelpGov',
title: 'All Questions - AskGov',
})

const LoginComponent = withPageTitle({
component: Login,
title: 'Log In - HelpGov',
title: 'Log In - AskGov',
})

const PostFormComponent = withPageTitle({
component: PostForm,
title: 'Ask a Question - HelpGov',
title: 'Ask a Question - AskGov',
})

const EditFormComponent = withPageTitle({
component: EditForm,
title: 'Edit Question - HelpGov',
title: 'Edit Question - AskGov',
})

const NotFoundComponent = withPageTitle({
Expand Down
2 changes: 1 addition & 1 deletion server/src/modules/mail/mail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class MailService {
return this.transport.sendMail({
to: email,
from: this.mailFromEmail,
subject: `One-Time Password for HelpGov`,
subject: `One-Time Password for AskGov`,
html: renderLoginOtpBody(otp),
})
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/modules/mail/mail.util.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const renderLoginOtpBody = (otp: string): string =>
`Your OTP for HelpGov is <b>${otp}</b>.`
`Your OTP for AskGov is <b>${otp}</b>.`

0 comments on commit 7e63501

Please sign in to comment.