Участник:Шитов Даниил Станиславович
Версия от 14:57, 18 февраля 2025; Шитов Даниил Станиславович (обсуждение | вклад) (Новая страница: «<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Объе...»)
<!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>