Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d4d7deacc7 | |||
| d80dbd5d01 | |||
| 30059aaa52 | |||
| a122ce5499 | |||
| 40f516ccf0 | |||
| 2c2e2a2f5b | |||
| 5cadda8396 | |||
| 10da9b3707 |
14 changed files with 816900 additions and 1609 deletions
202
LICENSE
Normal file
202
LICENSE
Normal file
|
|
@ -0,0 +1,202 @@
|
||||||
|
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright [yyyy] [name of copyright owner]
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
Binary file not shown.
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -6,8 +6,9 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
height: 100vh;
|
min-height: 100vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
|
|
@ -15,13 +16,15 @@ body {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-top: 50px;
|
max-width: 1200px;
|
||||||
|
padding: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-wrapper {
|
.image-wrapper {
|
||||||
background-color: #233B53;
|
background-color: #233B53;
|
||||||
width: 950px;
|
width: 100%;
|
||||||
|
max-width: 950px;
|
||||||
min-height: 555px;
|
min-height: 555px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
@ -32,20 +35,21 @@ body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-container {
|
.image-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 635px;
|
width: 635px;
|
||||||
height: 360px;
|
height: 360px;
|
||||||
padding-top: 15px;
|
padding: 15px 15px 0 15px;
|
||||||
padding-left: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-container img {
|
.image-container img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: cover;
|
||||||
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-container {
|
.details-container {
|
||||||
|
|
@ -58,24 +62,32 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 10px 15px 10px 15px;
|
padding: 15px;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 16px;
|
font-size: 15px;
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
color: #A1B0C7;
|
color: #A1B0C7;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
line-height: 1.5;
|
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 {
|
.download-btn {
|
||||||
|
|
@ -85,11 +97,10 @@ body {
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 15px;
|
||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -97,98 +108,59 @@ body {
|
||||||
background: linear-gradient(to bottom, #8DC50E, #475F2D);
|
background: linear-gradient(to bottom, #8DC50E, #475F2D);
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-mode {
|
.game-mode,
|
||||||
position: absolute;
|
.tags,
|
||||||
top: 15px;
|
.file-size,
|
||||||
left: 660px;
|
.added-time {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: #A1B0C7;
|
color: #A1B0C7;
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding-left: 5px;
|
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 {
|
.dynamic-data {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: white;
|
color: white;
|
||||||
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags {
|
.file-size .dynamic-data,
|
||||||
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 {
|
.added-time .dynamic-data {
|
||||||
font-size: 13px;
|
|
||||||
font-weight: normal;
|
|
||||||
color: #A1B0C7;
|
color: #A1B0C7;
|
||||||
margin-left: 45px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.youtube-container {
|
.youtube-container {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
width: 265px;
|
width: 265px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 210px;
|
top: 210px;
|
||||||
left: 660px;
|
left: 660px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Мобильная адаптация */
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
body {
|
body {
|
||||||
flex-direction: column;
|
padding: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
padding-top: 20px;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-wrapper {
|
.image-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
min-height: auto;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -201,21 +173,36 @@ body {
|
||||||
.image-container img {
|
.image-container img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
max-height: 300px;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.details-container {
|
.details-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 15px;
|
margin: 10px 0 0 0;
|
||||||
margin-left: 0;
|
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-btn {
|
.download-btn {
|
||||||
position: static;
|
position: static;
|
||||||
margin-top: 15px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 45px;
|
||||||
font-size: 18px;
|
font-size: 16px;
|
||||||
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-mode,
|
.game-mode,
|
||||||
|
|
@ -224,24 +211,59 @@ body {
|
||||||
.added-time {
|
.added-time {
|
||||||
position: static;
|
position: static;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 100%;
|
padding-left: 0;
|
||||||
text-align: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dynamic-data {
|
.dynamic-data {
|
||||||
|
display: block;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.youtube-container {
|
.youtube-container {
|
||||||
position: static;
|
position: static;
|
||||||
margin-top: 15px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.youtube-container iframe {
|
.youtube-container iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>workshop</title>
|
<title data-i18n="title">workshop</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
|
||||||
<link rel="icon" href="{{ url_for('static', filename='assets/steam-120.ico') }}" type="image/x-icon">
|
<link rel="icon" href="https://csgoworkshop.ru/favicon.ico" type="image/x-icon">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
<script src="{{ url_for('static', filename='main.js') }}" defer></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<div class="image-wrapper">
|
<div class="image-wrapper">
|
||||||
|
|
@ -23,27 +22,27 @@
|
||||||
{{ description }}
|
{{ description }}
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ url_for('download_bsp', image_path=image_url) }}">
|
<a href="{{ url_for('download_bsp', image_path=image_url) }}">
|
||||||
<button class="download-btn">🡇 Скачать</button>
|
<button class="download-btn" data-i18n="download">Скачать</button>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="game-mode">
|
<div class="game-mode">
|
||||||
<span>Режим игры:</span>
|
<span data-i18n="game_mode_label">Режим игры:</span>
|
||||||
<span class="dynamic-data">{{ game_mode | default('Не указан') }}</span>
|
<span class="dynamic-data">{{ game_mode | default('Не указан') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
<span>Метки:</span>
|
<span data-i18n="tags_label">Метки:</span>
|
||||||
<span class="dynamic-data">{{ tags | default('Не указаны') }}</span>
|
<span class="dynamic-data">{{ tags | default('Не указаны') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="file-size">
|
<div class="file-size">
|
||||||
<span>Размер файла:</span>
|
<span data-i18n="file_size_label">Размер файла:</span>
|
||||||
<span class="dynamic-data">{{ file_size | default('Не указан') }}</span>
|
<span class="dynamic-data">{{ file_size | default('Не указан') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="added-time">
|
<div class="added-time">
|
||||||
<span>Добавлен:</span>
|
<span data-i18n="added_time_label">Добавлен:</span>
|
||||||
<span class="dynamic-data">{{ added_time | default('Не указано') }}</span>
|
<span class="dynamic-data">{{ added_time | default('Не указано') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -62,5 +61,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,4 +1,71 @@
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
const translations = {
|
||||||
|
ru: {
|
||||||
|
title: "workshop",
|
||||||
|
download: "Скачать",
|
||||||
|
game_mode_label: "Режим игры:",
|
||||||
|
tags_label: "Метки:",
|
||||||
|
file_size_label: "Размер файла:",
|
||||||
|
added_time_label: "Добавлен:"
|
||||||
|
},
|
||||||
|
en: {
|
||||||
|
title: "Workshop",
|
||||||
|
download: "Download",
|
||||||
|
game_mode_label: "Game Mode:",
|
||||||
|
tags_label: "Tags:",
|
||||||
|
file_size_label: "File Size:",
|
||||||
|
added_time_label: "Added:"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const savedLang = localStorage.getItem('selectedLanguage');
|
||||||
|
const browserLang = (navigator.language || navigator.userLanguage).split('-')[0];
|
||||||
|
const defaultLang = savedLang && translations[savedLang] ? savedLang : (translations[browserLang] ? browserLang : 'ru');
|
||||||
|
|
||||||
|
function translatePage(lang) {
|
||||||
|
document.querySelectorAll('[data-i18n]').forEach(element => {
|
||||||
|
const key = element.getAttribute('data-i18n');
|
||||||
|
if (translations[lang][key]) {
|
||||||
|
element.innerHTML = translations[lang][key];
|
||||||
|
} else {
|
||||||
|
console.warn(`Translation missing for key: ${key} in language: ${lang}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
document.documentElement.lang = lang;
|
||||||
|
localStorage.setItem('selectedLanguage', lang);
|
||||||
|
}
|
||||||
|
|
||||||
|
function convertBBCodeToMarkdown(text) {
|
||||||
|
let converted = text
|
||||||
|
.replace(/\n\s*\n/g, '\n\n') // Убираем лишние пробелы между строками
|
||||||
|
.trim();
|
||||||
|
|
||||||
|
// Преобразование [h1] и [h3] в Markdown-заголовки
|
||||||
|
converted = converted.replace(/\[h1\](.*?)\[\/h1\]/g, '# $1');
|
||||||
|
converted = converted.replace(/\[h3\](.*?)\[\/h3\]/g, '### $1');
|
||||||
|
|
||||||
|
// Преобразование изображений и ссылок
|
||||||
|
converted = converted.replace(/\[url=([^\]]+)\]\[img\]([^\[]+)\[\/img\]\[\/url\]/g, '[]($1)');
|
||||||
|
converted = converted.replace(/\[img\]([^\[]+)\[\/img\]/g, '');
|
||||||
|
converted = converted.replace(/\[url=([^\]]+)\]([^\[]+)\[\/url\]/g, '[$2]($1)');
|
||||||
|
|
||||||
|
return converted;
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderDescription() {
|
||||||
|
const descriptionElement = document.querySelector('.description');
|
||||||
|
if (descriptionElement && window.marked) {
|
||||||
|
const rawText = descriptionElement.textContent;
|
||||||
|
const markdownText = convertBBCodeToMarkdown(rawText);
|
||||||
|
descriptionElement.innerHTML = marked.parse(markdownText);
|
||||||
|
} else {
|
||||||
|
console.warn('Marked.js не загружен или элемент .description не найден');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
translatePage(defaultLang);
|
||||||
|
renderDescription();
|
||||||
|
|
||||||
const cards = document.querySelectorAll('.card');
|
const cards = document.querySelectorAll('.card');
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
card.addEventListener('click', () => {
|
card.addEventListener('click', () => {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #1B2A3C;
|
background-color: #1B2A3C;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
@ -7,8 +8,6 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* кнопка "Связаться" */
|
|
||||||
.contact-button {
|
.contact-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
|
|
@ -26,26 +25,25 @@ body {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.top-bar {
|
.top-bar {
|
||||||
background-color: #171D25;
|
background-color: #171D25;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 105px;
|
height: 105px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between; /* Элементы слева и справа */
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
padding-left: 20px; /* Отступ слева */
|
padding-left: 20px;
|
||||||
padding-right: 20px; /* Отступ справа */
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-text {
|
.left-text {
|
||||||
color: white;
|
color: white;
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
margin-right: 15px; /* Отступ справа для текста */
|
margin-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-text p {
|
.left-text p {
|
||||||
|
|
@ -58,12 +56,11 @@ body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
flex-grow: 1; /* Элемент займет всю доступную ширину */
|
flex-grow: 1;
|
||||||
margin-left: -500px; /* Это выравнивает текст по правому краю */
|
margin-left: -500px;
|
||||||
margin-right: auto; /* Это выравнивает текст по левому краю */
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
@ -475,19 +472,6 @@ body {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-stars {
|
|
||||||
margin-top: 420px;
|
|
||||||
margin-right: 260px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.filter-title {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.filter-stars {
|
.filter-stars {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 420px;
|
margin-top: 420px;
|
||||||
|
|
@ -533,20 +517,45 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Медиа-запросы для мобильной адаптации */
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
body {
|
body {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-bar {
|
.top-bar {
|
||||||
height: 80px;
|
height: 60px;
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center-text {
|
||||||
|
font-size: 24px;
|
||||||
|
margin: 0;
|
||||||
|
flex-grow: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-button {
|
||||||
|
position: absolute;
|
||||||
|
top: 10px;
|
||||||
|
right: 30px;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 80px;
|
margin-top: 70px;
|
||||||
padding: 0 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cards-container {
|
.cards-container {
|
||||||
|
|
@ -557,110 +566,166 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
width: 90%; /* Карточки занимают почти весь экран */
|
width: 90%;
|
||||||
max-width: 300px; /* Ограничение по ширине */
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card img:not(.stars) {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-popup {
|
||||||
|
width: 90%;
|
||||||
|
left: 0;
|
||||||
|
top: 100%;
|
||||||
|
margin-top: 10px;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-popup::after {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-rectangle {
|
.right-rectangle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-left: 0;
|
margin: 20px 0;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-modes {
|
.game-modes {
|
||||||
position: static;
|
position: static;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
justify-content: center;
|
align-items: flex-start;
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
.game-mode {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-mode:hover::after {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sort-button-container {
|
||||||
|
justify-content: center;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sort-button {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
margin-top: 20px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-stars {
|
||||||
|
position: static;
|
||||||
|
width: 100%;
|
||||||
|
margin: 20px 0;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stars-filter {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
height: auto;
|
height: auto;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
max-width: 500px; /* Ограничиваем максимальную ширину для больших мобильных устройств */
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
padding: 15px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-btn {
|
.close-btn {
|
||||||
top: -30px;
|
top: -30px;
|
||||||
right: -10px;
|
right: 0;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-content h2 {
|
.modal-content h2 {
|
||||||
margin-left: 15px;
|
margin-left: 0;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-rectangle {
|
.modal-rectangle {
|
||||||
|
position: static;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 45px;
|
height: auto;
|
||||||
padding: 0 15px;
|
flex-direction: column;
|
||||||
}
|
padding: 10px;
|
||||||
|
gap: 10px;
|
||||||
.modal-rectangle .text-left,
|
|
||||||
.modal-rectangle .text-center {
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 5px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.date-input {
|
.date-input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cancel-button,
|
.modal-rectangle .text-left,
|
||||||
.ok-button {
|
.modal-rectangle .text-center {
|
||||||
position: static;
|
font-size: 14px;
|
||||||
margin-top: 20px;
|
|
||||||
width: 100%;
|
|
||||||
height: 40px;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ok-button,
|
||||||
.cancel-button {
|
.cancel-button {
|
||||||
margin-bottom: 10px;
|
position: static;
|
||||||
}
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
.ok-button {
|
height: 40px;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
.pagination {
|
.center-text {
|
||||||
flex-wrap: wrap;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-stars {
|
.card-title {
|
||||||
width: 90%;
|
font-size: 14px;
|
||||||
position: static;
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container {
|
.description-popup {
|
||||||
margin-top: 20px;
|
font-size: 12px;
|
||||||
}
|
|
||||||
|
|
||||||
.search-input {
|
|
||||||
width: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sort-button-container {
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sort-button {
|
.sort-button {
|
||||||
width: auto;
|
font-size: 12px;
|
||||||
margin: 5px;
|
}
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
height: 35px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter-title {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stars-filter label {
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,29 +1,41 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
|
<!-- НЕ ЛЕЗЬ СЮДА -->
|
||||||
<head>
|
<head>
|
||||||
|
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-5CSFWZX5');</script>
|
||||||
|
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>workshop</title>
|
<title data-i18n="title">workshop</title>
|
||||||
<link rel="icon" href="{{ url_for('static', filename='assets/steam-120.ico') }}" type="image/x-icon">
|
<link rel="icon" href="https://csgoworkshop.ru/favicon.ico" type="image/x-icon">
|
||||||
|
<link rel="canonical" href="https://csgoworkshop.ru/">
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='workshop.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='workshop.css') }}">
|
||||||
<script src="{{ url_for('static', filename='workshop.js') }}" defer></script>
|
<script src="{{ url_for('static', filename='workshop.js') }}" defer></script>
|
||||||
|
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PGN3XJFDFF"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'G-PGN3XJFDFF');
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="top-bar">
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5CSFWZX5"
|
||||||
|
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||||
|
|
||||||
|
<div class="top-bar">
|
||||||
<div class="left-text">
|
<div class="left-text">
|
||||||
<p>Сделал: ©️𝙎𝙃∆𝙈∆𝙉©️</p>
|
<p data-i18n="made_by">Сделал: ©️𝙎𝙃∆𝙈∆𝙉©️</p>
|
||||||
<p>Неофициальный сайт<br>с картами для CS:GO<br>из мастерской Steam</p>
|
<p data-i18n="description">Неофициальный сайт<br>с картами для CS:GO<br>из мастерской Steam</p>
|
||||||
|
</div>
|
||||||
|
<h1 class="center-text" data-i18n="header">CS:GO Workshop</h1>
|
||||||
|
<a href="https://cloud.shsr.ru/apps/forms/s/xr8NyqdpsodwcNnRBSrMzJ4N" class="contact-button" target="_blank" data-i18n="contact">Связаться</a>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="center-text">Добро пожаловать в Workshop</h1>
|
|
||||||
<a href="https://cloud.s.shsr.ru/apps/forms/s/xr8NyqdpsodwcNnRBSrMzJ4N" class="contact-button" target="_blank">Связаться</a> <!-- Добавлен target="_blank" -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="main-container">
|
<div class="main-container">
|
||||||
<div class="cards-container">
|
<div class="cards-container">
|
||||||
|
|
@ -44,14 +56,11 @@
|
||||||
|
|
||||||
<div class="right-rectangle">
|
<div class="right-rectangle">
|
||||||
<div class="sort-button-container">
|
<div class="sort-button-container">
|
||||||
<button class="sort-button">Сортировать по дате</button>
|
<button class="sort-button" data-i18n="sort_by_date">Сортировать по дате</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="game-modes">
|
<div class="game-modes">
|
||||||
<div class="show-products-title">
|
<div class="show-products-title" data-i18n="show_products">Показать продукты, попадающие в каждую из выбранных категорий:</div>
|
||||||
Показать продукты, попадающие в каждую из выбранных категорий:
|
<div class="game-modes-title" data-i18n="game_modes">РЕЖИМ ИГРЫ</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="game-modes-title">РЕЖИМ ИГРЫ</div>
|
|
||||||
|
|
||||||
{% for mode, label in {
|
{% for mode, label in {
|
||||||
"Classic": "Классический",
|
"Classic": "Классический",
|
||||||
|
|
@ -62,18 +71,18 @@
|
||||||
"Training": "Обучение",
|
"Training": "Обучение",
|
||||||
"Co-op Strike": "Совместный налёт",
|
"Co-op Strike": "Совместный налёт",
|
||||||
"Wingman": "Напарники",
|
"Wingman": "Напарники",
|
||||||
"Flying Scoutsman": "Перелётные снайперы"
|
"Flying_Scoutsman": "Перелётные снайперы"
|
||||||
}.items() %}
|
}.items() %}
|
||||||
<label class="game-mode">
|
<label class="game-mode">
|
||||||
<input type="checkbox" class="game-mode-checkbox" value="{{ mode }}" {% if mode in filters %}checked{% endif %}>
|
<input type="checkbox" class="game-mode-checkbox" value="{{ mode }}" {% if mode in filters %}checked{% endif %}>
|
||||||
{{ label }}
|
<span data-i18n="game_mode_{{ mode }}">{{ label }}</span>
|
||||||
</label>
|
</label>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<form method="get" action="/">
|
<form method="get" action="/">
|
||||||
<div class="search-input-container">
|
<div class="search-input-container">
|
||||||
<input type="text" id="search" class="search-input" name="search_title" placeholder="Поиск по названию" value="{{ request.args.get('search_title', '') }}">
|
<input type="text" id="search" class="search-input" name="search_title" data-i18n-placeholder="search_placeholder" placeholder="Поиск по названию" value="{{ request.args.get('search_title', '') }}">
|
||||||
<button class="search-button" type="submit">
|
<button class="search-button" type="submit">
|
||||||
<img src="/images/search-icon.png" alt="Поиск">
|
<img src="/images/search-icon.png" alt="Поиск">
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -84,26 +93,26 @@
|
||||||
|
|
||||||
<div id="sortModal" class="modal">
|
<div id="sortModal" class="modal">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<span class="close-btn">×</span>
|
<span class="close-btn">×</span>
|
||||||
<h2>Сортировать по дате</h2>
|
<h2 data-i18n="sort_by_date">Сортировать по дате</h2>
|
||||||
<div class="modal-rectangle">
|
<div class="modal-rectangle">
|
||||||
<span class="text-left">С</span>
|
<span class="text-left" data-i18n="from">С</span>
|
||||||
<div class="first-rectangle">
|
<div class="first-rectangle">
|
||||||
<input type="date" class="date-input" />
|
<input type="date" class="date-input" />
|
||||||
</div>
|
</div>
|
||||||
<span class="text-center">ПО</span>
|
<span class="text-center" data-i18n="to">ПО</span>
|
||||||
<div class="second-rectangle">
|
<div class="second-rectangle">
|
||||||
<input type="date" class="date-input" />
|
<input type="date" class="date-input" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="ok-button">ОК</button>
|
<button class="ok-button" data-i18n="ok">ОК</button>
|
||||||
<button class="cancel-button">Отмена</button>
|
<button class="cancel-button" data-i18n="cancel">Отмена</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="filter-stars">
|
<div class="filter-stars">
|
||||||
<div class="filter-title">
|
<div class="filter-title">
|
||||||
<label>Фильтр по количеству звезд:</label>
|
<label data-i18n="filter_by_stars">Фильтр по количеству звезд:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="stars-filter">
|
<div class="stars-filter">
|
||||||
<label><input type="checkbox" name="stars" value="1" {% if 'stars' in request.args and '1' in request.args.getlist('stars') %}checked{% endif %}> 1</label>
|
<label><input type="checkbox" name="stars" value="1" {% if 'stars' in request.args and '1' in request.args.getlist('stars') %}checked{% endif %}> 1</label>
|
||||||
|
|
@ -116,7 +125,7 @@
|
||||||
|
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
{% if page > 1 %}
|
{% if page > 1 %}
|
||||||
<a class="pagebtn" href="/?page={{ page - 1 }}&{{ filters }}"><</a>
|
<a class="pagebtn" href="/?page={{ page - 1 }}&{{ filters }}"><</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page > 3 %}
|
{% if page > 3 %}
|
||||||
|
|
@ -140,10 +149,9 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page < total_pages %}
|
{% if page < total_pages %}
|
||||||
<a class="pagebtn" href="/?page={{ page + 1 }}&{{ filters }}">></a>
|
<a class="pagebtn" href="/?page={{ page + 1 }}&{{ filters }}">></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,4 +1,84 @@
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
|
const translations = {
|
||||||
|
ru: {
|
||||||
|
title: "workshop",
|
||||||
|
made_by: "Сделал: ©️𝙎𝙃∆𝙈∆𝙉©️",
|
||||||
|
description: "Неофициальный сайт<br>с картами для CS:GO<br>из мастерской Steam",
|
||||||
|
header: "CS:GO Workshop",
|
||||||
|
contact: "Связаться",
|
||||||
|
sort_by_date: "Сортировать по дате",
|
||||||
|
show_products: "Показать продукты, попадающие в каждую из выбранных категорий:",
|
||||||
|
game_modes: "РЕЖИМ ИГРЫ",
|
||||||
|
game_mode_Classic: "Классический",
|
||||||
|
game_mode_Deathmatch: "Бой насмерть",
|
||||||
|
game_mode_Demolition: "Уничтожение объекта",
|
||||||
|
game_mode_Armsrace: "Гонка вооружений",
|
||||||
|
game_mode_Custom: "Пользовательский",
|
||||||
|
game_mode_Training: "Обучение",
|
||||||
|
"game_mode_Co-op Strike": "Совместный налёт",
|
||||||
|
game_mode_Wingman: "Напарники",
|
||||||
|
game_mode_Flying_Scoutsman: "Перелётные снайперы",
|
||||||
|
search_placeholder: "Поиск по названию",
|
||||||
|
from: "С",
|
||||||
|
to: "ПО",
|
||||||
|
ok: "ОК",
|
||||||
|
cancel: "Отмена",
|
||||||
|
filter_by_stars: "Фильтр по количеству звезд:"
|
||||||
|
},
|
||||||
|
en: {
|
||||||
|
title: "Workshop",
|
||||||
|
made_by: "Made by: ©️𝙎𝙃∆𝙈∆𝙉©️",
|
||||||
|
description: "Unofficial site<br>with CS:GO maps<br>from Steam Workshop",
|
||||||
|
header: "CS:GO Workshop",
|
||||||
|
contact: "Contact",
|
||||||
|
sort_by_date: "Sort by date",
|
||||||
|
show_products: "Show products matching all selected categories:",
|
||||||
|
game_modes: "GAME MODES",
|
||||||
|
game_mode_Classic: "Classic",
|
||||||
|
game_mode_Deathmatch: "Deathmatch",
|
||||||
|
game_mode_Demolition: "Demolition",
|
||||||
|
game_mode_Armsrace: "Arms Race",
|
||||||
|
game_mode_Custom: "Custom",
|
||||||
|
game_mode_Training: "Training",
|
||||||
|
"game_mode_Co-op Strike": "Co-op Strike",
|
||||||
|
game_mode_Wingman: "Wingman",
|
||||||
|
game_mode_Flying_Scoutsman: "Flying Scoutsman",
|
||||||
|
search_placeholder: "Search by title",
|
||||||
|
from: "From",
|
||||||
|
to: "To",
|
||||||
|
ok: "OK",
|
||||||
|
cancel: "Cancel",
|
||||||
|
filter_by_stars: "Filter by number of stars:"
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const savedLang = localStorage.getItem('selectedLanguage');
|
||||||
|
const browserLang = (navigator.language || navigator.userLanguage).split('-')[0];
|
||||||
|
const defaultLang = savedLang && translations[savedLang] ? savedLang : (translations[browserLang] ? browserLang : 'ru');
|
||||||
|
|
||||||
|
function translatePage(lang) {
|
||||||
|
document.querySelectorAll('[data-i18n]').forEach(element => {
|
||||||
|
const key = element.getAttribute('data-i18n');
|
||||||
|
if (translations[lang][key]) {
|
||||||
|
element.innerHTML = translations[lang][key];
|
||||||
|
} else {
|
||||||
|
console.warn(`Translation missing for key: ${key} in language: ${lang}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
document.querySelectorAll('[data-i18n-placeholder]').forEach(element => {
|
||||||
|
const key = element.getAttribute('data-i18n-placeholder');
|
||||||
|
if (translations[lang][key]) {
|
||||||
|
element.placeholder = translations[lang][key];
|
||||||
|
} else {
|
||||||
|
console.warn(`Placeholder translation missing for key: ${key} in language: ${lang}`);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
document.documentElement.lang = lang;
|
||||||
|
localStorage.setItem('selectedLanguage', lang);
|
||||||
|
}
|
||||||
|
|
||||||
|
translatePage(defaultLang);
|
||||||
|
|
||||||
const sortButton = document.querySelector('.sort-button');
|
const sortButton = document.querySelector('.sort-button');
|
||||||
const modal = document.getElementById('sortModal');
|
const modal = document.getElementById('sortModal');
|
||||||
const closeButton = document.querySelector('.close-btn');
|
const closeButton = document.querySelector('.close-btn');
|
||||||
|
|
@ -9,74 +89,59 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
const checkboxes = document.querySelectorAll('.game-mode-checkbox');
|
const checkboxes = document.querySelectorAll('.game-mode-checkbox');
|
||||||
const params = new URLSearchParams(window.location.search);
|
const params = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
// Устанавливаем состояние чекбоксов при загрузке страницы
|
|
||||||
checkboxes.forEach(checkbox => {
|
checkboxes.forEach(checkbox => {
|
||||||
checkbox.checked = params.getAll('game_modes').includes(checkbox.value);
|
checkbox.checked = params.getAll('game_modes').includes(checkbox.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Открыть модальное окно при нажатии на кнопку
|
|
||||||
sortButton.addEventListener('click', function () {
|
sortButton.addEventListener('click', function () {
|
||||||
modal.style.display = 'block';
|
modal.style.display = 'block';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Закрыть модальное окно при нажатии на крестик
|
|
||||||
closeButton.addEventListener('click', function () {
|
closeButton.addEventListener('click', function () {
|
||||||
modal.style.display = 'none';
|
modal.style.display = 'none';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Закрыть модальное окно при нажатии на кнопку "Отмена"
|
|
||||||
cancelButton.addEventListener('click', function () {
|
cancelButton.addEventListener('click', function () {
|
||||||
modal.style.display = 'none';
|
modal.style.display = 'none';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Применить фильтры по дате и режимам игры при нажатии на кнопку "OK"
|
|
||||||
okButton.addEventListener('click', function () {
|
okButton.addEventListener('click', function () {
|
||||||
const startDate = startDateInput.value;
|
const startDate = startDateInput.value;
|
||||||
const endDate = endDateInput.value;
|
const endDate = endDateInput.value;
|
||||||
|
|
||||||
// Фильтры по датам
|
|
||||||
if (startDate) params.set('start_date', startDate);
|
if (startDate) params.set('start_date', startDate);
|
||||||
else params.delete('start_date');
|
else params.delete('start_date');
|
||||||
|
|
||||||
if (endDate) params.set('end_date', endDate);
|
if (endDate) params.set('end_date', endDate);
|
||||||
else params.delete('end_date');
|
else params.delete('end_date');
|
||||||
|
|
||||||
// Фильтры по режимам игры
|
|
||||||
const selectedGameModes = Array.from(checkboxes)
|
const selectedGameModes = Array.from(checkboxes)
|
||||||
.filter(checkbox => checkbox.checked)
|
.filter(checkbox => checkbox.checked)
|
||||||
.map(checkbox => checkbox.value);
|
.map(checkbox => checkbox.value);
|
||||||
|
|
||||||
// Обновляем параметры для выбранных режимов
|
params.delete('game_modes');
|
||||||
params.delete('game_modes'); // Удаляем старые значения
|
|
||||||
selectedGameModes.forEach(mode => params.append('game_modes', mode));
|
selectedGameModes.forEach(mode => params.append('game_modes', mode));
|
||||||
|
|
||||||
params.set('page', 1); // Сбрасываем на первую страницу
|
params.set('page', 1);
|
||||||
modal.style.display = 'none'; // Закрываем модальное окно
|
modal.style.display = 'none';
|
||||||
window.location.search = params.toString(); // Перезагружаем страницу с новыми параметрами
|
window.location.search = params.toString();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Обновление параметров при изменении чекбоксов
|
|
||||||
checkboxes.forEach(checkbox => {
|
checkboxes.forEach(checkbox => {
|
||||||
checkbox.addEventListener('change', function () {
|
checkbox.addEventListener('change', function () {
|
||||||
const selectedGameModes = Array.from(checkboxes)
|
const selectedGameModes = Array.from(checkboxes)
|
||||||
.filter(checkbox => checkbox.checked)
|
.filter(checkbox => checkbox.checked)
|
||||||
.map(checkbox => checkbox.value);
|
.map(checkbox => checkbox.value);
|
||||||
|
|
||||||
// Обновляем параметры URL
|
params.delete('game_modes');
|
||||||
params.delete('game_modes'); // Удаляем старые значения
|
|
||||||
selectedGameModes.forEach(mode => params.append('game_modes', mode));
|
selectedGameModes.forEach(mode => params.append('game_modes', mode));
|
||||||
|
|
||||||
params.set('page', 1); // Сбрасываем на первую страницу
|
params.set('page', 1);
|
||||||
window.location.search = params.toString(); // Перезагружаем страницу с новыми параметрами
|
window.location.search = params.toString();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const searchInput = document.querySelector('.search-input');
|
const searchInput = document.querySelector('.search-input');
|
||||||
|
|
||||||
// Функция для обработки поиска
|
|
||||||
function performSearch() {
|
function performSearch() {
|
||||||
const query = searchInput.value.toLowerCase();
|
const query = searchInput.value.toLowerCase();
|
||||||
const cards = document.querySelectorAll('.card');
|
const cards = document.querySelectorAll('.card');
|
||||||
|
|
@ -84,32 +149,25 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
const title = card.querySelector('.card-title').textContent.toLowerCase();
|
const title = card.querySelector('.card-title').textContent.toLowerCase();
|
||||||
if (title.includes(query)) {
|
if (title.includes(query)) {
|
||||||
card.style.display = 'block'; // Показываем карточку, если название соответствует запросу
|
card.style.display = 'block';
|
||||||
} else {
|
} else {
|
||||||
card.style.display = 'none'; // Скрываем карточку, если название не соответствует запросу
|
card.style.display = 'none';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Поиск по нажатию клавиши Enter
|
|
||||||
searchInput.addEventListener('keydown', function (event) {
|
searchInput.addEventListener('keydown', function (event) {
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
performSearch();
|
performSearch();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Поиск по клику на лупу (если такая кнопка добавлена)
|
|
||||||
const searchButton = document.querySelector('.search-button');
|
const searchButton = document.querySelector('.search-button');
|
||||||
if (searchButton) {
|
if (searchButton) {
|
||||||
searchButton.addEventListener('click', performSearch);
|
searchButton.addEventListener('click', performSearch);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const starsCheckboxes = document.querySelectorAll('input[name="stars"]');
|
const starsCheckboxes = document.querySelectorAll('input[name="stars"]');
|
||||||
const params = new URLSearchParams(window.location.search);
|
|
||||||
|
|
||||||
// Устанавливаем состояние чекбоксов при загрузке страницы
|
|
||||||
const selectedStars = params.get('stars');
|
const selectedStars = params.get('stars');
|
||||||
if (selectedStars) {
|
if (selectedStars) {
|
||||||
starsCheckboxes.forEach(checkbox => {
|
starsCheckboxes.forEach(checkbox => {
|
||||||
|
|
@ -119,10 +177,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Обновление параметров при изменении чекбоксов для звезд
|
|
||||||
starsCheckboxes.forEach(checkbox => {
|
starsCheckboxes.forEach(checkbox => {
|
||||||
checkbox.addEventListener('change', function () {
|
checkbox.addEventListener('change', function () {
|
||||||
// Снимаем отметки с других чекбоксов
|
|
||||||
starsCheckboxes.forEach(otherCheckbox => {
|
starsCheckboxes.forEach(otherCheckbox => {
|
||||||
if (otherCheckbox !== checkbox) {
|
if (otherCheckbox !== checkbox) {
|
||||||
otherCheckbox.checked = false;
|
otherCheckbox.checked = false;
|
||||||
|
|
@ -130,15 +186,13 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
const selectedStar = checkbox.checked ? checkbox.value : null;
|
const selectedStar = checkbox.checked ? checkbox.value : null;
|
||||||
|
|
||||||
// Обновляем параметры URL
|
|
||||||
params.delete('stars');
|
params.delete('stars');
|
||||||
if (selectedStar) {
|
if (selectedStar) {
|
||||||
params.set('stars', selectedStar); // Устанавливаем выбранную звезду
|
params.set('stars', selectedStar);
|
||||||
}
|
}
|
||||||
|
|
||||||
params.set('page', 1); // Сбрасываем на первую страницу
|
params.set('page', 1);
|
||||||
window.location.search = params.toString(); // Перезагружаем страницу с новыми параметрами
|
window.location.search = params.toString();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
814875
sitemap.xml
Normal file
814875
sitemap.xml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue