Refine HogwartsPointsCard design and styling.

Updated the HogwartsPointsCard component to enhance its styling. Changes include a more subtle and consistent visual appearance by refining colors, borders, shadows, padding, and grid spacing. Adjusted font sizes and shadows for better readability and aesthetics.
This commit is contained in:
2026-02-07 12:24:28 +01:00
parent 06b6544653
commit 9d744c8674

View File

@@ -424,78 +424,85 @@ export default function App() {
}; };
const HogwartsPointsCard = ({ value = 0 }) => { const HogwartsPointsCard = ({ value = 0 }) => {
const GOLD = "#f2d27a"; // echtes Gold, unabhängig vom Theme const GOLD = "#f2d27a";
const GOLD2 = "#caa24a"; // dunkleres Gold für Rand const GOLD2 = "#caa24a";
return ( return (
<div <div
style={{ style={{
borderRadius: 18, borderRadius: 18,
border: `1px solid ${stylesTokens.panelBorder}`, border: "1px solid rgba(255,255,255,0.06)",
background: stylesTokens.panelBg, background: "transparent", // 🔥 außen quasi unsichtbar
boxShadow: "0 14px 40px rgba(0,0,0,0.45)", boxShadow: "none",
backdropFilter: "blur(10px)", backdropFilter: "none",
overflow: "hidden", overflow: "visible",
position: "relative",
minWidth: 0, minWidth: 0,
padding: 14, padding: 6,
display: "grid", display: "grid",
gridTemplateRows: "auto 1fr", gridTemplateRows: "auto 1fr",
gap: 10, gap: 8,
}} }}
> >
{/* Header */} {/* Header */}
<div style={{ fontWeight: 900, fontSize: 12.5, color: stylesTokens.textDim, opacity: 0.95 }}> <div
style={{
fontWeight: 900,
fontSize: 12.5,
color: stylesTokens.textDim,
opacity: 0.9,
paddingLeft: 6,
}}
>
Hogwarts Points Hogwarts Points
</div> </div>
{/* Medallion / parchment inset */} {/* Pergament */}
<div <div
style={{ style={{
borderRadius: 16, borderRadius: 16,
border: `1px solid ${stylesTokens.panelBorder}`, border: "1px solid rgba(180,140,70,0.45)",
background: ` background: `
radial-gradient(120% 140% at 20% 15%, rgba(255,245,220,0.95), rgba(245,225,185,0.88) 55%, rgba(210,170,110,0.78)), radial-gradient(140% 160% at 15% 10%, rgba(245,225,185,0.88), rgba(225,195,145,0.82) 55%, rgba(175,135,85,0.75)),
radial-gradient(90% 120% at 85% 80%, rgba(255,255,255,0.18), transparent 55%), radial-gradient(120% 120% at 85% 85%, rgba(255,255,255,0.10), transparent 60%),
linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.06)) linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.22))
`, `,
boxShadow: boxShadow:
"inset 0 0 0 1px rgba(0,0,0,0.22), inset 0 18px 50px rgba(0,0,0,0.12), 0 18px 50px rgba(0,0,0,0.35)", "inset 0 0 0 1px rgba(0,0,0,0.18), inset 0 20px 50px rgba(0,0,0,0.22), 0 18px 40px rgba(0,0,0,0.35)",
position: "relative", position: "relative",
overflow: "hidden", overflow: "hidden",
display: "grid", display: "grid",
placeItems: "center", placeItems: "center",
padding: 12, padding: "16px 14px",
}} }}
> >
{/* paper speckles */} {/* Papier-Flecken / Grain */}
<div <div
style={{ style={{
position: "absolute", position: "absolute",
inset: 0, inset: 0,
background: ` background: `
radial-gradient(circle at 18% 38%, rgba(120,70,20,0.10), transparent 42%), radial-gradient(circle at 22% 36%, rgba(90,60,25,0.14), transparent 42%),
radial-gradient(circle at 72% 28%, rgba(120,70,20,0.08), transparent 40%), radial-gradient(circle at 70% 30%, rgba(90,60,25,0.10), transparent 38%),
radial-gradient(circle at 60% 78%, rgba(255,255,255,0.12), transparent 46%) radial-gradient(circle at 58% 76%, rgba(255,255,255,0.08), transparent 46%)
`, `,
opacity: 0.55, opacity: 0.65,
pointerEvents: "none", pointerEvents: "none",
}} }}
/> />
{/* gold frame line */} {/* Goldene Innenlinie */}
<div <div
style={{ style={{
position: "absolute", position: "absolute",
inset: 10, inset: 10,
borderRadius: 12, borderRadius: 12,
border: `1px solid rgba(202,162,74,0.55)`, border: `1px solid rgba(202,162,74,0.45)`,
boxShadow: `inset 0 0 0 1px rgba(242,210,122,0.18)`, boxShadow: "inset 0 0 0 1px rgba(242,210,122,0.16)",
pointerEvents: "none", pointerEvents: "none",
}} }}
/> />
{/* value */} {/* Wert */}
<div <div
style={{ style={{
display: "flex", display: "flex",
@@ -508,11 +515,11 @@ export default function App() {
style={{ style={{
color: GOLD, color: GOLD,
fontWeight: 900, fontWeight: 900,
fontSize: 46, fontSize: 44,
letterSpacing: 0.5, letterSpacing: 0.5,
lineHeight: 1, lineHeight: 1,
textShadow: textShadow:
"0 1px 0 rgba(0,0,0,0.25), 0 0 18px rgba(242,210,122,0.22)", "0 1px 0 rgba(0,0,0,0.35), 0 0 18px rgba(242,210,122,0.25)",
}} }}
> >
{value} {value}
@@ -522,11 +529,11 @@ export default function App() {
style={{ style={{
color: GOLD, color: GOLD,
fontWeight: 900, fontWeight: 900,
fontSize: 18, fontSize: 17,
letterSpacing: 1.3, letterSpacing: 1.2,
transform: "translateY(-6px)", transform: "translateY(-5px)",
textShadow: textShadow:
"0 1px 0 rgba(0,0,0,0.22), 0 0 14px rgba(242,210,122,0.18)", "0 1px 0 rgba(0,0,0,0.32), 0 0 14px rgba(242,210,122,0.20)",
opacity: 0.95, opacity: 0.95,
}} }}
> >
@@ -534,19 +541,19 @@ export default function App() {
</div> </div>
</div> </div>
{/* small stamp */} {/* Siegel */}
<div <div
style={{ style={{
position: "absolute", position: "absolute",
bottom: 10, bottom: 10,
right: 12, right: 12,
color: "rgba(40,25,10,0.45)", color: "rgba(60,40,18,0.55)",
fontSize: 11, fontSize: 11,
fontWeight: 900, fontWeight: 900,
letterSpacing: 1.6, letterSpacing: 1.5,
textTransform: "uppercase", textTransform: "uppercase",
transform: "rotate(-6deg)", transform: "rotate(-6deg)",
border: `1px solid rgba(40,25,10,0.18)`, border: "1px solid rgba(60,40,18,0.25)",
borderRadius: 999, borderRadius: 999,
padding: "3px 8px", padding: "3px 8px",
background: "rgba(255,255,255,0.10)", background: "rgba(255,255,255,0.10)",
@@ -561,6 +568,7 @@ export default function App() {
return ( return (
<div style={styles.page}> <div style={styles.page}>
<div style={styles.bgFixed} aria-hidden="true"> <div style={styles.bgFixed} aria-hidden="true">