From 50458b331f99cd3e1072c47dff0751e748400693 Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Wed, 11 Oct 2023 19:13:17 -0500 Subject: [PATCH] Feature/what you can enter popup (#108) * Add what you can enter box * Prettier * Removed unused import Popper --------- Co-authored-by: William Skaggs --- pages/index.tsx | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/pages/index.tsx b/pages/index.tsx index 828bb2dd..0e37a932 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,4 +1,7 @@ +import { Tooltip, Typography } from '@mui/material'; import Card from '@mui/material/Card'; +import { styled } from '@mui/material/styles'; +import { tooltipClasses, TooltipProps } from '@mui/material/Tooltip'; import type { NextPage } from 'next'; import Head from 'next/head'; import { useRouter } from 'next/router'; @@ -11,6 +14,15 @@ import { Wave2SVG } from '../components/icons/Wave2/wave2SVG'; import SearchQuery from '../modules/SearchQuery/SearchQuery'; import searchQueryLabel from '../modules/searchQueryLabel/searchQueryLabel'; +const TransparentTooltip = styled(({ className, ...props }: TooltipProps) => ( + +))(({ theme }) => ({ + [`& .${tooltipClasses.tooltip}`]: { + backgroundColor: 'transparent', + maxWidth: 'none', + }, +})); + /** * Returns the home page with Nebula Branding, waved background, and SearchBar Components */ @@ -51,11 +63,46 @@ const Home: NextPage = () => {
-
+
+ + + You can search for: +
    +
  • + A whole course:{' '} + CS 1337 +
  • +
  • + A professor's name:{' '} + Jason Smith +
  • +
  • + A course and professor:{' '} + CS 1337 Jason Smith +
  • +
+

+ then we'll aggregate grades across every section +

+
+ + } + > + + What you can enter?{' '} + Pretty much anything. + +