Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raisfeld-ori committed Mar 31, 2024
2 parents a35c911 + 5ce375a commit e54e577
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/pages/login/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -588,3 +588,19 @@ li {
}


.ignore{
position: absolute;
top: 0;
right: 0;
margin-top: 0px;
}

.ignore img {
width: 4.5svh;
height: 4.5svh;
}

.ignore img:hover{
width: 5svh;
height: 5svh;
}
7 changes: 6 additions & 1 deletion src/pages/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useState } from 'react';
import { invoke } from '@tauri-apps/api';
import { useNavigate } from 'react-router-dom';
import noenemies from '../main_page/assets/nature.jpg';
import exiticon from '../main_page/assets/x_icon.png';


function login(){
const [name, setname] = useState("");
Expand All @@ -22,7 +24,10 @@ function login(){
}

return <div id='background' onContextMenu={e => e.preventDefault()}>
<button className='upperbutton' aria-current={true} onClick={() => navigate("/", {state: {name, password}})}>Login</button>
<button className='ignore' onClick={async () => {await invoke('close_app', {});}}>
<img src={exiticon} alt="" />
</button>
<button className='upperbutton' aria-current={true} onClick={() => navigate("/", {state: {name, password}})}>Login</button>
<button className='upperbutton' aria-current={false} onClick={() => navigate("/signup", {state: {name, password}})}>Sign Up</button>
<img className='IhaveNoEnemys' src={noenemies} alt="backgroundimg" />
<div className='iseewhoyouare' ></div>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/login/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { invoke } from '@tauri-apps/api';
import noenemies from '../main_page/assets/nature2.jpg';
import exiticon from '../main_page/assets/x_icon.png';



function Login() {
Expand All @@ -25,7 +27,9 @@ function Login() {

return (
<div id='background' onContextMenu={e => e.preventDefault()}>

<button className='ignore' onClick={async () => {await invoke('close_app', {});}}>
<img src={exiticon} alt="" />
</button>
<button className='upperbutton' aria-current={false} onClick={() => navigate("/", {state: {name, password}})}>Login</button>
<button className='upperbutton' aria-current={true} onClick={() => navigate("/signup", {state: {name, password}})}>Sign Up</button>
<img className='IhaveNoEnemys' src={noenemies} alt="backgroundimg" />
Expand Down
Binary file added src/pages/main_page/assets/x_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e54e577

Please sign in to comment.