pull/48/head^2
Ilya 2023-03-19 04:29:37 +02:00
commit 04ace5ffd9
4 changed files with 7 additions and 5 deletions

3
package-lock.json generated
View File

@ -2,14 +2,13 @@
"name": "@hostlikepro/uptime-status", "name": "@hostlikepro/uptime-status",
"version": "1.0.1", "version": "1.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"repository":"https://github.com/hostlikepro/RoboUptime",
"requires": true, "requires": true,
"repository": "https://github.com/hostlikepro/RoboUptime",
"packages": { "packages": {
"": { "": {
"name": "@hostlikepro/uptime-status", "name": "@hostlikepro/uptime-status",
"version": "1.0.1", "version": "1.0.1",
"license": "MIT", "license": "MIT",
"repository":"https://github.com/hostlikepro/RoboUptime",
"dependencies": { "dependencies": {
"axios": "^0.27.2", "axios": "^0.27.2",
"dayjs": "^1.11.3", "dayjs": "^1.11.3",

View File

@ -50,6 +50,9 @@ a {
a:hover { a:hover {
color: $primary-color; color: $primary-color;
} }
a.hvr {
color: $primary-color;
}
} }
} }

View File

@ -13,7 +13,7 @@ function Header() {
<h1 className='logo'>{window.Config.SiteName}</h1> <h1 className='logo'>{window.Config.SiteName}</h1>
<div className='navi'> <div className='navi'>
{window.Config.Navi.map((item, index) => ( {window.Config.Navi.map((item, index) => (
<Link key={index} to={item.url} tar={item.target} text={item.text} /> <Link key={index} hvr={item.hover} to={item.url} tar={item.target} text={item.text} />
))} ))}
</div> </div>
</div> </div>

View File

@ -1,6 +1,6 @@
function Link(props = { text, to, tar }) { function Link(props = { text, hvr, to, tar }) {
return ( return (
<a {...props} href={props.to} target={props.tar}> <a {...props} class={props.hvr} href={props.to} target={props.tar}>
{props.text} {props.text}
</a> </a>
); );