Skip to content
Merged

Dev #16

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
14 changes: 7 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"js-cookie": "^3.0.1",
"localStorage": "^1.0.4",
"next": "^12.1.0",
"next-auth": "^4.5.0",
"next-auth": "^4.9.0",
"next-plausible": "^3.1.9",
"nextjs-progressbar": "^0.0.14",
"prop-types": "^15.7.2",
Expand Down
83 changes: 65 additions & 18 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useRouter } from "next/router";
import KeyboardReturnIcon from "@mui/icons-material/KeyboardReturn";
import Footer from "@components/Footer/Footer";
import Header from "@components/Header/Header";
import { motion } from "framer-motion";
import { getExampleRepo } from "@services/example_repos";

export default function Home() {
Expand Down Expand Up @@ -36,10 +37,8 @@ export default function Home() {
};

useEffect(() => {
changeRepoValue();
}
, []);

changeRepoValue();
}, []);

return (
<HomePage>
Expand All @@ -50,20 +49,68 @@ export default function Home() {
title="Internet's Git Time machine"
desc="Go back in time and explore your favorite Open source projects "
></Header>
<LogoBox>
{" "}
<img alt="GitStory logo" src="/img/index_logo.png" /> <span>Beta</span>
</LogoBox>
<DescriptionBox>
<img alt="Internet's git time machine" src="/img/description.png" />
</DescriptionBox>
<Search>
<SearchBox onKeyDown={keyPress} onChange={handleSearchTextChange} placeholder={"Explore GitHub projects, e.g. : " + exampleRepoValue}></SearchBox>
<span>
Press Enter/Return to search <KeyboardReturnIcon sx={{ fontSize: 10 }} />
</span>
</Search>
<Footer home={true}></Footer>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1 , y: 0}}
transition={{
type: "spring",
stiffness: 260,
damping: 70,
delay: 0.2,
}}
exit={{ opacity: 1 }}
>
<LogoBox>
{" "}
<img alt="GitStory logo" src="/img/index_logo.png" /> <span>Beta</span>
</LogoBox>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 100 }}
animate={{ opacity: 1, y: 0 }}
transition={{
type: "spring",
stiffness: 260,
damping: 70,
delay: 0.4,
}}
exit={{ opacity: 1 }}
>
<DescriptionBox>
<img alt="Internet's git time machine" src="/img/description.png" />
</DescriptionBox>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 120 }}
animate={{ opacity: 1, y: 0 }}
transition={{
type: "spring",
stiffness: 260,
damping: 70,
delay: 0.5,
}}
exit={{ opacity: 1 }}
>
<Search>
<SearchBox onKeyDown={keyPress} onChange={handleSearchTextChange} placeholder={"Explore GitHub projects, e.g. : " + exampleRepoValue}></SearchBox>
<span>
Press Enter/Return to search <KeyboardReturnIcon sx={{ fontSize: 10 }} />
</span>
</Search>
</motion.div>
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{
type: "spring",
stiffness: 260,
damping: 70,
delay: 1,
}}
exit={{ opacity: 1 }}
>
<Footer home={true}></Footer>
</motion.div>
</HomePage>
);
}
Expand Down