Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in body container2 #416

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
105 changes: 104 additions & 1 deletion paras/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<body>
<div class="container2">

<button class="logout-btn">
Logout
</button>

<script src = "./logout.js"></script>



</div>
</body>
<meta
name="description"
content="Web site created using create-react-app"
Expand All @@ -20,14 +33,51 @@
min-height: 100vh;
margin: 0;
font-family: "Caveat", cursive;
}

.logout-btn{


color: #fff;
background-color: orangered;
height: 25px;
width: 50px;
font-size: 10px;
padding-top: 12px;
padding-right: 15px;
padding-top: 12px;
padding-left: 15px;
padding: 10px;
cursor: pointer;
border-radius: 15px;
margin-top: 30px;
font-weight: 700px;
margin-left: 1200px;

















}

#root {
flex: 1;
}

.follow-us {
background-color: #58ed64;
background-color: #c8ed58;
padding: 8px;
text-align: center;
margin-top: auto;
Expand Down Expand Up @@ -81,6 +131,7 @@


<link rel="stylesheet" type="text/css" href="first.css">

<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -92,6 +143,7 @@
-->

<title>TIC TAC TOE</title>
<link rel="stylesheet" href="app.css">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down Expand Up @@ -129,6 +181,57 @@
</ul>
</div>
</footer>


<script>
const logoutBtn = document.querySelector(".logout-btn")


logoutBtn.addEventListener("click",()=>{
window.location.replace("login.html");





})


















</script>


















</body>

</html>
9 changes: 9 additions & 0 deletions paras/src/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ import React, { useState } from "react";
import { Link, useNavigate } from "react-router-dom";
import "./Login.css";










const Login = () => {
const [formData, setFormData] = useState({
email: "",
Expand Down