-
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.
- Loading branch information
Showing
8 changed files
with
170 additions
and
7 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
document.addEventListener('DOMContentLoaded', () => { | ||
window.__TAURI__.core.invoke('get_title').then(title => { | ||
document.getElementById('tab-title').innerText = title; | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap'); | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
height: 60px; | ||
background: transparent; | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
|
||
body::before { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: #E3F4FE; | ||
opacity: .75; | ||
z-index: -1; | ||
} | ||
|
||
nav { | ||
padding: .75rem 1.25rem; | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
align-items: center; | ||
height: -webkit-fill-available; | ||
} | ||
|
||
nav > #tabs, nav > #controls { | ||
height: -webkit-fill-available; | ||
display: flex; | ||
gap: .5rem; | ||
} | ||
|
||
nav > #tabs > svg, nav > #controls > svg { | ||
width: 22px; | ||
cursor: pointer; | ||
} | ||
|
||
nav > #tabs > div { | ||
padding: 0 .5rem; | ||
background: #E2E5E8; | ||
border-radius: 8px; | ||
font-size: 15px; | ||
font-weight: 600; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
nav > input#searchbar { | ||
padding: .4rem 1rem; | ||
height: -webkit-fill-available; | ||
background: #E2E5E8; | ||
border: none; | ||
border-radius: 8px; | ||
font-size: 14px; | ||
font-weight: 600; | ||
outline: none; | ||
} | ||
|
||
nav > #controls { | ||
justify-self: self-end; | ||
} | ||
|
||
nav > #controls > svg:last-child { | ||
fill: #FF1E00; | ||
} |
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 +1,32 @@ | ||
<p>Yomea Project</p> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="./styles.css"> | ||
</head> | ||
<body> | ||
<nav> | ||
<div id="tabs"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> | ||
<path d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z" /> | ||
</svg> | ||
<div id="tab-title"></div> | ||
</div> | ||
|
||
<input | ||
id="searchbar" | ||
type="url" | ||
placeholder="Search in the universe..." | ||
/> | ||
|
||
<div id="controls"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> | ||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" /> | ||
</svg> | ||
</div> | ||
</nav> | ||
|
||
<script src="./script.js" type="module"></script> | ||
</body> | ||
</html> |
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