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

Commit

Permalink
LOADING PAGE UPDATE
Browse files Browse the repository at this point in the history
UPDATED LOADING
  • Loading branch information
arielldev authored Jun 17, 2024
2 parents 4bc0ee4 + a2589ef commit 3c28314
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/pages/login/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './login.css';
import { invoke } from '@tauri-apps/api';
import { useEffect, useState } from 'react';
import { useLocation } from 'react-router-dom';
import noenemies from '../main_page/assets/nature.jpg';
import pfp from './assets/Default_pfp.svg.png';
import { useNavigate } from 'react-router-dom';

Expand All @@ -21,20 +22,19 @@ function loading(){
await invoke('system_make', {key: 'name',val: name_val});
let password_val = await invoke('create_value', {valType: 'string', val: location.state.password});
await invoke('system_make', {key: 'password',val: password_val});
navigate('/main_page');
});
}, []);

return <div id='background' onContextMenu={e => e.preventDefault()}>
<img className='IhaveNoEnemys' src={noenemies} alt="backgroundimg" />
<div className='iseewhoyouare' ></div>

<div className='triangle down'></div>
<div className='triangle left'></div>

<div className="dot">
<img src={pfp} alt="Descriptive text" />
</div>

<p id='melody'>Welcome {location.state.name}!</p>
<p id='melody'>Welcome <span className='nameload'>{location.state.name}</span>!</p>

<div className="load">{state}
<p className='error'>{error}</p>
Expand Down
16 changes: 12 additions & 4 deletions src/pages/login/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
.dot {
height: 170px;
width: 170px;
border: 2px solid #ffffff;
border: 2px solid #00000013;
border-radius: 50%;
display: inline-block;
overflow: hidden;
Expand Down Expand Up @@ -175,9 +175,17 @@
margin-top: 2svh;
color: #ffffff;
font-size: 2svh;
font-weight: bold;
user-select: none;

}
.nameload{
margin-top: 2svh;
color: #2f6df3;
font-size: 2svh;
font-weight: bold;
user-select: none;
}

/* --------------------- SIGNUP ---------------------*/

Expand Down Expand Up @@ -330,17 +338,17 @@
width:150px;
height:150px;
background:transparent;
border:3px solid #323232;
border:3px solid #0000000f;
border-radius:50%;
text-align:center;
line-height:150px;
font-family:sans-serif;
font-size:20px;
color:#00aaff;
color:#0084ff;
letter-spacing:4px;
text-transform:uppercase;
text-shadow:0 0 10px #006aff55;
box-shadow:0 0 20px rgba(50, 50, 50, 0.5);
box-shadow:0 0 20px rgba(50, 50, 50, 0.242);
}
.load .error{
color:#ff0000;
Expand Down

0 comments on commit 3c28314

Please sign in to comment.