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 6, 2024
2 parents 3a4ba9e + 4e26521 commit c2017a9
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 48 deletions.
1 change: 0 additions & 1 deletion src/pages/login/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './login.css';
import { invoke } from '@tauri-apps/api';
import { useState } from 'react';

Check failure on line 3 in src/pages/login/loading.tsx

View workflow job for this annotation

GitHub Actions / build (windows-latest)

'useState' is declared but its value is never read.
// import { useNavigate } from 'react-router-dom';
import { useLocation } from 'react-router-dom';
import {useEffect} from "react";

Expand Down
125 changes: 86 additions & 39 deletions src/pages/login/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
border-radius: 50%;
display: inline-block;
overflow: hidden;
margin-top: 10svh;
}

.dot img {
Expand Down Expand Up @@ -180,9 +181,8 @@
}

#melody {
font-weight: bold;
margin-top: 10svh;
color: #0f0000;
margin-top: 2svh;
color: #ffffff;
font-size: 2svh;
}

Expand Down Expand Up @@ -314,41 +314,88 @@
}





@-webkit-keyframes rotating /* Safari and Chrome */ {
from {
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
/* ---------------------- loading screen ------------------------------ */

.load
{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:150px;
height:150px;
background:transparent;
border:3px solid #323232;
border-radius:50%;
text-align:center;
line-height:150px;
font-family:sans-serif;
font-size:20px;
color:#00aaff;
letter-spacing:4px;
text-transform:uppercase;
text-shadow:0 0 10px #006aff;
box-shadow:0 0 20px rgba(50, 50, 50, 0.5);
}
.load:before
{
content:'';
position:absolute;
top:-3px;
left:-3px;
width:100%;
height:100%;
border:3px solid transparent;
border-top:3px solid #0084ff;
border-right:3px solid #0084ff;
border-radius:50%;
animation:animateC 2s linear infinite;
}
.loadspan
{
display:block;
position:absolute;
top:calc(50% - 2px);
left:50%;
width:50%;
height:4px;
background:transparent;
transform-origin:left;
animation:animate 2s linear infinite;
}
.loadspan:before
{
content:'';
position:absolute;
width:10px;
height:10 px;
border-radius:50%;
background:#00b3ff;
top:-6px;
right:-8px;
box-shadow:0 0 20px #00bfff;
}
@keyframes animateC
{
0%
{
transform:rotate(0deg);
}
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
100%
{
transform:rotate(360deg);
}
.rotating {
-webkit-animation: rotating 2s linear infinite;
-moz-animation: rotating 2s linear infinite;
-ms-animation: rotating 2s linear infinite;
-o-animation: rotating 2s linear infinite;
animation: rotating 2s linear infinite;
}
}
@keyframes animate
{
0%
{
transform:rotate(45deg);
}
100%
{
transform:rotate(405deg);
}
}


4 changes: 0 additions & 4 deletions src/pages/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import './login.css';
import { useState } from 'react';
import { invoke } from '@tauri-apps/api';
import { useNavigate } from 'react-router-dom';
import miku from '../../assets/Default_pfp.svg.png';



Expand Down Expand Up @@ -41,9 +40,6 @@ function login(){

<p id='plslogin'>Welcome back! <td></td> Please log to your account.</p>

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

<div className="input-group">
<label className="label">Username</label>
Expand Down
5 changes: 1 addition & 4 deletions src/pages/login/signup.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './login.css';
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import miku from '../../assets/Default_pfp.svg.png';


function Login() {
Expand All @@ -22,9 +21,7 @@ function Login() {
<div id='menu'>
<div id='form'>
<p id='plslogin'>Welcome!<td></td>Enter your credentials to Sign Up</p>
<div className="dot">
<img src={miku} alt="Descriptive text" />
</div>

<div className="input-group">
<label className="label">Username</label>
<input onChange={e => setName(e.currentTarget.value)} autoComplete="off" name="info" id="info" className="input" placeholder='Enter your username' type="info" />
Expand Down
Empty file added src/pages/main_page.tsx
Empty file.

0 comments on commit c2017a9

Please sign in to comment.