Участник:Шитов Даниил Станиславович: различия между версиями
Перейти к навигации
Перейти к поиску
(Полностью удалено содержимое страницы) Метка: очистка |
Метка: ручная отмена |
||
| Строка 1: | Строка 1: | ||
<!DOCTYPE html> | |||
<html lang="ru"> | |||
<head> | |||
<meta charset="UTF-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<title>Объединённый файл с заданиями</title> | |||
<!-- Подключаем шрифты Google --> | |||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap" rel="stylesheet"> | |||
<!-- Подключаем Font Awesome для иконок --> | |||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> | |||
<script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=eXR4GaOilLLT4-ekLoT_xZinOYx9hGk-gDliV-m0amFm7rkG6oo56IEztlzyLq7haESMDwTdQDlWPn9SIq9Fupps631JA4kDV1SVkPk_oboK1rMjXMAL4v-sOSySOPHlEaqrfsULy0nv8KnLwY9LDq6gMtGdkpnLlBemQswMs15IPSmtxUNXezbtMT1TSODHtILznumgATIltqQQ3ne5h0tgiG7gCxXjESyGCGe35HHQ8OPS4eZTxfTrRUf0g2dTt4YwTBDlg9vv_n58g-VNwg" charset="UTF-8"></script><style> | |||
/* Общие стили */ | |||
body { | |||
font-family: 'Poppins', sans-serif; | |||
margin: 0; | |||
padding: 0; | |||
background-color: #f5f7fa; /* Светлый фон */ | |||
color: #333; /* Тёмный текст */ | |||
transition: background-color 0.3s ease, color 0.3s ease; | |||
padding-top: 120px; /* Отступ сверху для контента */ | |||
overflow-x: hidden; /* Убираем горизонтальное прокручивание */ | |||
} | |||
h1, h2, h3, p { | |||
margin: 0; | |||
text-align: center; | |||
} | |||
/* Заголовок */ | |||
.header { | |||
background-color: #2d3e50; | |||
padding: 40px 20px; | |||
text-align: center; | |||
color: white; | |||
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 100%; | |||
z-index: 10; | |||
} | |||
.header h1 { | |||
font-size: 3rem; | |||
font-weight: 600; | |||
} | |||
.header p { | |||
font-size: 1.2rem; | |||
font-weight: 500; | |||
} | |||
/* Меню */ | |||
.menu { | |||
position: fixed; | |||
top: 20px; | |||
left: 20px; | |||
font-size: 30px; | |||
cursor: pointer; | |||
z-index: 1001; | |||
transition: color 0.3s ease; | |||
} | |||
/* Скрытое меню */ | |||
.menu-container { | |||
position: fixed; | |||
top: 0; | |||
left: -250px; | |||
background-color: #222; | |||
width: 250px; | |||
height: 100%; | |||
padding-top: 30px; | |||
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); | |||
transition: left 0.3s ease; | |||
z-index: 1002; | |||
} | |||
.menu-container ul { | |||
list-style: none; | |||
padding: 0; | |||
} | |||
.menu-container li { | |||
padding: 15px 25px; | |||
font-size: 18px; | |||
color: #fff; | |||
cursor: pointer; | |||
transition: background-color 0.3s ease, transform 0.3s ease; | |||
} | |||
.menu-container li:hover { | |||
background-color: #ff7f50; | |||
transform: scale(1.05); | |||
} | |||
/* Стили для контента */ | |||
.content-block { | |||
padding: 40px 20px; | |||
min-height: 100vh; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
align-items: center; | |||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding-left: 20px; | |||
padding-right: 20px; | |||
margin-bottom: 10px; /* Уменьшаем пробелы между заданиями */ | |||
} | |||
/* Блоки контента */ | |||
.content-block h1 { | |||
font-size: 2.5rem; | |||
color: #4e73df; /* Синий цвет заголовков */ | |||
margin-bottom: 20px; | |||
text-align: center; | |||
max-width: 90%; | |||
} | |||
.content-block p { | |||
font-size: 1.1rem; | |||
line-height: 1.6; | |||
color: #555; | |||
max-width: 100%; | |||
margin: 0 auto; | |||
padding: 10px; | |||
text-align: justify; | |||
} | |||
.content-block img { | |||
max-width: 100%; | |||
border-radius: 10px; | |||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); | |||
} | |||
.footer { | |||
background-color: #2d3e50; | |||
color: #fff; | |||
padding: 20px; | |||
text-align: center; | |||
font-size: 1rem; | |||
margin-top: 30px; | |||
} | |||
.footer span { | |||
font-weight: bold; | |||
color: #ff7f50; | |||
} | |||
/* Стили для кнопки прокрутки */ | |||
.scroll-button { | |||
position: fixed; | |||
bottom: 20px; | |||
right: 20px; | |||
background-color: #ff6f61; | |||
color: white; | |||
padding: 15px; | |||
border-radius: 50%; | |||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); | |||
cursor: pointer; | |||
font-size: 25px; | |||
display: none; | |||
transition: background-color 0.3s ease, transform 0.3s ease; | |||
border: none; | |||
} | |||
.scroll-button:hover { | |||
background-color: #ff8c00; | |||
transform: scale(1.1); | |||
} | |||
/* Иконка стрелки */ | |||
.scroll-button i { | |||
font-size: 30px; | |||
} | |||
/* Иконка смены темы */ | |||
.theme-toggle { | |||
position: fixed; | |||
top: 20px; | |||
right: 20px; | |||
font-size: 30px; | |||
cursor: pointer; | |||
z-index: 1002; | |||
transition: color 0.3s ease; | |||
} | |||
/* Для темной темы */ | |||
.dark-theme { | |||
background-color: #121212; | |||
color: #fff; | |||
} | |||
.dark-theme .header { | |||
background-color: #222; | |||
} | |||
.dark-theme .menu-container { | |||
background-color: #333; | |||
} | |||
.dark-theme .menu-container li:hover { | |||
background-color: #ff7f50; | |||
} | |||
.dark-theme .footer { | |||
background-color: #222; | |||
} | |||
/* Белый текст под заголовками в тёмной теме */ | |||
.dark-theme .content-block p, | |||
.dark-theme .content-block ul li { | |||
color: white; | |||
} | |||
/* Новые стили для иконки меню */ | |||
.menu i { | |||
color: black; | |||
} | |||
.menu.opened i { | |||
color: white; | |||
} | |||
/* Обновление состояния меню */ | |||
.menu-container.opened { | |||
left: 0; | |||
} | |||
/* Иконка меню внутри самого меню */ | |||
.menu-container .close-menu { | |||
position: absolute; | |||
top: 20px; | |||
left: 20px; | |||
font-size: 30px; | |||
cursor: pointer; | |||
color: white; | |||
} | |||
/* Сдвиг пунктов меню вниз */ | |||
.menu-container ul { | |||
margin-top: 50px; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<!-- Кнопка меню --> | |||
<div class="menu" id="menuButton" onclick="toggleMenu()"> | |||
<i class="fas fa-bars"></i> <!-- Меню в виде иконки --> | |||
</div> | |||
<!-- Кнопка смены темы --> | |||
<div class="theme-toggle" id="themeToggle" onclick="toggleTheme()"> | |||
<i class="fas fa-sun"></i> <!-- Иконка солнца для смены темы --> | |||
</div> | |||
<!-- Заголовок --> | |||
<div class="header" id="header"> | |||
<h1>Добро пожаловать на главную страницу</h1> | |||
<p>Выберите задание из меню или прокрутите вниз.</p> | |||
</div> | |||
<!-- Меню --> | |||
<div class="menu-container" id="menuContainer"> | |||
<!-- Кнопка закрытия меню --> | |||
<div class="close-menu" onclick="toggleMenu()"> | |||
<i class="fas fa-times"></i> <!-- Иконка закрытия меню --> | |||
</div> | |||
<ul> | |||
<li onclick="scrollToSection('home')">Главная</li> | |||
<li onclick="scrollToSection('task1')">Задание № 1</li> | |||
<li onclick="scrollToSection('task2')">Задание № 2</li> | |||
<li onclick="scrollToSection('task3')">Задание № 3</li> | |||
<li onclick="scrollToSection('task4')">Задание № 4</li> | |||
<li onclick="scrollToSection('task5')">Задание № 5</li> | |||
</ul> | |||
</div> | |||
<!-- Контент страницы --> | |||
<div id="home" class="content-block"> | |||
<h1>Добро пожаловать!</h1> | |||
<p>Здесь вы можете ознакомиться с различными заданиями. Используйте меню слева для перехода к ним.</p> | |||
</div> | |||
<div id="task1" class="content-block"> | |||
<h1>Задание № 1</h1> | |||
<p><strong>Название:</strong> "Познание"</p> | |||
<p><strong>Девиз:</strong> "Мы открываем новые горизонты!"</p> | |||
<p><strong>Пояснение:</strong> Название говорит о стремлении к новым знаниям и открытиям. Девиз подчеркивает исследовательский дух команды и готовность к новым вызовам.</p> | |||
<p><strong>Цель участия:</strong> Узнать больше о культуре родного края и родины, а также поведать об этом остальным.</p> | |||
<p><strong>Состав:</strong></p> | |||
<ul> | |||
<li>Чернова Кира</li> | |||
<li>Михальчишина Светлана</li> | |||
<li>Абдуллаева Саламат</li> | |||
<li>Горячева Анастасия</li> | |||
<li>Ежов Артём</li> | |||
</ul> | |||
</div> | |||
<div id="task2" class="content-block"> | |||
<h1>Задание № 2</h1> | |||
<p>Здесь текст задания 2. Для всех текстов под заголовками будет применяться белый цвет при темной теме.</p> | |||
</div> | |||
<div id="task3" class="content-block"> | |||
<h1>Задание № 3</h1> | |||
<p>Здесь текст задания 3.</p> | |||
</div> | |||
<div id="task4" class="content-block"> | |||
<h1>Задание № 4</h1> | |||
<p>Здесь текст задания 4.</p> | |||
</div> | |||
<div id="task5" class="content-block"> | |||
<h1>Задание № 5</h1> | |||
<p>Здесь текст задания 5.</p> | |||
</div> | |||
<!-- Футер --> | |||
<div class="footer"> | |||
<p>©2025. Все права защищены. <span>Создано при поддержке 𝕄𝕒𝕣𝕤𝕙𝕒𝕝𝕝 𝕋𝕖𝕒𝕞</p> | |||
</div> | |||
<!-- Кнопка прокрутки --> | |||
<button class="scroll-button" id="scrollButton" onclick="scrollToTop()"> | |||
<i class="fas fa-arrow-up"></i> | |||
</button> | |||
<script> | |||
// Сменить тему | |||
function toggleTheme() { | |||
document.body.classList.toggle("dark-theme"); | |||
const themeIcon = document.getElementById('themeToggle').querySelector('i'); | |||
if (document.body.classList.contains("dark-theme")) { | |||
themeIcon.classList.remove('fa-sun'); | |||
themeIcon.classList.add('fa-moon'); | |||
} else { | |||
themeIcon.classList.remove('fa-moon'); | |||
themeIcon.classList.add('fa-sun'); | |||
} | |||
} | |||
// Показать/скрыть меню | |||
function toggleMenu() { | |||
const menuContainer = document.getElementById('menuContainer'); | |||
menuContainer.classList.toggle('opened'); | |||
} | |||
// Прокрутка к секции | |||
function scrollToSection(sectionId) { | |||
document.getElementById(sectionId).scrollIntoView({ behavior: 'smooth' }); | |||
toggleMenu(); | |||
} | |||
// Прокрутка вверх | |||
function scrollToTop() { | |||
window.scrollTo({ top: 0, behavior: 'smooth' }); | |||
} | |||
// Показывать кнопку прокрутки вверх | |||
window.onscroll = function() { | |||
const scrollButton = document.getElementById('scrollButton'); | |||
if (document.body.scrollTop > 200 || document.documentElement.scrollTop > 200) { | |||
scrollButton.style.display = "block"; | |||
} else { | |||
scrollButton.style.display = "none"; | |||
} | |||
}; | |||
</script> | |||
</body> | |||
</html> | |||
Версия 15:07, 18 февраля 2025
<!DOCTYPE html> <html lang="ru"> <head>
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Объединённый файл с заданиями</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;500&display=swap" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> <script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=eXR4GaOilLLT4-ekLoT_xZinOYx9hGk-gDliV-m0amFm7rkG6oo56IEztlzyLq7haESMDwTdQDlWPn9SIq9Fupps631JA4kDV1SVkPk_oboK1rMjXMAL4v-sOSySOPHlEaqrfsULy0nv8KnLwY9LDq6gMtGdkpnLlBemQswMs15IPSmtxUNXezbtMT1TSODHtILznumgATIltqQQ3ne5h0tgiG7gCxXjESyGCGe35HHQ8OPS4eZTxfTrRUf0g2dTt4YwTBDlg9vv_n58g-VNwg" charset="UTF-8"></script><style> /* Общие стили */ body { font-family: 'Poppins', sans-serif; margin: 0; padding: 0; background-color: #f5f7fa; /* Светлый фон */ color: #333; /* Тёмный текст */ transition: background-color 0.3s ease, color 0.3s ease; padding-top: 120px; /* Отступ сверху для контента */ overflow-x: hidden; /* Убираем горизонтальное прокручивание */ }
h1, h2, h3, p {
margin: 0;
text-align: center;
}
/* Заголовок */
.header {
background-color: #2d3e50;
padding: 40px 20px;
text-align: center;
color: white;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 10;
}
.header h1 {
font-size: 3rem;
font-weight: 600;
}
.header p {
font-size: 1.2rem;
font-weight: 500;
}
/* Меню */
.menu {
position: fixed;
top: 20px;
left: 20px;
font-size: 30px;
cursor: pointer;
z-index: 1001;
transition: color 0.3s ease;
}
/* Скрытое меню */
.menu-container {
position: fixed;
top: 0;
left: -250px;
background-color: #222;
width: 250px;
height: 100%;
padding-top: 30px;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
transition: left 0.3s ease;
z-index: 1002;
}
.menu-container ul {
list-style: none;
padding: 0;
}
.menu-container li {
padding: 15px 25px;
font-size: 18px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.menu-container li:hover {
background-color: #ff7f50;
transform: scale(1.05);
}
/* Стили для контента */
.content-block {
padding: 40px 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding-left: 20px;
padding-right: 20px;
margin-bottom: 10px; /* Уменьшаем пробелы между заданиями */
}
/* Блоки контента */
.content-block h1 {
font-size: 2.5rem;
color: #4e73df; /* Синий цвет заголовков */
margin-bottom: 20px;
text-align: center;
max-width: 90%;
}
.content-block p {
font-size: 1.1rem;
line-height: 1.6;
color: #555;
max-width: 100%;
margin: 0 auto;
padding: 10px;
text-align: justify;
}
.content-block img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.footer {
background-color: #2d3e50;
color: #fff;
padding: 20px;
text-align: center;
font-size: 1rem;
margin-top: 30px;
}
.footer span {
font-weight: bold;
color: #ff7f50;
}
/* Стили для кнопки прокрутки */
.scroll-button {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #ff6f61;
color: white;
padding: 15px;
border-radius: 50%;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
font-size: 25px;
display: none;
transition: background-color 0.3s ease, transform 0.3s ease;
border: none;
}
.scroll-button:hover {
background-color: #ff8c00;
transform: scale(1.1);
}
/* Иконка стрелки */
.scroll-button i {
font-size: 30px;
}
/* Иконка смены темы */
.theme-toggle {
position: fixed;
top: 20px;
right: 20px;
font-size: 30px;
cursor: pointer;
z-index: 1002;
transition: color 0.3s ease;
}
/* Для темной темы */
.dark-theme {
background-color: #121212;
color: #fff;
}
.dark-theme .header {
background-color: #222;
}
.dark-theme .menu-container {
background-color: #333;
}
.dark-theme .menu-container li:hover {
background-color: #ff7f50;
}
.dark-theme .footer {
background-color: #222;
}
/* Белый текст под заголовками в тёмной теме */
.dark-theme .content-block p,
.dark-theme .content-block ul li {
color: white;
}
/* Новые стили для иконки меню */
.menu i {
color: black;
}
.menu.opened i {
color: white;
}
/* Обновление состояния меню */
.menu-container.opened {
left: 0;
}
/* Иконка меню внутри самого меню */
.menu-container .close-menu {
position: absolute;
top: 20px;
left: 20px;
font-size: 30px;
cursor: pointer;
color: white;
}
/* Сдвиг пунктов меню вниз */
.menu-container ul {
margin-top: 50px;
}
</style>
</head> <body>
Добро пожаловать на главную страницу
Выберите задание из меню или прокрутите вниз.
Добро пожаловать!
Здесь вы можете ознакомиться с различными заданиями. Используйте меню слева для перехода к ним.
Задание № 1
Название: "Познание"
Девиз: "Мы открываем новые горизонты!"
Пояснение: Название говорит о стремлении к новым знаниям и открытиям. Девиз подчеркивает исследовательский дух команды и готовность к новым вызовам.
Цель участия: Узнать больше о культуре родного края и родины, а также поведать об этом остальным.
Состав:
- Чернова Кира
- Михальчишина Светлана
- Абдуллаева Саламат
- Горячева Анастасия
- Ежов Артём
Задание № 2
Здесь текст задания 2. Для всех текстов под заголовками будет применяться белый цвет при темной теме.
Задание № 3
Здесь текст задания 3.
Задание № 4
Здесь текст задания 4.
Задание № 5
Здесь текст задания 5.
<button class="scroll-button" id="scrollButton" onclick="scrollToTop()">
</button>
<script>
// Сменить тему
function toggleTheme() {
document.body.classList.toggle("dark-theme");
const themeIcon = document.getElementById('themeToggle').querySelector('i');
if (document.body.classList.contains("dark-theme")) {
themeIcon.classList.remove('fa-sun');
themeIcon.classList.add('fa-moon');
} else {
themeIcon.classList.remove('fa-moon');
themeIcon.classList.add('fa-sun');
}
}
// Показать/скрыть меню
function toggleMenu() {
const menuContainer = document.getElementById('menuContainer');
menuContainer.classList.toggle('opened');
}
// Прокрутка к секции
function scrollToSection(sectionId) {
document.getElementById(sectionId).scrollIntoView({ behavior: 'smooth' });
toggleMenu();
}
// Прокрутка вверх
function scrollToTop() {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
// Показывать кнопку прокрутки вверх
window.onscroll = function() {
const scrollButton = document.getElementById('scrollButton');
if (document.body.scrollTop > 200 || document.documentElement.scrollTop > 200) {
scrollButton.style.display = "block";
} else {
scrollButton.style.display = "none";
}
};
</script>
</body> </html>