Skip to content

Commit f7c891c

Browse files
committed
Update landing page (#909)
* Update Google Analytics measurement ID * Update root route to point to homepage * Simplify Layout * Update breadcrumbs to use root route * Update spec files to use root route * Remove references to old landing page
1 parent 035c145 commit f7c891c

File tree

29 files changed

+131
-541
lines changed

29 files changed

+131
-541
lines changed

.nycrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"**/*.test.js",
99
"src/guides/*.js",
1010
"src/icons/*.js",
11-
"src/pages/Landing/*.js",
1211
"src/serviceWorker.js",
1312
"src/setupTests.js"
1413
]

BOOKMARKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ browser) Test Server](https://test-civictechindexadmin.herokuapp.com/swagger/)
3333
[Our Swagger (API
3434
browser) Stage Server](https://api-stage.civictechindex.org/swagger/)
3535

36-
[Civic Tech Index dot org Live Site](http://civictechindex.org/home)
36+
[Civic Tech Index dot org Live Site](http://civictechindex.org)
3737

3838
## Documentation and 3rd Party Links
3939

cypress/fixtures/faqs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{
1616
"id": 5,
1717
"question": "What is Civic Tech Index?",
18-
"answer": "<a href=\"http://civictechindex.org/home\">Civic Tech Index</a> is a comprehensive, searchable index of all civic tech open-source software projects around the world. It helps to create large-scale engagement, overlapping technologies, and disciplines. People of all different skills and levels working to problem solve, projects that are legitimate and trustworthy.",
18+
"answer": "<a href=\"http://civictechindex.org\">Civic Tech Index</a> is a comprehensive, searchable index of all civic tech open-source software projects around the world. It helps to create large-scale engagement, overlapping technologies, and disciplines. People of all different skills and levels working to problem solve, projects that are legitimate and trustworthy.",
1919
"view_count": 57
2020
},
2121
{

cypress/integration/components/footer.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ describe('Footer', () => {
66
const RANDOM_EMAIL = `test_${faker.internet.email()}`;
77

88
before(() => {
9-
cy.visit('/home');
10-
});
9+
cy.visit('/');
10+
})
1111

1212
it('footer loads', () => {
1313
cy.get('[class*=containerFooter]').within(() => {

cypress/integration/components/header.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ describe('Header component', () => {
1717
};
1818

1919
beforeEach(() => {
20-
cy.visit('/home');
20+
cy.visit('/');
2121
});
2222

2323
it('loads nav links', () => {
2424
cy.viewport(1280, 800);
2525
for (const headerItem in menuItems) {
2626
cy.findLink(headerItem)
27-
.should('have.attr', 'href', '/home')
27+
.should('have.attr', 'href', '/')
2828
.trigger('mouseover')
2929
.get('[data-cy=menu-item]')
3030
.within(() => {

cypress/integration/pages/home.spec.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
describe('Home Page', () => {
22
before(() => {
3-
cy.visit('/home')
4-
})
5-
6-
beforeEach(() => {
7-
// cy.visit('/home')
3+
cy.visit('/')
84
})
95

106
it('header loads', () => {

cypress/integration/pages/landing.spec.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

cypress/integration/pages/organizations.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('Organizations Page (using API)', () => {
9898
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`).as(
9999
'getOrganizations'
100100
);
101-
cy.visit('/home');
101+
cy.visit('/');
102102
cy.contains('View contributors').click();
103103
cy.wait('@getOrganizations');
104104
cy.get('[class*=containerWhite]').should(

src/App.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Faq from './pages/Faq';
1313
import IndvOrgPage from './pages/IndvOrganization';
1414
import Home from './pages/Home';
1515
import HowToAdd from './pages/HowToAdd';
16-
import Landing from './pages/Landing';
1716
import SearchProjects from './pages/SearchProjects';
1817
import TagGenerator from './pages/TagGenerator';
1918
import Error404 from './pages/Error404';
@@ -43,7 +42,7 @@ const App = () => {
4342
<QueryParamProvider ReactRouterRoute={Route}>
4443
<Layout>
4544
<Switch>
46-
<Route exact path='/' component={Landing} />
45+
<RouteTitled exact path='/' component={Home} title='Home' />
4746
<RouteTitled exact path='/about' component={About} title='About' />
4847
<RouteTitled
4948
exact
@@ -130,8 +129,6 @@ const App = () => {
130129
<Redirect from='/taggenerator' to='/join-index' />
131130
{/* test and error page redirect begin */}
132131
<Redirect from='/guides' to='/guides/colors' />
133-
<Redirect from='/placeholder' to='/blank' />
134-
<Redirect from='/template' to='/blank' />
135132
<Redirect to='/404' />
136133
{/* test and error page redirect end */}
137134
</Switch>

src/components/Header/HeaderLarge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const HeaderLarge = () => {
1212

1313
return (
1414
<nav className={classes.nav}>
15-
<Link to='/home'>
15+
<Link to='/'>
1616
<img
1717
className={classes.logo}
1818
src='/images/cti-logo.svg'

0 commit comments

Comments
 (0)