Загрузить файлы в «frontend»

This commit is contained in:
shaman_lesnoy 2025-03-18 01:14:09 +03:00
parent 40f516ccf0
commit a122ce5499
5 changed files with 1296 additions and 1171 deletions

View file

@ -1,247 +1,269 @@
body {
background-color: #1B2838;
color: white;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
overflow: auto;
}
.main-container {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
padding-top: 50px;
box-sizing: border-box;
}
.image-wrapper {
background-color: #233B53;
width: 950px;
min-height: 555px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
position: relative;
border-radius: 5px;
overflow: hidden;
flex-wrap: wrap;
height: auto;
}
.image-container {
position: relative;
width: 635px;
height: 360px;
padding-top: 15px;
padding-left: 15px;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: contain;
}
.details-container {
width: 635px;
height: auto;
background-color: #19222C;
border: 3px solid #35465E;
box-sizing: border-box;
margin-top: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 10px 15px 10px 15px;
margin-left: 15px;
position: relative;
}
.card-title {
font-size: 20px;
font-family: Arial, sans-serif;
font-weight: bold;
margin: 0;
}
.description {
font-size: 16px;
font-family: Arial, sans-serif;
color: #A1B0C7;
margin-top: 10px;
line-height: 1.5;
}
.download-btn {
width: 138px;
height: 35px;
background: linear-gradient(to bottom, #A4D007, #536904);
color: white;
border: none;
border-radius: 2px;
font-family: Arial, sans-serif;
font-size: 19px;
cursor: pointer;
position: absolute;
top: 10px;
right: 15px;
}
.download-btn:hover {
background: linear-gradient(to bottom, #8DC50E, #475F2D);
}
.game-mode {
position: absolute;
top: 15px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.dynamic-data {
font-size: 14px;
font-weight: normal;
color: white;
}
.tags {
position: absolute;
top: 100px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.file-size {
position: absolute;
top: 150px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.file-size .dynamic-data {
font-size: 13px;
font-weight: normal;
color: #A1B0C7;
margin-left: 16px;
}
.added-time {
position: absolute;
top: 170px;
left: 660px;
font-size: 13px;
color: #A1B0C7;
font-family: Arial, sans-serif;
font-weight: normal;
padding-left: 5px;
}
.added-time .dynamic-data {
font-size: 13px;
font-weight: normal;
color: #A1B0C7;
margin-left: 45px;
}
.youtube-container {
margin-top: 15px;
width: 265px;
height: 150px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 210px;
left: 660px;
}
@media screen and (max-width: 768px) {
body {
flex-direction: column;
align-items: center;
padding: 0 10px;
}
.main-container {
padding-top: 20px;
}
.image-wrapper {
width: 100%;
flex-direction: column;
align-items: center;
padding: 10px;
}
.image-container {
width: 100%;
height: auto;
padding: 0;
}
.image-container img {
width: 100%;
height: auto;
}
.details-container {
width: 100%;
margin-top: 15px;
margin-left: 0;
padding: 15px;
}
.download-btn {
position: static;
margin-top: 15px;
width: 100%;
height: 40px;
font-size: 18px;
}
.game-mode,
.tags,
.file-size,
.added-time {
position: static;
margin-top: 10px;
width: 100%;
text-align: left;
}
.dynamic-data {
margin-left: 0;
font-size: 14px;
}
.youtube-container {
position: static;
margin-top: 15px;
width: 100%;
height: auto;
}
.youtube-container iframe {
width: 100%;
height: auto;
}
}
body {
background-color: #1B2838;
color: white;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
overflow: auto;
font-family: Arial, sans-serif;
}
.main-container {
display: flex;
justify-content: center;
align-items: flex-start;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.image-wrapper {
background-color: #233B53;
width: 100%;
max-width: 950px;
min-height: 555px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
position: relative;
border-radius: 5px;
overflow: hidden;
flex-wrap: wrap;
height: auto;
box-sizing: border-box;
}
.image-container {
position: relative;
width: 635px;
height: 360px;
padding: 15px 15px 0 15px;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 5px;
}
.details-container {
width: 635px;
height: auto;
background-color: #19222C;
border: 3px solid #35465E;
box-sizing: border-box;
margin-top: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 15px;
margin-left: 15px;
position: relative;
}
.card-title {
font-size: 20px;
font-weight: bold;
margin: 0;
}
.description {
font-size: 15px;
color: #A1B0C7;
margin-top: 10px;
line-height: 1.5;
word-wrap: break-word;
text-align: center;
}
.description img {
max-width: 100%;
height: auto;
display: block;
margin: 10px 0;
border-radius: 5px;
}
.download-btn {
width: 138px;
height: 35px;
background: linear-gradient(to bottom, #A4D007, #536904);
color: white;
border: none;
border-radius: 2px;
font-size: 19px;
cursor: pointer;
position: absolute;
top: 15px;
right: 15px;
}
.download-btn:hover {
background: linear-gradient(to bottom, #8DC50E, #475F2D);
}
.game-mode,
.tags,
.file-size,
.added-time {
font-size: 13px;
color: #A1B0C7;
font-weight: normal;
padding-left: 5px;
margin-top: 10px;
}
.game-mode { position: absolute; top: 15px; left: 660px; }
.tags { position: absolute; top: 100px; left: 660px; }
.file-size { position: absolute; top: 150px; left: 660px; }
.added-time { position: absolute; top: 170px; left: 660px; }
.dynamic-data {
font-size: 14px;
font-weight: normal;
color: white;
margin-left: 5px;
}
.file-size .dynamic-data,
.added-time .dynamic-data {
color: #A1B0C7;
}
.youtube-container {
margin-top: 15px;
width: 265px;
height: 150px;
position: absolute;
top: 210px;
left: 660px;
}
/* Мобильная адаптация */
@media screen and (max-width: 768px) {
body {
padding: 10px;
align-items: center;
}
.main-container {
padding: 10px 0;
}
.image-wrapper {
width: 100%;
max-width: 100%;
min-height: auto;
flex-direction: column;
padding: 10px;
}
.image-container {
width: 100%;
height: auto;
padding: 0;
}
.image-container img {
width: 100%;
height: auto;
max-height: 300px;
object-fit: cover;
}
.details-container {
width: 100%;
margin: 10px 0 0 0;
padding: 15px;
position: static;
}
.card-title {
font-size: 18px;
}
.description {
font-size: 14px;
}
.description img {
max-width: 100%;
height: auto;
}
.download-btn {
position: static;
width: 100%;
height: 45px;
font-size: 16px;
margin-top: 15px;
}
.game-mode,
.tags,
.file-size,
.added-time {
position: static;
margin-top: 10px;
padding-left: 0;
}
.dynamic-data {
display: block;
margin-left: 0;
font-size: 13px;
}
.youtube-container {
position: static;
width: 100%;
height: auto;
margin-top: 15px;
}
.youtube-container iframe {
width: 100%;
height: 200px;
}
}
@media screen and (max-width: 480px) {
.card-title {
font-size: 16px;
}
.description {
font-size: 13px;
}
.description img {
max-width: 100%;
height: auto;
}
.download-btn {
height: 40px;
font-size: 14px;
}
.game-mode,
.tags,
.file-size,
.added-time {
font-size: 12px;
}
.dynamic-data {
font-size: 12px;
}
.youtube-container iframe {
height: 180px;
}
}