Skip to content

Commit 44fb481

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 9e7d38d commit 44fb481

File tree

29 files changed

+28
-545
lines changed

29 files changed

+28
-545
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/header.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
describe('Header component', () => {
22
beforeEach(() => {
3-
cy.visit('/home');
3+
cy.visit('/');
44
});
55

66
it('loads nav links', () => {
77
cy.viewport(1280, 800);
88
cy.findLink('Join the Index')
9-
.should('have.attr', 'href', '/home')
9+
.should('have.attr', 'href', '/')
1010
.trigger('mouseover')
1111
.get('[data-cy=menuItem]')
1212
.within(() => {
@@ -15,7 +15,7 @@ describe('Header component', () => {
1515
});
1616

1717
cy.findLink('Overview')
18-
.should('have.attr', 'href', '/home')
18+
.should('have.attr', 'href', '/')
1919
.trigger('mouseover')
2020
.get('[data-cy=menuItem]')
2121
.within(() => {
@@ -25,7 +25,7 @@ describe('Header component', () => {
2525
});
2626

2727
cy.findLink('Radical Collaboration')
28-
.should('have.attr', 'href', '/home')
28+
.should('have.attr', 'href', '/')
2929
.trigger('mouseover')
3030
.get('[data-cy=menuItem]')
3131
.within(() => {
@@ -36,7 +36,7 @@ describe('Header component', () => {
3636
});
3737

3838
cy.findLink('Index Contributors')
39-
.should('have.attr', 'href', '/home')
39+
.should('have.attr', 'href', '/')
4040
.trigger('mouseover')
4141
.get('[data-cy=menuItem]')
4242
.within(() => {

cypress/integration/pages/footer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Footer', () => {
66
const RANDOM_EMAIL = faker.internet.email();
77

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

1212
it('footer loads', () => {

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
@@ -63,7 +63,7 @@ describe('Contributors Page (using API)', () => {
6363
cy.intercept(`${Cypress.env('REACT_APP_API_URL')}/api/organizations/`).as(
6464
'getOrganizations'
6565
);
66-
cy.visit('/home');
66+
cy.visit('/');
6767
cy.contains('View contributors').click();
6868
cy.wait('@getOrganizations');
6969
cy.get('[class*=pageContainer]').should(

src/App.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Faq from './pages/RadicalCollaboration/Faq';
1212
import IndvOrgPage from './pages/IndvOrganization';
1313
import Home from './pages/Home';
1414
import HowToUse from './pages/HowToUse';
15-
import Landing from './pages/Landing';
1615
import SearchProjects from './pages/SearchProjects';
1716
import TagCreator from './pages/TagCreator';
1817
import Error404 from './pages/Error404';
@@ -38,12 +37,11 @@ const App = () => {
3837
<QueryParamProvider ReactRouterRoute={Route}>
3938
<Layout>
4039
<Switch>
41-
<Route exact path='/' component={Landing} />
40+
<RouteTitled exact path='/' component={Home} title='Home' />
4241
<RouteTitled exact path='/about' component={About} title='About' />
4342
<RouteTitled exact path='/about/contact' component={Contact} title='Contact Us' />
4443
<RouteTitled exact path='/about/faq' component={Faq} title='FAQ' />
4544
<RouteTitled exact path='/organizations/:affiliation' component={Contributors} title='Organizations' />
46-
<RouteTitled exact path='/home' component={Home} title='Home' />
4745
<RouteTitled exact path='/projects' component={SearchProjects} title='Search Projects' />
4846
<RouteTitled exact path='/join-index' component={TagCreator} title='Join the Index' />
4947
<RouteTitled exact path='/join-index/how-to-add' component={HowToUse} title='How to Add Your Project' />
@@ -76,8 +74,6 @@ const App = () => {
7674
<Redirect from='/taggenerator' to='/join-index' />
7775
{/* test and error page redirect begin */}
7876
<Redirect from='/guides' to='/guides/colors' />
79-
<Redirect from='/placeholder' to='/blank' />
80-
<Redirect from='/template' to='/blank' />
8177
<Redirect to='/404' />
8278
{/* test and error page redirect end */}
8379
</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 className={classes.logo} src='/images/cti-logo.svg' alt='civic logo' />
1717
</Link>
1818
<div className={classes.flexContainer}>

0 commit comments

Comments
 (0)