Skip to content

Commit

Permalink
fix: display page title and favicon (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
francojreyes authored Feb 13, 2024
1 parent 833f39c commit 5123f90
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 129 deletions.
Binary file added frontend/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 0 additions & 20 deletions frontend/app/head.tsx

This file was deleted.

Binary file added frontend/app/icon.ico
Binary file not shown.
12 changes: 8 additions & 4 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { config } from '@fortawesome/fontawesome-svg-core';
import { Assistant } from '@next/font/google';
import ThemeProvider from 'contexts/ThemeProvider';
import { getCssText } from 'stitches.config';
import { Metadata } from 'next';
import Footer from 'components/Footer/Footer';
import AppProvider from '../contexts/AppProvider';
import 'styles/globals.css';
Expand All @@ -15,16 +15,20 @@ const assistant = Assistant({
subsets: ['latin']
});

export const metadata: Metadata = {
title: 'Jobsboard',
description: 'Connecting UNSW students with top employers since 2018.',
manifest: '/manifest.webmanifest',
themeColor: '#2c8bf4'
};

type RootLayoutProps = {
children: React.ReactNode;
};

const RootLayout = ({ children }: RootLayoutProps) => {
return (
<html lang="en">
<head>
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
</head>
<body className={assistant.className}>
<ThemeProvider>
<AppProvider>
Expand Down
9 changes: 4 additions & 5 deletions frontend/components/PageLoading/PageLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from 'react';
import Image from 'next/image';
import jobsboardLogo from 'assets/logos/JobsboardLogo.png';
import S from './styles';

const PageLoading = () => (
<S.PageWrapper>
<S.LoadingLogo>
<div className="h-screen flex items-center justify-center flex-col">
<div className="w-200 rounded-full animate-[pulseShadow_1.5s_infinite]">
<Image src={jobsboardLogo} alt="Jobsboard Logo" width={200} height={200} />
</S.LoadingLogo>
</S.PageWrapper>
</div>
</div>
);

export default PageLoading;
27 changes: 0 additions & 27 deletions frontend/components/PageLoading/styles.ts

This file was deleted.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@next/font": "^13.0.7",
"@stitches/react": "^1.2.8",
"axios": "^1.2.1",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
Expand Down
18 changes: 0 additions & 18 deletions frontend/stitches.config.ts

This file was deleted.

10 changes: 10 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ module.exports = {
'btn-hovered': '0 0.125rem 0.625rem 0 rgb(0 0 0 / 50%)',
card: '-0.125rem 0.25rem 0.625rem rgba(0, 0, 0, 0.15)',
input: '0 0 0.5rem 0.063rem rgba(0, 0, 0, 0.1);'
},
keyframes: {
pulseShadow: {
'0%': {
boxShadow: '0 0 0 0px rgba(84, 72, 91, 0.2)'
},
'100%': {
boxShadow: '0 0 0 40px rgba(17, 3, 52, 0)'
}
}
}
}
},
Expand Down
60 changes: 6 additions & 54 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,46 +169,6 @@
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.19.tgz#aebe38713a4ce536ee5f2a291673e14b715e633a"
integrity sha512-jyzO6wwYhx6F+7gD8ddZfuqO4TtpJdw3wyOduR4fxTUCm3aLw7YmHGYNjS0xRSYGAkLpBkH1E0RcelyId6lNsw==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.19.tgz#77ad462b5ced4efdc26cb5a0053968d2c7dac1b6"
integrity sha512-vv1qrjXeGbuF2mOkhkdxMDtv9np7W4mcBtaDnHU+yJG+bBwa6rYsYSCI/9Xm5+TuF5SbZbrWO6G1NfTh1TMjvQ==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.19.tgz#aebe38713a4ce536ee5f2a291673e14b715e633a"
integrity sha512-jyzO6wwYhx6F+7gD8ddZfuqO4TtpJdw3wyOduR4fxTUCm3aLw7YmHGYNjS0xRSYGAkLpBkH1E0RcelyId6lNsw==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.19.tgz#ec54db65b587939c7b94f9a84800f003a380f5a6"
integrity sha512-vdlnIlaAEh6H+G6HrKZB9c2zJKnpPVKnA6LBwjwT2BTjxI7e0Hx30+FoWCgi50e+YO49p6oPOtesP9mXDRiiUg==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.19.tgz#1f5e2c1ea6941e7d530d9f185d5d64be04279d86"
integrity sha512-aU0HkH2XPgxqrbNRBFb3si9Ahu/CpaR5RPmN2s9GiM9qJCiBBlZtRTiEca+DC+xRPyCThTtWYgxjWHgU7ZkyvA==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.19.tgz#96b0882492a2f7ffcce747846d3680730f69f4d1"
integrity sha512-htwOEagMa/CXNykFFeAHHvMJeqZfNQEoQvHfsA4wgg5QqGNqD5soeCer4oGlCol6NGUxknrQO6VEustcv+Md+g==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.19.tgz#f276b618afa321d2f7b17c81fc83f429fb0fd9d8"
integrity sha512-4Gj4vvtbK1JH8ApWTT214b3GwUh9EKKQjY41hH/t+u55Knxi/0wesMzwQRhppK6Ddalhu0TEttbiJ+wRcoEj5Q==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.19.tgz#1599ae0d401da5ffca0947823dac577697cce577"
integrity sha512-bUfDevQK4NsIAHXs3/JNgnvEY+LRyneDN788W2NYiRIIzmILjba7LaQTfihuFawZDhRtkYCv3JDC3B4TwnmRJw==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.19.tgz#55cdd7da90818f03e4da16d976f0cb22045d16fd"
integrity sha512-Y5kikILFAr81LYIFaw6j/NrOtmiM4Sf3GtOc0pn50ez2GCkr+oejYuKGcwAwq3jiTKuzF6OF4iT2INPoxRycEA==

"@next/[email protected]":
version "13.4.19"
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.19.tgz#ec54db65b587939c7b94f9a84800f003a380f5a6"
Expand Down Expand Up @@ -282,11 +242,6 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.3.3.tgz#16ab6c727d8c2020a5b6e4a176a243ecd88d8d69"
integrity sha512-0xd7qez0AQ+MbHatZTlI1gu5vkG8r7MYRUJAHPAHJBmGLs16zpkrpAVLvjQKQOqaXPDUBwOiJzNc00znHSCVBw==

"@stitches/react@^1.2.8":
version "1.2.8"
resolved "https://registry.yarnpkg.com/@stitches/react/-/react-1.2.8.tgz#954f8008be8d9c65c4e58efa0937f32388ce3a38"
integrity sha512-9g9dWI4gsSVe8bNLlb+lMkBYsnIKCZTmvqvDG+Avnn69XfmHZKiaMrx7cgTaddq7aTPPmXiTsbFcUy0xgI4+wA==

"@swc/[email protected]":
version "0.5.1"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.1.tgz#e9031491aa3f26bfcc974a67f48bd456c8a5357a"
Expand Down Expand Up @@ -716,20 +671,19 @@ buffer@^5.5.0:
base64-js "^1.3.1"
ieee754 "^1.1.13"

[email protected]:
version "1.6.0"
resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893"
integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==
dependencies:
streamsearch "^1.1.0"

bundle-name@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/bundle-name/-/bundle-name-3.0.0.tgz#ba59bcc9ac785fb67ccdbf104a2bf60c099f0e1a"
integrity sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==
dependencies:
run-applescript "^5.0.0"

[email protected]:
version "1.6.0"
resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893"
integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==
dependencies:
streamsearch "^1.1.0"

call-bind@^1.0.0, call-bind@^1.0.2:
version "1.0.2"
Expand Down Expand Up @@ -3002,7 +2956,6 @@ streamx@^2.15.0:
fast-fifo "^1.1.0"
queue-tick "^1.0.1"


string.prototype.matchall@^4.0.8:
version "4.0.9"
resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.9.tgz#148779de0f75d36b13b15885fec5cadde994520d"
Expand Down Expand Up @@ -3352,7 +3305,6 @@ universal-cookie@^4.0.4:
"@types/cookie" "^0.3.3"
cookie "^0.4.0"


untildify@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b"
Expand Down

0 comments on commit 5123f90

Please sign in to comment.