rolled back btn
This commit is contained in:
parent
0540dd89a0
commit
15ce70b404
1 changed files with 41 additions and 42 deletions
|
@ -3,8 +3,9 @@ import baseStyle from "./styles/footer.scss"
|
||||||
import { useEffect, useState } from "preact/hooks"
|
import { useEffect, useState } from "preact/hooks"
|
||||||
|
|
||||||
// Import the JSON data
|
// Import the JSON data
|
||||||
import buttonsData from "./buttons.json"
|
import buttonsData from "../buttons.json"
|
||||||
|
|
||||||
|
export default (() => {
|
||||||
// Define the component
|
// Define the component
|
||||||
const Btn8831: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
|
const Btn8831: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
|
||||||
// Since the data is static, you can directly use buttonsData
|
// Since the data is static, you can directly use buttonsData
|
||||||
|
@ -35,8 +36,6 @@ const customStyle = `
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
opacity: 1;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
.btn8831-container a {
|
.btn8831-container a {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
@ -48,7 +47,7 @@ const customStyle = `
|
||||||
`
|
`
|
||||||
|
|
||||||
// Combine base styles with custom styles
|
// Combine base styles with custom styles
|
||||||
Btn8831.css = customStyle
|
Btn8831.css = baseStyle + customStyle
|
||||||
|
|
||||||
|
return Btn8831
|
||||||
export default (() => Btn8831) satisfies QuartzComponentConstructor
|
})() satisfies QuartzComponentConstructor
|
||||||
|
|
Loading…
Add table
Reference in a new issue