22 - python & all web labs

This commit is contained in:
2026-05-02 20:27:02 +05:00
parent ef77f101fa
commit 19af922baf
5781 changed files with 770492 additions and 96 deletions

View File

@@ -0,0 +1,443 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;500&display=swap");
// цвета
$color_gray1: rgba(25, 27, 31, 1);
$color_gray2: rgba(22, 23, 28, 1);
$color_blue1: rgba(0, 6, 148, 1);
$color_blue2: rgba(0, 8, 188, 1);
$color_pink: rgba(155, 55, 255, 1);
$color_white: rgba(255, 255, 255, 1);
// шаблон стиля текста стиль текста
@mixin text-style($size, $color, $family) {
color: $color;
font-family: $family;
font-size: $size;
font-style: normal;
font-weight: 400;
line-height: normal;
}
// шаблоны кнопок
@mixin button-blue($width, $height, $pattern_color, $font_size) {
width: $width;
height: $height;
text-align: center;
background-color: $pattern_color;
display: inline-block;
border: none;
border-radius: 12px;
@include text-style($font_size, $color_white, Inter);
}
@mixin button-nothing($width, $height, $pattern_color, $font_size) {
width: $width;
height: $height;
text-align: center;
background-color: rgba(0, 0, 0, 0);
display: inline-block;
border: 1px solid $pattern_color;
border-radius: 12px;
@include text-style($font_size, $pattern_color, Inter);
}
* {
margin: 0;
padding: 0;
}
html,
body {
max-width: 100%;
overflow-x: hidden;
}
body {
background-color: $color_gray1;
}
// SCROLL BAR
::-webkit-scrollbar {
width: 13px;
}
::-webkit-scrollbar-button {
background-color: rgba(240, 248, 255, 0);
}
::-webkit-scrollbar-track {
background-color: $color_gray2;
}
::-webkit-scrollbar-thumb {
background-color: $color_gray1 ;
border-radius: 10px;
}
// HEAD
.head {
z-index: 2;
width: 93%;
max-width: 1712px;
margin: 15px auto;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
&__information {
width: 82%;
display: flex;
align-items: center;
justify-content: space-between;
}
&__logo {
cursor: pointer;
}
&__navbar {
min-width: 398px;
width: 28%;
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
// transform: translate(0, 0);
position: relative;
z-index: 2;
&__links {
&__text {
cursor: pointer;
text-decoration: none;
transition: 0.5s;
@include text-style(20px, $color_white, Inter);
&:hover {
opacity: 0.6;
}
}
}
}
&__login {
z-index: 2;
transition: 0.5s;
@include button-blue(174px, 47px, $color_blue1, 16px);
&:hover {
@include button-blue(174px, 47px, $color_blue2, 16px);
}
}
&__burgermenu {
position: relative;
z-index: 1;
user-select: none;
display: none;
}
&__line {
position: relative;
margin: 0;
opacity: 0.45;
z-index: 3;
}
}
// FOOTER
.footer {
width: 93%;
max-width: 1712px;
margin: 0 auto;
margin-top: 90px;
display: grid;
grid-template-columns: 1fr 3fr;
grid-auto-rows: minmax(100px, auto);
grid-column-gap: 5%;
align-items: center;
justify-items: start;
&__navbar {
list-style: none;
&__links {
margin-top: 10px;
&:first-child {
margin-top: 0;
}
&__text {
cursor: pointer;
text-decoration: none;
transition: 0.5s;
@include text-style(20px, $color_white, Inter);
&:hover {
opacity: 0.6;
}
}
&__small-text {
cursor: pointer;
text-decoration: none;
transition: 0.5s;
@include text-style(16px, $color_white, Inter);
font-weight: 300;
&:hover {
opacity: 0.6;
}
}
}
}
&__information {
width: 100%;
grid-column: 2/3;
grid-row: 1/3;
display: flex;
align-items: start;
justify-content: space-between;
z-index: 3;
&__social {
&__img {
cursor: pointer;
}
}
}
}
.head-banner {
width: 93%;
max-width: 1712px;
margin: 280px auto;
min-height: 200px;
display: flex;
align-items: center;
position: relative;
z-index: 1;
&__items {
&__text {
position: relative;
z-index: 1;
@include text-style(200px, $color_white, inter);
}
&__small-text {
position: relative;
z-index: 1;
@include text-style(28px, $color_white, inter);
}
&__buttons {
position: relative;
z-index: 1;
margin-top: 40px;
transition: 0.5s;
@include button-blue(286px, 73px, $color_blue1, 24px);
&:hover {
@include button-blue(286px, 73px, $color_blue2, 24px);
}
}
}
}
.img-container {
overflow: hidden;
width: 100%;
position: absolute;
display: flex;
justify-content: center;
pointer-events: none;
&__img {
// z-index: 0;
// max-height: auto;
// transform: translate(0, -30%);
width: 140vw;
max-width: 1500px;
position: relative;
pointer-events: none;
transform: translate(30%, -30%);
}
}
// MEDIA < 800px
@media (max-width: 800px) {
// MEDIA HEAD
.head {
&__information {
justify-content: end;
}
&__navbar {
width: fit-content;
min-width: 132px;
padding: 20px 37px 45px 20px;
border-radius: 12px;
background-color: $color_gray2;
transition: all 0.5s ease 0s;
opacity: 0;
flex-direction: column;
align-items: flex-start;
top: 45px;
transform: translate(0, 30px);
right: 16px;
position: absolute;
&__links {
margin-top: 15px;
&:first-child {
margin: 0;
}
}
}
&__burgermenu {
width: 50px;
height: 20px;
margin-left: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
z-index: 3;
&__line {
transition: 0.5s;
}
}
}
// MEDIA FOOTER
.footer {
grid-template-columns: 100%;
grid-row-gap: 35px;
position: relative;
z-index: 0;
&__navbar {
&__links {
&__text {
&:hover {opacity: 0.6;}
}
&__small-text {
&:hover {opacity: 0.6;}
}
}
}
&__information {
width: 100%;
grid-column: 1/2;
grid-row: 2/3;
display: flex;
align-items: start;
justify-content: space-between;
&__social {
&__img {
cursor: pointer;
}
}
}
}
// BANNER
.head-banner {
min-height: 274px;
margin: 7vw auto;
padding-bottom: 7vw;
display: flex;
align-items: center;
&__items {
&__text {
@include text-style(90px, $color_white, inter);
}
&__small-text {
@include text-style(16px, $color_white, inter);
}
&__buttons {
margin-top: 40px;
transition: 0.5s;
@include button-blue(130px, 40px, $color_blue1, 16px);
&:hover {
@include button-blue(130px, 40px, $color_blue2, 16px);
}
}
}
}
.img-container {
&__img {
width: 170vw;
max-width: 1000px;
position: relative;
transform: translate(20%, -40%);
}
}
}
// OTHER STYLE
.rotate45 {
transform-origin: left top;
transform: rotate(45deg);
}
.rotate-45 {
transform-origin: left top;
transform: rotate(-45deg);
}
.dnone {
display: none;
}
.transform_navbar {
transform: translate(0, 40px);
opacity: 1;
}
.posion1 {
pointer-events: none;
position: absolute;
top: 0;
right: 0;
z-index: 0;
}

