This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/raisfeld-ori/d_vault
- Loading branch information
Showing
4 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
|
||
import React, { useState } from 'react'; | ||
import './main_page.css'; | ||
import './main_page.css'; | ||
import { desktop_app } from './Grid'; | ||
|
||
import Grid from './Grid'; | ||
import folder from './assets/folder.png'; | ||
import menu_icon from './assets/computer-laptop-color-icon.webp'; | ||
import search from './assets/search.png'; | ||
import terminal from './assets/Terminal-icon.png'; | ||
|
||
import terminald from './assets/Terminal-icon.png'; | ||
import file_system from './internal_apps/file_system'; | ||
import { useState } from 'react'; | ||
import ibetonhakari from './assets/TOCA2.mp4';; | ||
import { desktop_app } from './Grid'; | ||
|
||
export default function main_page(){ | ||
|
||
export default function MainPage() { | ||
const [fs, set_fs] = useState(<></>); | ||
const example_app = desktop_app( "Dolphin", folder, file_system(set_fs)); | ||
const not_example_app = desktop_app("Search", search, () => {console.log("test");}); | ||
const example_app = desktop_app("Dolphin", folder, file_system(set_fs)); | ||
const not_example_app = desktop_app("Search", search, () => { console.log("test"); }); | ||
const terminal = desktop_app("Terminal", terminald, () => {}); | ||
|
||
return ( | ||
<div id='background'> | ||
|
||
return <div id='background'> | ||
{fs} | ||
<Grid apps={[example_app, not_example_app]} gridSize={50} margin={100}/> | ||
<nav className='navbar'> | ||
<img className='homeimg' src={menu_icon} alt="" /> | ||
<img className='searchimg' src={search} alt="" /> | ||
<img className='terminalimg' src={terminal} alt="" /> | ||
<p className='time'>12:09 AM <br /> 12/10/2027</p> | ||
</nav> | ||
</div> | ||
{fs} | ||
<Grid apps={[example_app, not_example_app, terminal]} gridSize={50} margin={120} /> | ||
<nav className='navbar'> | ||
<img className='homeimg' src={menu_icon} alt="" /> | ||
<img className='searchimg' src={search} alt="" /> | ||
<img className='terminalimg' src={terminald} alt="" /> | ||
<p className='time'>12:09 AM <br /> 12/10/2027</p> | ||
</nav> | ||
<video className='hakari' src={ibetonhakari} width="100%" height="100%" autoPlay muted> | ||
Your browser does not support the video tag. | ||
</video> | ||
</div> | ||
); | ||
} |