-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About page #224
About page #224
Changes from 5 commits
21a7104
4570c39
b3d43ff
bf52511
c30619d
0dd6411
ded0e8e
efb5d0d
71fb97f
85c0e2c
eada0f6
6a255f3
ff7b28a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ import { | |
CoPresent, | ||
Settings, | ||
Logout, | ||
Info, | ||
} from "@mui/icons-material"; | ||
import { signOut } from "next-auth/react"; | ||
import { useSession } from "next-auth/react"; | ||
|
@@ -18,7 +19,7 @@ const NavBar = () => { | |
<> | ||
{status === "authenticated" && ( | ||
<nav className={$navbar.sidebar}> | ||
<Link href="/"> | ||
<Link href="/about"> | ||
<Image | ||
src="/img/compass-logo-white.svg" | ||
alt="logo" | ||
|
@@ -46,6 +47,11 @@ const NavBar = () => { | |
<p className={$navbar.linkTitle}>Settings</p> | ||
</Link> | ||
<br /> | ||
<Link href="/about" className={$navbar.link}> | ||
<Info className={$navbar.icon} /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please be sure you are adding the property types to the appropriate .css.d.ts file - and fix some of the "any" type errors. |
||
<p className={$navbar.linkTitle}>About</p> | ||
</Link> | ||
<br /> | ||
<Link href="" className={$navbar.link}> | ||
<Logout className={$navbar.icon} /> | ||
<p | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Image from "next/image"; | ||
import $typo from "@/styles/Typography.module.css"; | ||
|
||
const About = () => { | ||
return ( | ||
<> | ||
<h2>About Compass</h2> | ||
|
||
<div> | ||
Compass is a civic app we are building for the San Francisco Unified | ||
School District. The app seeks to assist Teachers with setting and | ||
tracking goals for students with disabilities. | ||
</div> | ||
<div></div> | ||
</> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason we have the fragments instead of divs? (It makes it easier to apply CSS if they are specific elements rather than fragments.) |
||
); | ||
}; | ||
|
||
export default About; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job here. Since the app has been updated to include middleware, in "Middleware.ts", please pull down and merge that code with this, and then add it to the matcher in the RegEx in the file so it's not a blocker for those who are not signed in.