578
labWeb/lab7/scss/main.scss Normal file
View File

@@ -0,0 +1,578 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;500&display=swap");
// цвета
$color_none: rgba(0, 0, 0, 0);
$color_gray1: rgba(25, 27, 31, 1);
$color_gray2: rgba(22, 23, 28, 1);
$color_blue1: rgba(0, 6, 148, 1);
$color_blue2: rgba(0, 8, 188, 1);
$color_pink: rgba(155, 55, 255, 1);
$color_white: rgba(255, 255, 255, 1);
// шаблон стиля текста стиль текста
@mixin text-style($size, $color, $family) {
color: $color;
font-family: $family;
font-size: $size;
font-style: normal;
font-weight: 400;
line-height: normal;
}
// шаблоны кнопок
@mixin button-blue($width, $height, $pattern_color, $font_size) {
width: $width;
height: $height;
text-align: center;
background-color: $pattern_color;
display: inline-block;
border: none;
border-radius: 12px;
transition: .5s;
@include text-style($font_size, $color_white, Inter);
}
@mixin button-nothing($width, $height, $pattern_color, $font_size) {
width: $width;
height: $height;
text-align: center;
background-color: $color_none;
display: inline-block;
border: 1px solid $pattern_color;
border-radius: 12px;
transition: .5s;
@include text-style($font_size, $pattern_color, Inter);
}
.container_center {
width: 93%;
max-width: 1712px;
margin: 50px auto;
}
// COMPANY
.container__100 {
width: 100%;
height: fit-content;
background-color: $color_gray2;
padding: 60px 0;
margin: 150px 0;
}
.company {
&__text {
@include text-style(50px, $color_white, inter);
margin: 35px 0;
}
&__logo {
list-style: none;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
&__item {
margin-right: 1vw;
&>img {
max-width: 300px;
max-height: 100px;
}
}
}
}
// COURSES
.courses {
display: flex;
flex-direction: column;
&__head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 60px;
&__text {
@include text-style(50px, $color_white, inter)
}
&__buttons {
display: flex;
justify-content: space-between;
width: 140px;
&__item {
transition: .5s;
background-color: $color_blue1;
border-radius: 100%;
border: none;
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
&:hover {
background-color: $color_blue2;
}
}
}
}
&__container {
overflow: hidden;
&__tape {
display: flex;
position: relative;
transition: .5s;
}
}
}
.tape__item {
display: flex;
justify-content: space-around;
align-items: center;
border-radius: 40px;
background-color: $color_gray2;
pointer-events: none;
width: 600px;
padding: 50px;
&__chart {
width: 40%;
}
&__info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 40%;
&__text_1 {
@include text-style(50px, $color_white, inter);
margin-bottom: 40px;
}
&__text_2 {
@include text-style(24px, $color_white, inter);
margin-bottom: 60px;
}
&__buttons {
width: 87%;
display: flex;
justify-content: space-between;
}
&__button {
&_item__1 {
margin-right: 10px;
@include button-blue(286px, 73px, $color_blue1, 24px);
&:hover {
@include button-blue(286px, 73px, $color_blue2, 24px);
}
}
&_item__2 {
@include button-nothing(286px, 73px, $color_white, 18px);
&:hover {
@include button-nothing(286px, 73px, $color_white, 18px);
opacity: 0.7;
}
}
}
}
}
// FORM
.form {
display: grid;
grid-template-columns: 60% 40%;
grid-auto-rows: minmax(150px, auto);
position: relative;
overflow: hidden;
margin-top: 200px;
border-radius: 40px;
background-color: $color_gray2;
justify-items: center;
padding: 100px 0;
&__container {
grid-column: 2/3;
grid-row: 1/3;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 600px;
width: 80%;
&__input {
width: 100%;
position: relative;
padding: 32px 0;
border: .5px solid $color_white;
border-radius: 14px;
opacity: 0.45;
display: flex;
align-items: center;
justify-content: center;
&>input {
background-color: $color_none;
border: none;
outline: none;
caret-color: $color_white;
width: 90%;
// max-width: 520px;
transition: .5s;
border-bottom: .5px solid $color_none;
@include text-style(20px, $color_white, inter);
padding: 2px;
&:focus {
border-bottom: .5px solid $color_white;
}
}
&>label {
width: 90%;
pointer-events: none;
position: absolute;
@include text-style(20px, $color_white, inter);
// left: 30px;
transition: .3s;
}
}
&__button{
@include button-blue(100%, 88px, $color_blue1, 24px)
}
&__checkbox{
@include text-style(18px, $color_white, inter);
width:100%;
display: flex;
align-items: center;
opacity: .45;
&>input{
display: none
}
&__fake{
width: 10px;
height: 10px;
border: 1px solid $color_white;
border-radius: 100%;
margin-right: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
&::after{
// position: absolute;
width: 8px;
height: 8px;
background-color: $color_white;
border-radius: 100%;
content: "";
transition: .300;
opacity: 0;
}
}
&>input:checked + &__fake::after {
opacity: 1;
}
}
}
&__img {
position: absolute;
transform: translate(-37%, 28%);
}
&__info {
min-width: 80%;
grid-column: 1/2;
grid-row: 1/2;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
&__item {
min-width: 15%;
display: flex;
align-items: flex-start;
flex-wrap: wrap;
margin-left: 10px;
&:first-child {
margin: 0;
}
&__img {}
&__text {
margin-left: 12px;
opacity: .45;
@include text-style(20px, $color_white, inter);
}
}
}
}
// INPUT ANIMATION
.input__Animation:focus+.label__Animation {
opacity: 0;
}
@media (max-width: 800px) {
// COMPANY
.container__100 {
width: 100%;
height: fit-content;
background-color: $color_gray2;
padding: 20px 0;
margin: 50px 0;
}
.company {
&__text {
@include text-style(24px, $color_white, inter);
margin: 35px 0;
}
&__logo {
&__item {
margin-right: 1vw;
width: 100px;
max-height: 50px;
&>img {
max-width: 100px;
max-height: 50px;
}
}
}
}
// COURSES
.tape__item {
display: flex;
justify-content: space-around;
align-items: center;
border-radius: 40px;
background-color: $color_gray2;
pointer-events: none;
width: 600px;
flex-direction: column;
padding: 40px 0;
&__chart {
width: 70%;
}
&__info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 70%;
&__text_1 {
@include text-style(24px, $color_white, inter);
margin-top: 20px;
margin-bottom: 40px;
}
&__text_2 {
@include text-style(12px, $color_white, inter);
margin-bottom: 60px;
}
&__buttons {
width: 100%;
display: flex;
justify-content: space-between;
}
&__button {
&_item__1 {
margin-right: 10px;
@include button-blue(280px, 60px, $color_blue1, 18px);
&:hover {
@include button-blue(280px, 60px, $color_blue2, 18px);
}
}
&_item__2 {
@include button-nothing(280px, 60px, $color_white, 12px);
&:hover {
@include button-nothing(280px, 60px, $color_white, 12px);
opacity: 0.7;
}
}
}
}
}
// FORM
.form {
display: grid;
grid-template-columns: 100%;
grid-auto-rows: minmax(20px, auto);
position: relative;
overflow: hidden;
margin-top: 200px;
border-radius: 40px;
background-color: $color_gray2;
justify-content: center;
align-items: center;
padding: 50px 0;
&__container {
grid-column: 1/1;
grid-row: 1/2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 300px;
width: 80%;
&__input {
position: relative;
padding: 15px 0;
border: .5px solid $color_white;
border-radius: 6.6px;
width: 100%;
&>input {
background-color: $color_none;
border: none;
outline: none;
caret-color: $color_white;
width: 90%;
transition: .5s;
border-bottom: .5px solid $color_none;
@include text-style(10px, $color_white, inter);
padding: 2px;
&:focus {
border-bottom: .5px solid $color_white;
}
}
&>label {
width: 90%;
pointer-events: none;
position: absolute;
@include text-style(13px, $color_white, inter);
transition: .5s;
}
}
&__button{
@include button-blue(100%, 41px, $color_blue1, 14px)
}
&__checkbox{
&__fake{}
}
}
&__img {
grid-row: 2/3;
position: relative;
width: 100%;
transform: translate(0, 0);
margin: 30px 0;
}
&__info {
min-width: 80%;
grid-column: 1/1;
grid-row: 3/4;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
&__item {
min-width: 15%;
display: flex;
align-items: flex-start;
flex-wrap: wrap;
&__img {
max-width: 15px;
}
&__text {
margin-left: 12px;
opacity: .45;
@include text-style(10px, $color_white, inter);
}
}
}
}
}
// OTHER STYLE