modified: begushiybashkir/src/index.html

modified:   begushiybashkir/src/styles/style.css
text on top of img
This commit is contained in:
2025-08-09 05:14:10 +05:00
parent b5bac2ad61
commit 8157ce49b8
2 changed files with 61 additions and 39 deletions
+16 -12
View File
@@ -11,18 +11,22 @@
<html> <html>
<body> <body>
<header> <header>
<img <div class="header_img" id="header_img">
class="MainPhoto" <img
id="MainPhotoID" class="MainPhoto"
src="./photo/ZagirTrainer.jpg" id="MainPhotoID"
alt="BegushiyBashkirClub'sPhoto" src="./photo/ZagirTrainer.jpg"
/> alt="BegushiyBashkirClub'sPhoto"
<h3>Running club - Беговой клуб</h3> />
<h1>Begushiy Bashkir</h1> </div>
<h3> <div class="text_card" id="text_card">
«БЕГ — ЭТО НЕ ТОЛЬКО СКОРОСТЬ. ЭТО — СИЛА ПРЕДКОВ, ДУХ БАТЫРА И <h1>Begushiy Bashkir</h1>
ШАПКА-БҮРЕК НА ГОЛОВЕ!» <h3>Running club - Беговой клуб</h3>
</h3> <h3>
«БЕГ — ЭТО НЕ ТОЛЬКО СКОРОСТЬ. ЭТО — СИЛА ПРЕДКОВ, ДУХ БАТЫРА И
ШАПКА-БҮРЕК НА ГОЛОВЕ!»
</h3>
</div>
</header> </header>
<main class="MainContent" id="MainContent"> <main class="MainContent" id="MainContent">
+45 -27
View File
@@ -1,48 +1,66 @@
@import url('mobileStyle.css'); @import url("mobileStyle.css");
@import url('tabletStyle.css'); @import url("tabletStyle.css");
@import url('descktopStyle.css'); @import url("descktopStyle.css");
html { html {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #d4f0cc; background-color: #d4f0cc;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
} }
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #db7e7e; background-color: #db7e7e;
} }
header { header {
background-color: #888888; background-color: #888888;
display: flex;
justify-content: center;
align-items: center;
}
.header_img {
position: relative;
width: 100%;
height: auto;
}
.text_card {
position: absolute; /* накладываем элемент поверх */
bottom: 0;
top: 0;
left: 0;
right: 0;
background-color: rgba(0, 255, 0, 0.5);
} }
footer { footer {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
background-color: #020202; background-color: #020202;
} }
.MainContent { .MainContent {
margin: 20px; margin: 20px;
padding: 20px; padding: 20px;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1); box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
border-radius: 1em; border-radius: 1em;
} }
img { img {
width: 100%; width: 100%;
height: auto; height: auto;
} }
.PhotoZagirTrainer { .PhotoZagirTrainer {
min-width: 150px; min-width: 150px;
max-width: 400px; max-width: 400px;
} }