Improve HUD styling and layout consistency
Adjusted various height, padding, and spacing values for better alignment and responsiveness in the HUD. Increased font sizes and refined positioning to ensure a visually balanced layout. These changes enhance the user experience by improving aesthetic and functional design.
This commit is contained in:
@@ -429,16 +429,21 @@ export default function App() {
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
height: "100%", // 🔥 füllt HUD-Zelle
|
||||||
|
minHeight: 0,
|
||||||
background: "transparent",
|
background: "transparent",
|
||||||
border: "none",
|
border: "none",
|
||||||
boxShadow: "none",
|
boxShadow: "none",
|
||||||
padding: 4,
|
padding: 0,
|
||||||
minWidth: 0,
|
display: "grid",
|
||||||
|
placeItems: "center", // zentriert Pergament in voller Höhe
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Pergament */}
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
width: "100%",
|
||||||
|
height: "100%", // 🔥 Pergament darf in die Höhe gehen
|
||||||
|
minHeight: 0,
|
||||||
borderRadius: 18,
|
borderRadius: 18,
|
||||||
background: `
|
background: `
|
||||||
radial-gradient(140% 160% at 15% 10%, rgba(235,215,175,0.88), rgba(215,185,135,0.82) 55%, rgba(165,125,75,0.75)),
|
radial-gradient(140% 160% at 15% 10%, rgba(235,215,175,0.88), rgba(215,185,135,0.82) 55%, rgba(165,125,75,0.75)),
|
||||||
@@ -451,7 +456,7 @@ export default function App() {
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
display: "grid",
|
display: "grid",
|
||||||
placeItems: "center",
|
placeItems: "center",
|
||||||
padding: "22px 18px",
|
padding: "18px 18px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{/* Papier-Flecken */}
|
{/* Papier-Flecken */}
|
||||||
@@ -473,7 +478,7 @@ export default function App() {
|
|||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
inset: 10,
|
inset: 12,
|
||||||
borderRadius: 14,
|
borderRadius: 14,
|
||||||
border: "1px solid rgba(202,162,74,0.40)",
|
border: "1px solid rgba(202,162,74,0.40)",
|
||||||
boxShadow: "inset 0 0 0 1px rgba(242,210,122,0.14)",
|
boxShadow: "inset 0 0 0 1px rgba(242,210,122,0.14)",
|
||||||
@@ -494,7 +499,7 @@ export default function App() {
|
|||||||
style={{
|
style={{
|
||||||
color: GOLD,
|
color: GOLD,
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
fontSize: 46,
|
fontSize: 52, // etwas größer, weil mehr Platz
|
||||||
letterSpacing: 0.6,
|
letterSpacing: 0.6,
|
||||||
lineHeight: 1,
|
lineHeight: 1,
|
||||||
textShadow:
|
textShadow:
|
||||||
@@ -508,9 +513,9 @@ export default function App() {
|
|||||||
style={{
|
style={{
|
||||||
color: GOLD,
|
color: GOLD,
|
||||||
fontWeight: 900,
|
fontWeight: 900,
|
||||||
fontSize: 18,
|
fontSize: 19,
|
||||||
letterSpacing: 1.4,
|
letterSpacing: 1.4,
|
||||||
transform: "translateY(-6px)",
|
transform: "translateY(-7px)",
|
||||||
textShadow:
|
textShadow:
|
||||||
"0 1px 0 rgba(0,0,0,0.32), 0 0 14px rgba(242,210,122,0.22)",
|
"0 1px 0 rgba(0,0,0,0.32), 0 0 14px rgba(242,210,122,0.22)",
|
||||||
opacity: 0.95,
|
opacity: 0.95,
|
||||||
@@ -524,7 +529,7 @@ export default function App() {
|
|||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
bottom: 12,
|
bottom: 14,
|
||||||
right: 14,
|
right: 14,
|
||||||
color: "rgba(60,40,18,0.55)",
|
color: "rgba(60,40,18,0.55)",
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
@@ -547,6 +552,7 @@ export default function App() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ body {
|
|||||||
|
|
||||||
/* HUD */
|
/* HUD */
|
||||||
.playerHud {
|
.playerHud {
|
||||||
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -139,6 +140,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.playerHudMiddle {
|
.playerHudMiddle {
|
||||||
|
height: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user