Compare commits

..

No commits in common. "c5a4f97c95a898377229c7c0244b3bc7f61df556" and "74de406f1d4e763e500a63aeb8c7d3fa10775e9d" have entirely different histories.

9 changed files with 32 additions and 6 deletions

File diff suppressed because one or more lines are too long

BIN
app/static/images/blank.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
app/static/images/grave.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

BIN
app/static/images/soon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

13
app/static/js/projects.js Normal file
View File

@ -0,0 +1,13 @@
function alignHeadersByHeight(table) {
var maxHeight = 0;
table.querySelectorAll('h1').forEach(
element => maxHeight = Math.max(maxHeight, element.clientHeight)
)
table.querySelectorAll('h1').forEach(
element => element.style.height = maxHeight + 'px'
)
console.log(maxHeight);
}
var table = document.getElementById("pbic");
alignHeadersByHeight(table);

View File

@ -4,15 +4,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ url_for('static', filename='css/fonts.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='css/fonts.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/snowfall.css') }}">
<title>thematdev</title> <title>thematdev</title>
</head> </head>
<body> <body>
<div class="pagehead"> <div class="pagehead">
<div class="pagehead-inner"> <div class="pagehead-inner">
<h1 class="mainh">thematdev</h1> <h1 class="mainh">thematdev</h1>
<p> Тут можно подпись какую-то сделать </p>
<p> Ваш IQ: {{ random_number }}</p>
<div class="btn-container"> <div class="btn-container">
<a class="btn" href="https://git.thematdev.org/explore/repos"> <a class="btn" href="https://git.thematdev.org">
Git Git
</a> </a>
<a class="btn" href="https://wiki.thematdev.org"> <a class="btn" href="https://wiki.thematdev.org">
@ -24,11 +25,24 @@
<a class="btn" href="mailto:thematdev@thematdev.org"> <a class="btn" href="mailto:thematdev@thematdev.org">
@ @
</a> </a>
<a class="btn" href="https://codeforces.com/profile/thematdev">
CF
</a>
</div> </div>
</div> </div>
</div> </div>
<div class="pagebody" id="pb">
<div class="pagebody-inner-section" id="pbi">
<h1><strike>Мои проекты</strike> Кладбище</h1>
<div class="project-container" id="pbic">
{% for project in projects %}
<div class="project-element">
<h1> {{ project.title }}</h1>
<img src="{{ url_for('static', filename=project.image)}}" width=200 height=200>
<p> {{project.description|safe}} </p>
</div>
{% endfor %}
</div>
</div>
</div>
<script src="{{ url_for('static', filename='js/projects.js') }}"></script>
Идея про Гауссово распределение вместо обычного рандома: <a href="https://t.me/Prentor">Prentor</a> и <a href="https://t.me/pavel_the_best"> pavel_the_best </a>
</body> </body>
</html> </html>