rolled back btn

This commit is contained in:
Ulysia 2024-10-14 09:09:28 +02:00
parent 0540dd89a0
commit 15ce70b404

View file

@ -3,8 +3,9 @@ import baseStyle from "./styles/footer.scss"
import { useEffect, useState } from "preact/hooks"
// Import the JSON data
import buttonsData from "./buttons.json"
import buttonsData from "../buttons.json"
export default (() => {
// Define the component
const Btn8831: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
// Since the data is static, you can directly use buttonsData
@ -35,8 +36,6 @@ const customStyle = `
flex-wrap: wrap;
max-width: 60%;
margin: 0 auto;
opacity: 1;
justify-content: center;
}
.btn8831-container a {
margin: 5px;
@ -48,7 +47,7 @@ const customStyle = `
`
// Combine base styles with custom styles
Btn8831.css = customStyle
Btn8831.css = baseStyle + customStyle
export default (() => Btn8831) satisfies QuartzComponentConstructor
return Btn8831
})() satisfies QuartzComponentConstructor