feat: add centered white "hello" text overlay on banner images
Co-authored-by: aider (openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
parent
f5c52bab2e
commit
e17d097b49
@ -5,10 +5,25 @@ body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
header img {
|
header img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-text {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: white;
|
||||||
|
font-size: 48px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
nav, footer {
|
nav, footer {
|
||||||
background-color: #625B5B;
|
background-color: #625B5B;
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
5
i1.html
5
i1.html
@ -6,8 +6,9 @@
|
|||||||
<link rel="stylesheet" href="css/layout.css">
|
<link rel="stylesheet" href="css/layout.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header style="position: relative; text-align: center;">
|
||||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
<img src="imgs/baner.png" alt="kursy komputerowe" style="width: 100%;">
|
||||||
|
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 48px; font-weight: bold;">hello</div>
|
||||||
</header>
|
</header>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="i1.html">Strona główna</a>
|
<a href="i1.html">Strona główna</a>
|
||||||
|
|||||||
@ -6,8 +6,9 @@
|
|||||||
<link rel="stylesheet" href="css/layout.css">
|
<link rel="stylesheet" href="css/layout.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header style="position: relative; text-align: center;">
|
||||||
<img src="imgs/baner.png" alt="kursy komputerowe">
|
<img src="imgs/baner.png" alt="kursy komputerowe" style="width: 100%;">
|
||||||
|
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 48px; font-weight: bold;">hello</div>
|
||||||
</header>
|
</header>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="i1.html">Strona główna</a>
|
<a href="i1.html">Strona główna</a>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user