Skip to content

Commit

Permalink
Scroll to Signup
Browse files Browse the repository at this point in the history
  • Loading branch information
DerCed committed Feb 14, 2024
1 parent b6af735 commit c69bb67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Team from "../src/components/Team/Team";
export default function Page() {
return (
<>
<LandingImage2 />
<LandingImage2/>
<VerifiedChecker />
<WhatToExpect />
<Sponsors />
Expand Down
8 changes: 5 additions & 3 deletions src/components/LandingImage/LandingImage2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {TypeAnimation} from "react-type-animation";
import Countdown from "./Countdown.jsx";
import {CalendarMonthOutlined} from "@mui/icons-material";

function LandingImage2() {
function LandingImage2(props) {


return (
Expand Down Expand Up @@ -59,15 +59,17 @@ function LandingImage2() {
height: "3.5rem",
fontSize: "1rem",
}}
onClick={() => document.getElementById("signupForm").scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" })}
>
SignUp
</Button>
<Card sx={{height: "3.5rem", width: "13rem", justifyContent: "center", display:"flex"}}>
<Stack direction={"row"} alignItems={"center"} display={"flex"}
sx={{height: "100%", paddingRight: "1.25rem", paddingLeft: "1.25rem",}} spacing={2}>
<CalendarMonthOutlined sx={{fontSize: "1.5rem", color: "text.disabled"}}/>
<Typography sx={{fontSize: "1rem"}} color={"text.disabled"} noWrap>5th - 6th
April</Typography>
<Typography sx={{fontSize: "1rem"}} color={"text.disabled"} noWrap>
5th - 6th April
</Typography>
</Stack>
</Card>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Registration/Registration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {Container, Typography} from "@mui/material";

function Registration() {
return (
<Container sx={{paddingTop: 10, paddingBottom: 10}}>
<Container sx={{paddingTop: 10, paddingBottom: 10}} id={"signupForm"}>
<Typography variant={"h2"} component={"h1"}>Registration</Typography>
</Container>
)
Expand Down

0 comments on commit c69bb67

Please sign in to comment.