File tree Expand file tree Collapse file tree 3 files changed +77
-23
lines changed
Expand file tree Collapse file tree 3 files changed +77
-23
lines changed Original file line number Diff line number Diff line change 1- import logo from './logo.svg' ;
2- import './App.css' ;
1+ import BootScreen from "./components/welcome/Bootscreen" ;
32
4- function App ( ) {
5- return (
6- < div className = "App" >
7- < header className = "App-header" >
8- < img src = { logo } className = "App-logo" alt = "logo" />
9- < p >
10- Edit < code > src/App.js</ code > and save to reload.
11- </ p >
12- < a
13- className = "App-link"
14- href = "https://reactjs.org"
15- target = "_blank"
16- rel = "noopener noreferrer"
17- >
18- Learn React
19- </ a >
20- </ header >
21- </ div >
22- ) ;
3+ function App ( ) {
4+ return (
5+ < >
6+ < BootScreen />
7+ </ >
8+ )
239}
24-
25- export default App ;
10+ export default App
Original file line number Diff line number Diff line change 1+ import { useEffect } from 'react'
2+ import './welcome.css'
3+ export default function BootScreen ( { onDone} ) {
4+ useEffect ( ( ) => {
5+ const id = setTimeout ( onDone , 2500 ) ;
6+ return ( ) => clearTimeout ( id ) ;
7+ } , [ onDone ] )
8+
9+ return (
10+ < div className = "w-screen boot-screen" >
11+ < div className = "boot-logo-name" > Aurora OS</ div >
12+ </ div >
13+ )
14+ }
Original file line number Diff line number Diff line change 1+ @keyframes fadeIn{
2+ from {opacity : 0 ;}
3+ to {opacity : 1 ;}
4+ }
5+
6+ @keyframes blink{
7+ 0% , 49% {opacity : 1 ;}
8+ 50% , 100%{opacity : 0 ;}
9+ }
10+
11+ @keyframes shake{
12+ 0% , 100%{transform : translateX (0 );}
13+ 20% , 60% {transform : translateX (-5px );}
14+ 40% , 80% {transform : translateX (5px );}
15+ }
16+
17+ @keyframes slideUp{
18+ to {transform : translateY (-100vh );}
19+ }
20+
21+ @keyframes fillBar{
22+ from {width : 0% ;}
23+ to {width : 100% }
24+ }
25+ : root {
26+ --bg : # d4d0c8 ;
27+ --surface : # ece9d8 ;
28+ --border : # 808080 ;
29+ --border-lt : # ffffff ;
30+ --border-dk : # 404040 ;
31+ --text : # 000000 ;
32+ --text-dim : # 555555 ;
33+ --accent : # 000080 ;
34+ --accent-fg : # ffffff ;
35+ }
36+
37+ .w-screen {
38+ position : fixed;
39+ inset : 0 ;
40+ font-family : 'Segoe UI' , Tahoma, sans-serif;
41+ font-size : 13px ;
42+ overflow : hidden;
43+ user-select : none;
44+ color : var (--text );
45+ }
46+
47+ .boot-screen {
48+ background : # 000 ;
49+ display : flex;
50+ flex-direction : column;
51+ align-items : center;
52+ justify-content : center;
53+ gap : 32px ;
54+ animation : fadeIn 0.3s ease;
55+ }
You can’t perform that action at this time.
0 commit comments