mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
hover effect
This commit is contained in:
parent
25c4a1e9ce
commit
2f86f1c004
4 changed files with 29 additions and 15 deletions
10
.prettierrc
Normal file
10
.prettierrc
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"singleQuote": false,
|
||||
"endOfLine": "crlf",
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"trailingComma": "none",
|
||||
"plugins": [
|
||||
"prettier-plugin-tailwindcss"
|
||||
]
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from 'preact-router';
|
||||
import { Link } from "preact-router";
|
||||
|
||||
interface HeaderButtonProps {
|
||||
href: string;
|
||||
|
@ -13,10 +13,12 @@ export function HeaderButton(props: HeaderButtonProps) {
|
|||
|
||||
return (
|
||||
<Link href={href}>
|
||||
<div class="p-4 flex flex-row items-center">
|
||||
<Icon class="w-6 h-6"/>
|
||||
<span className="text-text-color text-lg pl-1 font-roboto font-bold">{t(translationKey)}</span>
|
||||
<div className="group p-4 flex flex-row items-center">
|
||||
<Icon className="group-hover:text-text-hover-color transition duration-500 w-6 h-6" />
|
||||
<span className="group-hover:text-text-hover-color transition duration-500 text-text-color text-lg pl-1 font-roboto font-bold">
|
||||
{t(translationKey)}
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
)
|
||||
);
|
||||
}
|
|
@ -6,6 +6,7 @@
|
|||
--navbar-height: 60px;
|
||||
--navbar-text-color: #7967dd;
|
||||
--navbar-link-color: #e0def4;
|
||||
--navbar-link-hover-color: gray;
|
||||
--navbar-font: "Roboto";
|
||||
--input-text-color: #e0def4;
|
||||
--input-placeholder-color: white;
|
||||
|
|
|
@ -10,6 +10,7 @@ export default {
|
|||
"navbar-text-color": "var(--navbar-text-color)",
|
||||
"navbar-color": "var(--navbar-color)",
|
||||
"text-color": "var(--navbar-link-color)",
|
||||
"text-hover-color": "var(--navbar-link-hover-color)",
|
||||
"input": "var(--input-background-color)",
|
||||
"input-text": "var(--input-text-color)",
|
||||
"input-border-color": "var(--input-border-color)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue