mirror of https://github.com/yb/uptime-status
Merge pull request #3 from hostlikepro/codespace-yakkadev-organic-space-engine-66gx9rrjv5w3qp6
add hoverpull/48/head^2
commit
bdd97b03e3
|
@ -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",
|
||||||
|
|
|
@ -50,6 +50,9 @@ a {
|
||||||
a:hover {
|
a:hover {
|
||||||
color: $primary-color;
|
color: $primary-color;
|
||||||
}
|
}
|
||||||
|
a.hvr {
|
||||||
|
color: $primary-color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue