Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions components/Feature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ const TextContainer: FC<iTextContainerProps> = ({ heading, body, layout }) => {
} feature-column`}
lg={8}
>
<h3 className="manrope dynamic-color" style={{ margin: 25 }}>
<h3 className="manrope dynamic-color" style={{ marginLeft: 125, marginRight: 125 }}>
{heading}
</h3>
<p style={{ fontSize: 17, margin: 25 }} className="dynamic-color">
<p style={{ fontSize: 17, marginLeft: 125, marginRight: 125 }} className="dynamic-color">
{body}
</p>
</Col>
Expand Down
4 changes: 2 additions & 2 deletions components/LaunchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const LaunchButton: FC = () => {
<div
className={`pointer secondary shadowHover ${
width > 380 ? "launch-button" : "launch-button-sm"
}`}
} rounded`}
>
{width > 380 ? (
<p className="launch-text">
Expand All @@ -22,7 +22,7 @@ const LaunchButton: FC = () => {
<></>
)}
{(width > threshold || width < 380) && (
<FontAwesomeIcon className="launch-icon" icon={faRocket} />
<FontAwesomeIcon className="launch-icon rounded" icon={faRocket} />
)}
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion pages/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ const App: FC = () => {
) : (
<>
{!user && (
<GoogleButton onClick={onLogin} />
<GoogleButton onClick={onLogin} className="rounded overflow-hidden" />
)}
{user && (
<div className="animate__animated animate__fadeInRight">
Expand Down
65 changes: 38 additions & 27 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Container fluid className="Home">
Expand All @@ -50,7 +61,7 @@ const Home: FC = () => {
feature={feature}
layout={index % 2 === 0 ? "left" : "right"}
/>
)
);
})}
</div>
<Contact />
Expand Down Expand Up @@ -92,7 +103,7 @@ const Home: FC = () => {
</Col>
</Row>
</Container>
)
}
);
};

export default Home
export default Home;
Binary file added public/images/chatgbt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,7 @@
width: 70px
}


GoogleButton {
border-radius: 50px;
}
18 changes: 17 additions & 1 deletion styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,20 @@
/* IE 10 and IE 11 */
user-select: none;
/* Standard syntax */
}
}

#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;

}