multple small improvement
This commit is contained in:
parent
910052c372
commit
b634c92142
Binary file not shown.
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
Before Width: | Height: | Size: 228 KiB |
|
@ -9,11 +9,7 @@ type ButtonProps = {
|
||||||
export default function Button(props: ButtonProps): JSX.Element {
|
export default function Button(props: ButtonProps): JSX.Element {
|
||||||
const button = (
|
const button = (
|
||||||
<div
|
<div
|
||||||
className={
|
className={`grid place-content-center place-items-center border-[1px] border-dark text-dark rounded-full cursor-pointer px-4 pt-[0.4rem] pb-[0.5rem] transition-all hover:text-light hover:bg-dark hover:drop-shadow-dark-lg active:bg-black active:drop-shadow-black-lg active:border-black ${props.className}`}
|
||||||
"grid place-content-center place-items-center border-[1px] border-dark text-dark rounded-full cursor-pointer px-4 pt-[0.4rem] pb-[0.5rem] transition-colors hover:text-light hover:bg-dark" +
|
|
||||||
" " +
|
|
||||||
props.className
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,9 +12,10 @@ type NavOptionProps = {
|
||||||
export default function NavOption(props: NavOptionProps): JSX.Element {
|
export default function NavOption(props: NavOptionProps): JSX.Element {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const isActive = router.asPath.startsWith(props.url);
|
const isActive = router.asPath.startsWith(props.url);
|
||||||
const divActive = "bg-mid";
|
const divActive = "bg-mid shadow-inner-sm shadow-dark";
|
||||||
const border = "border-2 border-mid";
|
const border =
|
||||||
const divCommon = `gap-x-5 w-full rounded-2xl cursor-pointer p-4 hover:bg-mid transition-colors ${
|
"outline outline-mid outline-2 outline-offset-[-2px] hover:outline-[transparent]";
|
||||||
|
const divCommon = `gap-x-5 w-full rounded-2xl cursor-pointer p-4 hover:bg-mid hover:shadow-inner-sm hover:shadow-dark active:shadow-inner active:shadow-dark transition-all ${
|
||||||
props.border ? border : ""
|
props.border ? border : ""
|
||||||
} ${isActive ? divActive : ""}`;
|
} ${isActive ? divActive : ""}`;
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ export default function LibrarySlug(props: LibrarySlugProps): JSX.Element {
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="summary"
|
id="summary"
|
||||||
className="bg-mid w-full grid place-items-center p-8 rounded-2xl"
|
className="bg-mid w-full grid place-items-center p-8 rounded-2xl shadow-inner-sm shadow-dark"
|
||||||
>
|
>
|
||||||
<div className="w-[clamp(0px,100%,42rem)] grid place-items-center gap-8">
|
<div className="w-[clamp(0px,100%,42rem)] grid place-items-center gap-8">
|
||||||
{item.subitem_of.data.length > 0 ? (
|
{item.subitem_of.data.length > 0 ? (
|
||||||
|
@ -190,7 +190,7 @@ export default function LibrarySlug(props: LibrarySlugProps): JSX.Element {
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="details"
|
id="details"
|
||||||
className="bg-mid w-full grid place-items-center p-8 rounded-2xl text-left"
|
className="bg-mid w-full grid place-items-center p-8 rounded-2xl text-left shadow-inner-sm shadow-dark"
|
||||||
>
|
>
|
||||||
<div className="w-[clamp(0px,100%,42rem)] grid place-items gap-8">
|
<div className="w-[clamp(0px,100%,42rem)] grid place-items gap-8">
|
||||||
<h2 className="text-2xl text-center">
|
<h2 className="text-2xl text-center">
|
||||||
|
@ -389,7 +389,7 @@ export default function LibrarySlug(props: LibrarySlugProps): JSX.Element {
|
||||||
<div
|
<div
|
||||||
id={content.attributes.slug}
|
id={content.attributes.slug}
|
||||||
key={content.id}
|
key={content.id}
|
||||||
className="grid gap-2 px-4 rounded-lg target:bg-mid target:h-auto target:py-3 target:my-2 target:[--displaySubContentMenu:grid] [--displaySubContentMenu:none]"
|
className="grid gap-2 px-4 rounded-lg target:bg-mid target:shadow-inner-sm target:shadow-dark target:h-auto target:py-3 target:my-2 target:[--displaySubContentMenu:grid] [--displaySubContentMenu:none]"
|
||||||
>
|
>
|
||||||
<div className="grid gap-4 place-items-center grid-cols-[auto_auto_1fr_auto_12ch] thin:grid-cols-[auto_auto_1fr_auto]">
|
<div className="grid gap-4 place-items-center grid-cols-[auto_auto_1fr_auto_12ch] thin:grid-cols-[auto_auto_1fr_auto]">
|
||||||
<a href={`#${content.attributes.slug}`}>
|
<a href={`#${content.attributes.slug}`}>
|
||||||
|
|
|
@ -22,8 +22,13 @@ module.exports = {
|
||||||
fine: { raw: "(pointer: fine)" },
|
fine: { raw: "(pointer: fine)" },
|
||||||
},
|
},
|
||||||
backgroundImage: {
|
backgroundImage: {
|
||||||
paper: "url('/paper_white.webp')",
|
paper: "url('/paper.webp')",
|
||||||
}
|
},
|
||||||
|
extend: {
|
||||||
|
boxShadow: {
|
||||||
|
"inner-sm": "inset 0 1px 4px -2px",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
require("@tailwindcss/typography"),
|
require("@tailwindcss/typography"),
|
||||||
|
@ -65,7 +70,7 @@ module.exports = {
|
||||||
addUtilities({
|
addUtilities({
|
||||||
".drop-shadow-dark-lg": {
|
".drop-shadow-dark-lg": {
|
||||||
filter:
|
filter:
|
||||||
"drop-shadow(0 10px 8px rgb(156 102 68 / 0.2)) drop-shadow(0 4px 3px rgb(156 102 68 / 0.8))",
|
"drop-shadow(0 10px 8px rgb(156 102 68 / 0.2)) drop-shadow(0 4px 3px rgb(156 102 68 / 0.4))",
|
||||||
},
|
},
|
||||||
".drop-shadow-dark-xl": {
|
".drop-shadow-dark-xl": {
|
||||||
filter:
|
filter:
|
||||||
|
@ -74,6 +79,18 @@ module.exports = {
|
||||||
".drop-shadow-dark-2xl": {
|
".drop-shadow-dark-2xl": {
|
||||||
filter: "drop-shadow(0 25px 25px rgb(156 102 68 / 0.8))",
|
filter: "drop-shadow(0 25px 25px rgb(156 102 68 / 0.8))",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
".drop-shadow-black-lg": {
|
||||||
|
filter:
|
||||||
|
"drop-shadow(0 10px 8px rgb(27 24 17 / 0.2)) drop-shadow(0 4px 3px rgb(27 24 17 / 0.4))",
|
||||||
|
},
|
||||||
|
".drop-shadow-black-xl": {
|
||||||
|
filter:
|
||||||
|
"drop-shadow(0 20px 13px rgb(27 24 17 / 0.25)) drop-shadow(0 8px 5px rgb(27 24 17 / 0.7))",
|
||||||
|
},
|
||||||
|
".drop-shadow-black-2xl": {
|
||||||
|
filter: "drop-shadow(0 25px 25px rgb(27 24 17 / 0.8))",
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue