РАСКУРx1

This commit is contained in:
fox
2021-01-12 22:07:54 +03:00
parent ab6503f7b0
commit e61828bfa7
14 changed files with 9 additions and 23 deletions

View File

@@ -0,0 +1 @@
@import url('https://fonts.googleapis.com/css2?family=Overpass+Mono:wght@300;400;600;700&display=swap');

View File

@@ -0,0 +1,140 @@
*, ::after, ::before {
box-sizing: border-box;
}
body {
margin: 0;
}
.pagehead {
width: 100%;
height: 100vh;
position: relative;
background: #111;
display: flex;
/*align-items: center;
justify-content: center;*/
flex-direction: column;
margin: 0;
}
.pagehead-inner {
position: inherit;
margin: 0;
width: 24%;
height: 55vh;
top: 50%;
left: 50%;
margin-left: -12%;
margin-top: -27vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.pagehead-inner > p {
color: white;
font-family: "Overpass Mono", monospace;
font-weight: 300;
margin: 0;
}
.btn-container {
display: flex;
position: inherit;
flex-direction: row;
}
.btn-container button {
width: 69px;
height: 69px;
margin: 10px;
background: #222;
color: white;
border-radius: 15px;
border: none;
outline: none;
}
.btn-container button:hover {
transform: scale(1.2);
-webkit-transition: transform 0.5s ease-in-out;
background: white;
color: green;
}
.btn-container button:active {
transform: scale(0.8);
-webkit-transition: transform 0.2s ease-in-out;
}
.mainh {
color: white;
font-family: "Overpass Mono", monospace;
font-weight: 700;
margin: 0;
}
.pagebody {
width: 100%;
height: 100vh;
position: relative;
background: #222;
display: flex;
flex-direction: column;
margin: 0;
}
.pagebody-inner-section {
margin-top: 100px; margin-left: 300px;
}
.pagebody-inner-section > h1 {
color: white;
font-family: "Overpass Mono", monospace;
font-weight: 700;
}
.project-container {
position: inherit;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.project-container-row {
display: flex;
position: inherit;
flex-direction: row;
}
.project-element {
position: inherit;
width: 300px;
margin-right: 70px;
display: flex;
flex-direction: column;
}
.project-element > h1 {
color: white;
font-family: "Overpass Mono", monospace;
font-weight: 700;
margin: 0;
}
.project-element > p {
color: white;
font-family: "Overpass Mono", monospace;
font-weight: 400;
margin: 0;
}
.project-element > img {
background: #222;
margin-top: 20px;
margin-bottom: 20px;
}
.

View File

@@ -0,0 +1,62 @@
body {
margin: 0;
}
h1 {
margin: 0;
}
.headline {
background: red;
color: white;
font-family: 'Overpass Mono', monospace;
font-weight: 700;
text-align: center;
margin: 0;
}
h1 {
color: white;
font-family: 'Overpass Mono', monospace;
font-weight: 600;
text-align: center;
font-size: 28px;
}
.intro {
width: 100%;
background-color: #111;
background-size: cover;
padding=bottom: 20px;
}
.monotext {
color: white;
font-family: 'Overpass Mono', monospace;
font-weight: 400;
margin: 20%;
font-size: 18px;
margin-top: 0;
margin-bottom: 0;
}
.mathformula {
color: white;
text-align: center;
margin: 0;
}
.btn-tex {
background: #222;
color: #bbb;
fill: #bbb;
position: relative;
top: 50%;
left: 50%;
}
.btn-tex:hover {
background: red;
color: #228;
-webkit-transform: scale(1.2);
-webkit-transform: rotate(30deg);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

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);