diff --git a/components/Feature.tsx b/components/Feature.tsx index bb44d51..523dc3e 100644 --- a/components/Feature.tsx +++ b/components/Feature.tsx @@ -30,10 +30,10 @@ const TextContainer: FC = ({ heading, body, layout }) => { } feature-column`} lg={8} > -

+

{heading}

-

+

{body}

diff --git a/components/LaunchButton.tsx b/components/LaunchButton.tsx index 3c02951..9c522fc 100644 --- a/components/LaunchButton.tsx +++ b/components/LaunchButton.tsx @@ -12,7 +12,7 @@ const LaunchButton: FC = () => {
380 ? "launch-button" : "launch-button-sm" - }`} + } rounded`} > {width > 380 ? (

@@ -22,7 +22,7 @@ const LaunchButton: FC = () => { <> )} {(width > threshold || width < 380) && ( - + )}

) diff --git a/pages/app.tsx b/pages/app.tsx index f5d13c1..9aad102 100644 --- a/pages/app.tsx +++ b/pages/app.tsx @@ -656,7 +656,7 @@ const App: FC = () => { ) : ( <> {!user && ( - + )} {user && (
diff --git a/pages/index.tsx b/pages/index.tsx index fb81be7..5a7f04f 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,39 +1,50 @@ -import React, { FC, useEffect } from "react" -import { Col, Container, Row } from "react-bootstrap" -import Contact from "../components/Contact" -import Feature from "../components/Feature" -import Header from "../components/Header" -import Jumbotron from "../components/Jumbotron" -import features from "../lib/frontend/data/features" -import Image from "next/image" -import { useRouter } from "next/router" -import api from "../lib/frontend/axios" -import { toast } from "react-toastify" -import errorMessage from "../lib/frontend/util/errorMessage" -import { AxiosError } from "axios" +import React, { FC, useEffect } from "react"; +import { Col, Container, Row } from "react-bootstrap"; +import Contact from "../components/Contact"; +import Feature from "../components/Feature"; +import Header from "../components/Header"; +import Jumbotron from "../components/Jumbotron"; +import Image from "next/image"; +import { useRouter } from "next/router"; +import api from "../lib/frontend/axios"; +import { toast } from "react-toastify"; +import errorMessage from "../lib/frontend/util/errorMessage"; +import { AxiosError } from "axios"; const Home: FC = () => { - const router = useRouter() + const router = useRouter(); useEffect(() => { const validToken = async () => { - if (localStorage.getItem("id_token")) - { + if (localStorage.getItem("id_token")) { try { - const response = await api.get("/user/userInfo") - if (response.status == 200) - { - router.push("/app") + const response = await api.get("/user/userInfo"); + if (response.status == 200) { + router.push("/app"); } } catch (err) { - toast.error(errorMessage(err as AxiosError)) + toast.error(errorMessage(err as AxiosError)); } } - } + }; validToken(); - }) + }); + const features = [ + { + image: require("../public/images/Network.jpeg"), + alt: "Network", + heading: "What is IntelliSlides?", + body: "IntelliSlides is a web application that uses the GPT3 language model by OpenAI to create Google Slides presentations in a matter of minutes. Given a topic, category, and a slide count, IntelliSlides can intelligently determine the topic of each slide, and important, relevant bullet points.", + }, + { + image: require("../public/images/Library.jpeg"), + alt: "Library", + heading: "Who can use it?", + body: "Our web application is designed for anyone who needs to make presentations, regardless of their field or expertise. Whether you're a student, academic, employee, or just your average Joe who is curious about a topic, our platform can help simplify the presentation-making process and produce high-quality results.", + }, + ]; return ( @@ -50,7 +61,7 @@ const Home: FC = () => { feature={feature} layout={index % 2 === 0 ? "left" : "right"} /> - ) + ); })}
@@ -92,7 +103,7 @@ const Home: FC = () => { - ) -} + ); +}; -export default Home +export default Home; diff --git a/public/images/chatgbt.jpg b/public/images/chatgbt.jpg new file mode 100644 index 0000000..2c8f9a9 Binary files /dev/null and b/public/images/chatgbt.jpg differ diff --git a/styles/App.css b/styles/App.css index 920d64c..513795a 100644 --- a/styles/App.css +++ b/styles/App.css @@ -299,3 +299,7 @@ width: 70px } + +GoogleButton { + border-radius: 50px; +} \ No newline at end of file diff --git a/styles/index.css b/styles/index.css index f7f14f6..c9a37ea 100644 --- a/styles/index.css +++ b/styles/index.css @@ -149,4 +149,20 @@ /* IE 10 and IE 11 */ user-select: none; /* Standard syntax */ -} \ No newline at end of file +} + +#about { + overflow-x: none; + background-color: #0095ff; + background-image: linear-gradient( + rgba(0, 0, 0, 0.7), + rgba(0, 0, 0, 0.7) + ), + url("../public/images/chatgbt.jpg"); + /* min-height: 45vh; */ + background-attachment: fixed; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + +}