Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add footer with github link
  • Loading branch information
joshuanianji committed Jan 31, 2023
commit f95aa785eda841c097d2ac93fc77ad5cd930522f
18 changes: 18 additions & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Container, Stack, ButtonGroup, IconButton, Text } from '@chakra-ui/react'
import { FaGithub } from 'react-icons/fa'


export default () => (
<Container as="footer" role="contentinfo" py={{ base: '12', md: '16' }}>
<Stack spacing={{ base: '4', md: '5' }}>
<Stack justify="space-between" direction="row" align="center">
<Text fontSize="sm" color="subtle">
MathGPT, built for Hackrithmitic 2 2023
</Text>
<ButtonGroup variant="ghost">
<IconButton as="a" href="https://github.com/hackathon-group-301/mathgpt" aria-label="GitHub" icon={<FaGithub fontSize="1.25rem" />} />
</ButtonGroup>
</Stack>
</Stack>
</Container>
)
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"openai": "^3.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.7.1",
"react-loading-icons": "^1.1.0",
"react-math-view": "^1.3.2",
"react18-mathquill": "^1.0.1",
Expand Down
13 changes: 5 additions & 8 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import Head from 'next/head'
import Image from 'next/image'
import { Inter } from '@next/font/google'
import styles from '@/styles/Home.module.css'
import React, { useEffect, useState, useReducer } from 'react';
import React, { useState, useReducer } from 'react';
import dynamic from 'next/dynamic';
import {
Button, ButtonGroup, Select,
Text, Card, Box, useToast,
Alert, AlertTitle, AlertDescription, AlertIcon,
Accordion, AccordionButton, AccordionItem, AccordionPanel, AccordionIcon,
Input
Button, Select, Text, Card, Box, useToast,
Accordion, AccordionButton, AccordionItem, AccordionPanel, AccordionIcon, Input
} from '@chakra-ui/react'
import { ApiReturnSchema } from '@/types/apiTypes';
import ShowAnswer, { AnswerState } from '@/components/Answer';
import Footer from '@/components/Footer';


const EquationInput: React.FC<{ setLatex: React.Dispatch<React.SetStateAction<string>>, latex: string }> = ({ setLatex, latex }) => {
Expand Down Expand Up @@ -194,6 +190,7 @@ export default function Home() {
<Button textColor={'white'} bgGradient='linear(to-r, #187D71, #151394)' colorScheme='teal' onClick={() => demo1()}>Try solving!</Button>
<Button textColor={'white'} bgGradient='linear(to-r, #8D9C0E, #359600)' colorScheme='teal' onClick={() => demo2()}>Try finding x!</Button>
</Card>
<Footer />
</main>
</>
)
Expand Down