Skip to content

Commit 5c0ac0f

Browse files
committed
fix: general bug-fixing
1 parent 6acff3f commit 5c0ac0f

File tree

27 files changed

+874
-1033
lines changed

27 files changed

+874
-1033
lines changed

client/public/index.html

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,40 +7,16 @@
77
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0, shrink-to-fit=no"
88
/>
99
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
10-
<meta name="theme-color" content="#0D47A1" data-react-helmet="true" />
10+
<meta name="theme-color" content="#363537" data-react-helmet="true" />
1111
<meta name="rating" content="General" />
12-
<meta name="twitter:site" content="https://twitter.com/Educabile_Srl" />
13-
<meta name="twitter:creator" content="Educabile_Srl" />
14-
<meta property="og:type" content="website" />
15-
<meta property="fb:app_id" content="2265331890362238" />
16-
<meta property="og:locale" content="it-IT" />
1712

18-
<!-- <link rel="stylesheet" href="%PUBLIC_URL%/materialize.css" /> -->
19-
<!--
20-
Notice the use of %PUBLIC_URL% in the tags above.
21-
It will be replaced with the URL of the `public` folder during the build.
22-
Only files inside the `public` folder can be referenced from the HTML.
23-
24-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
25-
work correctly both with client-side routing and a non-root public URL.
26-
Learn how to configure a non-root public URL by running `npm run build`.
27-
-->
28-
<title>Educabile - Una Startup Innovativa</title>
13+
<title>Database Systems Project</title>
2914
</head>
3015

3116
<body>
3217
<noscript> You need to enable JavaScript to run this app. </noscript>
3318
<div id="root"></div>
34-
<!--
35-
This HTML file is a template.
36-
If you open it directly in the browser, you will see an empty page.
37-
38-
You can add webfonts, meta tags, or analytics to this file.
39-
The build step will place the bundled scripts into the <body> tag.
4019

41-
To begin the development, run `npm start` or `yarn start`.
42-
To create a production bundle, use `npm run build` or `yarn build`.
43-
-->
4420
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
4521
</body>
4622
</html>

client/src/containers/ErrorPage/ErrorPage.js

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import React from 'react'
22
import { Container, Row, Col } from 'react-materialize'
3-
import { mdiAccountGroup, mdiHome } from '@mdi/js'
3+
import {
4+
mdiAccountGroup,
5+
mdiCalendarMultiple,
6+
mdiFileDocumentBoxMultipleOutline,
7+
mdiDomain,
8+
mdiBookOpenPageVariant,
9+
mdiFeather,
10+
mdiHome,
11+
} from '@mdi/js'
412
import Banner from 'components/Banner'
513
import FeatureCard from 'components/FeatureCard'
614
import { Link } from 'react-router-dom'
@@ -9,19 +17,48 @@ import cx from 'class-names'
917

1018
const ChoosePage = ({ match: { path } }) => {
1119
const collection = path.split('/')[1]
20+
let icon = mdiAccountGroup
21+
22+
switch (collection) {
23+
case 'conferences':
24+
icon = mdiCalendarMultiple
25+
break
26+
27+
case 'documents':
28+
icon = mdiFileDocumentBoxMultipleOutline
29+
break
30+
31+
case 'organizations':
32+
icon = mdiDomain
33+
break
34+
35+
case 'periodicals':
36+
icon = mdiBookOpenPageVariant
37+
break
38+
39+
case 'publishing-companies':
40+
icon = mdiFeather
41+
break
42+
43+
default:
44+
icon = mdiAccountGroup
45+
break
46+
}
1247

1348
return (
1449
<>
1550
<Banner text={`${collection.replace('-', ' ')} not found`} />
1651

1752
<Container>
18-
<h2 className={cx('center', collection, Styles.ErrorPage)}>Whoops! That's an error!</h2>
53+
<h2 className={cx('center', collection, Styles.ErrorPage)}>
54+
Whoops! That&apos;s an error!
55+
</h2>
1956

2057
<Row>
2158
<Col s={12} l={6}>
2259
<Link to={`/${collection}/choose`}>
2360
<FeatureCard
24-
icon={mdiAccountGroup}
61+
icon={icon}
2562
title={`Make another choice\nabout the ${collection} to find`}
2663
className={`${collection}`}
2764
/>

0 commit comments

Comments
 (0)