Skip to content

Commit

Permalink
added favicon/public folder and title change
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Jul 24, 2023
1 parent 7c1d3de commit bec42c4
Show file tree
Hide file tree
Showing 14 changed files with 89 additions and 7 deletions.
15 changes: 9 additions & 6 deletions backend/src/routes/institute-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ const data = {
router.get('/school/list', checkToken, getSchoolList);
router.get('/*',checkToken, getInstituteAPI);


function createSchoolList(schools) {
function createSchoolList(schools) {
return schools.map(function(school) {
return {
displayName: school.displayName + "(" + school.mincode + ")",
id: school.schoolId
};
if (school.closedDate !== null) {
return {
mincode: school.mincode,
displayName: school.displayName
};
}
}).filter(function(school) {
return school !== undefined;
});
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<title>School District and Contact Information App</title>
</head>
<body>
<div id="app"></div>
Expand Down
Binary file added frontend/public/bcid-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/bcid-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/bcid-apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicon.ico
Binary file not shown.
20 changes: 20 additions & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name='Description' content='BC Ministry of Education and Child Care SDCI'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme-color" content="#003366">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="apple-touch-icon" href="bcid-apple-touch-icon.png">
<link rel="stylesheet" href="/styles/fonts.css">
<title>School District Contact Information</title>
</head>
<body>
<noscript>
<strong>Please enable JavaScript to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
25 changes: 25 additions & 0 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "EDUC SDCI",
"short_name": "SDCI",
"icons": [
{
"src": "bcid-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "bcid-512x512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "favicon.ico",
"sizes": "62x55",
"type": "image/ico"
}
],
"start_url": "/",
"theme_color": "#003366",
"background_color": "#fafafa",
"display": "standalone"
}
2 changes: 2 additions & 0 deletions frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
Binary file added frontend/public/styles/BCSans-Bold.woff
Binary file not shown.
Binary file added frontend/public/styles/BCSans-BoldItalic.woff
Binary file not shown.
Binary file added frontend/public/styles/BCSans-Italic.woff
Binary file not shown.
Binary file added frontend/public/styles/BCSans-Regular.woff
Binary file not shown.
32 changes: 32 additions & 0 deletions frontend/public/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@font-face{
font-family: 'BCSans';
font-style: normal;
src: url('BCSans-Regular.woff') format('woff'),
url('BCSans-Regular.woff2') format('woff2');
}
@font-face{
font-family: 'BCSans';
font-style: italic;
src: url('BCSans-Italic.woff') format('woff'),
url('BCSans-Italic.woff2') format('woff2');
}
@font-face{
font-family: 'BCSans';
font-weight: 700;
src: url('BCSans-Bold.woff') format('woff'),
url('BCSans-Bold.woff2') format('woff2');
}
@font-face{
font-family: 'BCSans';
font-style: italic;
font-weight: 700;
src: url('BCSans-BoldItalic.woff') format('woff'),
url('BCSans-BoldItalic.woff2') format('woff2');
}

.v-application {
font-family: 'BCSans', Verdana, Arial, sans-serif;
}
html{
font-family: 'BCSans', Verdana, Arial, sans-serif;
}

0 comments on commit bec42c4

Please sign in to comment.