Сделал основную страницу
This commit is contained in:
parent
7ca6db3fcb
commit
47db49303f
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
package-lock.json
|
||||
node_modules
|
||||
6
css/style.css
Normal file
6
css/style.css
Normal file
File diff suppressed because one or more lines are too long
1
css/style.css.map
Normal file
1
css/style.css.map
Normal file
File diff suppressed because one or more lines are too long
BIN
fonts/Montserrat/Montserrat-Black.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Black.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-BlackItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Bold.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-BoldItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-ExtraBold.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-ExtraBoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-ExtraLight.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-ExtraLightItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Italic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Light.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-LightItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-LightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Medium.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Medium.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-MediumItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Regular.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-SemiBold.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-SemiBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-SemiBoldItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-SemiBoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-Thin.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-Thin.ttf
Normal file
Binary file not shown.
BIN
fonts/Montserrat/Montserrat-ThinItalic.ttf
Normal file
BIN
fonts/Montserrat/Montserrat-ThinItalic.ttf
Normal file
Binary file not shown.
93
fonts/Montserrat/OFL.txt
Normal file
93
fonts/Montserrat/OFL.txt
Normal file
@ -0,0 +1,93 @@
|
||||
Copyright 2011 The Montserrat Project Authors (https://github.com/JulietaUla/Montserrat)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
fonts/Roboto/Roboto-Bold.ttf
Normal file
BIN
fonts/Roboto/Roboto-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-BoldItalic.ttf
Normal file
BIN
fonts/Roboto/Roboto-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-Italic.ttf
Normal file
BIN
fonts/Roboto/Roboto-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-Light.ttf
Normal file
BIN
fonts/Roboto/Roboto-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-LightItalic.ttf
Normal file
BIN
fonts/Roboto/Roboto-LightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-Medium.ttf
Normal file
BIN
fonts/Roboto/Roboto-Medium.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-MediumItalic.ttf
Normal file
BIN
fonts/Roboto/Roboto-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Roboto/Roboto-Regular.ttf
Normal file
BIN
fonts/Roboto/Roboto-Regular.ttf
Normal file
Binary file not shown.
112
index.html
112
index.html
@ -0,0 +1,112 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<title>Математическое моделирование</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<header class="header">
|
||||
<a href="index.html">
|
||||
<h1 class="">Математичекое моделирование</h1>
|
||||
</a>
|
||||
</header>
|
||||
<main class="container">
|
||||
<nav>
|
||||
<span>Вид работы:
|
||||
<button id="lessonsBtn" class="group-btn active">Урок</button><button id="worksBtn" class="group-btn" data-tooltip="Самостоятельная работа">СР</button>
|
||||
</span>
|
||||
</nav>
|
||||
<div id="lessonsList" class="items row row-cols-1 row-cols-sm-1 row-cols-md-2 row-cols-lg-3">
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Коробка</h2>
|
||||
<p class="description">Найдите, при каком размере выреза коробка будет иметь максимальный объём.</p>
|
||||
<a href="box.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Обои</h2>
|
||||
<p class="description">Помогите покупателям быстро определить необходимое количество обоев.</p>
|
||||
<a href="wallpaper.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Сбер касса</h2>
|
||||
<p class="description">Проведите исследование очереди из бабушек у сбер кассы.</p>
|
||||
<a href="sber.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Стихотворение</h2>
|
||||
<p class="description">Предлагается исследовать ситуацию и предложить реальные способы ускорения процесса заучивания стихотворения.</p>
|
||||
<a href="poem.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Дачник и собака</h2>
|
||||
<p class="description">Исследовать процесс движения объектов: человека и собаки. Установить связь между расстояниями, пройденными объектами за одно и то же время. Определить путь, который пробежала собака.</p>
|
||||
<a href="box.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="worksList" class="hidden items row row-cols-1 row-cols-sm-1 row-cols-md-2 row-cols-lg-3">
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Продукты для похода</h2>
|
||||
<p class="description">Рассчитать необходимое количество продуктов на весь поход для 1 человека и для всей группы.</p>
|
||||
<a href="box.html">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Награда</h2>
|
||||
<p class="description">Сколько должен индрусский царь Шерам изобретателю шахмат из древней легенды?</p>
|
||||
<a href="">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Концентрация раствора</h2>
|
||||
<p class="description">Составьте таблицу, по которой можно определить, как изменяется исходная концентрация при добавлении 1, 2, 3 и т. д. частей воды.</p>
|
||||
<a href="">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Буратино и папа Карло</h2>
|
||||
<p class="description">Постройте модель изменения капитала в течение нескольких недель.</p>
|
||||
<a href="">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">График тренировки</h2>
|
||||
<p class="description">Исследуйте график тренеровок, состовляемый по правилам.</p>
|
||||
<a href="">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper">
|
||||
<div class="item">
|
||||
<h2 class="header">Аквариум</h2>
|
||||
<p class="description">Сколько минут времени он затратит на переселение рыбок?</p>
|
||||
<a href="">Приступить</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="js/index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
31
js/index.js
Normal file
31
js/index.js
Normal file
@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
|
||||
let colors = {
|
||||
green: "#54A48B",
|
||||
yellow: "#c0a761"
|
||||
};
|
||||
|
||||
let lessonsBtn = document.querySelector("#lessonsBtn");
|
||||
let worksBtn = document.querySelector("#worksBtn");
|
||||
|
||||
let lessonsList = document.querySelector("#lessonsList");
|
||||
let worksList = document.querySelector("#worksList");
|
||||
let header = document.querySelector("header");
|
||||
|
||||
lessonsBtn.addEventListener("click", (e) => {
|
||||
lessonsBtn.classList.add("active");
|
||||
worksBtn.classList.remove("active");
|
||||
|
||||
lessonsList.classList.remove("hidden");
|
||||
worksList.classList.add("hidden");
|
||||
header.style = "background-color: " + colors.green;
|
||||
})
|
||||
|
||||
worksBtn.addEventListener("click", (e) => {
|
||||
lessonsBtn.classList.remove("active");
|
||||
worksBtn.classList.add("active");
|
||||
|
||||
lessonsList.classList.add("hidden");
|
||||
worksList.classList.remove("hidden");
|
||||
header.style = "background-color: " + colors.yellow;
|
||||
})
|
||||
5
package.json
Normal file
5
package.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.1.3"
|
||||
}
|
||||
}
|
||||
5
scss/_colors.scss
Normal file
5
scss/_colors.scss
Normal file
@ -0,0 +1,5 @@
|
||||
$green: #54A48B;
|
||||
$white: #ffffff;
|
||||
$grey: #ebebeb;
|
||||
$black: #171717;
|
||||
$yellow: #c0a761;
|
||||
28
scss/_fonts.scss
Normal file
28
scss/_fonts.scss
Normal file
@ -0,0 +1,28 @@
|
||||
@font-face {
|
||||
font-family: "Montserrat";
|
||||
src: url(../fonts/Montserrat/Montserrat-Regular.ttf);
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Montserrat";
|
||||
src: url(../fonts/Montserrat/Montserrat-Bold.ttf);
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url(../fonts/Roboto/Roboto-Regular.ttf);
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url(../fonts/Roboto/Roboto-Bold.ttf);
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
19
scss/_promt.scss
Normal file
19
scss/_promt.scss
Normal file
@ -0,0 +1,19 @@
|
||||
[data-tooltip] {
|
||||
position: relative;
|
||||
}
|
||||
[data-tooltip]::after {
|
||||
border: 1px solid $black;
|
||||
content: attr(data-tooltip);
|
||||
position: absolute;
|
||||
left: -4.5em; top: 2em;
|
||||
background: $grey;
|
||||
color: $black;
|
||||
padding: 0.2em 1em;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: 0.1s;
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
[data-tooltip]:hover::after {
|
||||
opacity: 1;
|
||||
}
|
||||
14
scss/_settings.scss
Normal file
14
scss/_settings.scss
Normal file
@ -0,0 +1,14 @@
|
||||
$border-radius: 10px;
|
||||
|
||||
@mixin btn {
|
||||
border: none;
|
||||
border-radius: $border-radius;
|
||||
background-color: $green;
|
||||
color: $white;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
133
scss/style.scss
Normal file
133
scss/style.scss
Normal file
@ -0,0 +1,133 @@
|
||||
@import "../node_modules/bootstrap/scss/bootstrap-grid.scss";
|
||||
|
||||
@import "settings";
|
||||
@import "fonts";
|
||||
@import "colors";
|
||||
@import "promt";
|
||||
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-weight: normal;
|
||||
font-size: 20px;
|
||||
color: $black;
|
||||
}
|
||||
|
||||
html {
|
||||
background-color: $grey;
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 5px 0;
|
||||
|
||||
background-color: $green;
|
||||
transition: background-color .1s linear;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font: {
|
||||
size: 20px;
|
||||
family: "Montserrat", sans-serif;
|
||||
weight: bold;
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
color: $white;
|
||||
}
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
button {
|
||||
@include btn;
|
||||
|
||||
&.group-btn {
|
||||
border: 2px solid $black;
|
||||
border-right: none;
|
||||
border-radius: 0;
|
||||
|
||||
background-color: $white;
|
||||
color: $black;
|
||||
transition: all .1s ease-in-out;
|
||||
|
||||
&:first-child {
|
||||
border-radius: $border-radius 0 0 $border-radius;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 $border-radius $border-radius 0;
|
||||
border-right: 2px solid $black;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $white;
|
||||
background-color: $black;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $white;
|
||||
background-color: $black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.items {
|
||||
margin-top: 15px;
|
||||
|
||||
.wrapper {
|
||||
padding: 0 40px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
background-color: $white;
|
||||
border-radius: $border-radius;
|
||||
box-shadow: 5px 5px 5px rgba($color: #000000, $alpha: 0.1);
|
||||
text-align: center;
|
||||
padding-bottom: 15px;
|
||||
|
||||
.header {
|
||||
border-radius: $border-radius $border-radius 0 0;
|
||||
background-color: $green;
|
||||
color: $white;
|
||||
font-weight: bold;
|
||||
font-size: 26px;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 10px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
@include btn;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
#worksList {
|
||||
.item {
|
||||
.header {
|
||||
background-color: $yellow;
|
||||
}
|
||||
a {
|
||||
background-color: $yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user