Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions constructor.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Конструктор Таблицы</title>
<link rel="stylesheet" href="index_style.css">
</head>
<body>
<header>
<nav class="nav-bar section-content">
<a href="#" class="nav-logo">
<h2 class="logo-text">Rust</h2>
</a>
<ul class="nav-menu">
<button id="menu-close-button" class="fas fa-times"></button>
<li class="nav-item">
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="ownership.html" class="nav-link">Themes</a>
</li>
<li class="nav-item">
<a href="constructor.html" class="nav-link">Constructor</a>
</li>
<li class="nav-item">
<a href="ownership.html" class="nav-link">Contact</a>
</li>
</ul>
<button id="menu-open-button" class="fas fa-bars"></button>
</nav>
</header>
<main>
<section class="content-section">
<div class="todo-container">
<h2 class="title">To-Do List</h2>
<form id="todo-form">
<input
type="text"
id="todo-input"
placeholder="Write your task here..."
required
/>
<button type="submit" class="home-button">Add Task</button>
</form>
<ul id="todo-list" class="todo-list"></ul>
</div>
</section>
</main>
<script src="scripts/constructor.js"></script>
</body>
</html>
Binary file added imgs/ownership.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/smart-pointers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/traits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 82 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ <h2 class="logo-text">Rust</h2>
<ul class="nav-menu">
<button id="menu-close-button" class="fas fa-times"></button>
<li class="nav-item">
<a href="#" class="nav-link">Home</a>
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Themes</a>
<a href="ownership.html" class="nav-link">Themes</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Photos</a>
<a href="constructor.html" class="nav-link">Constructor</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Contact</a>
<a href="ownership.html" class="nav-link">Contact</a>
</li>
</ul>
<button id="menu-open-button" class="fas fa-bars"></button>
Expand Down Expand Up @@ -68,28 +68,84 @@ <h2 class="section-title">About creator</h2>
</div>
</div>
</section>
<section class="menu-section">
<h2 class="section-title">Topics</h2>
<div class="section-content">
<ul class="menu-list">
<li class="menu-item">
<a href="ownership.html">
<img src="imgs/ownership.png" alt="Ownership" class="menu-image">
</a>
<h3 class="name">Ownership</h3>
<p class="text">New concepts of memory control</p>
</li>
<li class="menu-item">
<a href="smart-pointers.html">
<img src="imgs/smart-pointers.png" alt="SmartPointers" class="menu-image">
</a>
<h3 class="name">Smart pointers</h3>
<p class="text">Work with old but gold ideas</p>
</li>
<li class="menu-item">
<a href="traits.html">
<img src="imgs/traits.png" alt="Traits" class="menu-image">
</a>
<h3 class="name">Traits</h3>
<p class="text">Look like interfaces but don't believe them</p>
</li>
</ul>
</div>
</section>
</main>
<aside>
<h1>Темы моего сайта</h1>
<ul>
<li><a href="/memory.html">Управление памятью(owners)</a></li>
<li><a href="/references.html">Указатели(references)</a></li>
</ul>
</aside>
<!-- <footer>
<h3>полезные ссылки</h3>
<nav>
<a href="https://t.me/Ta1yAnGsHeN">
<img src="/imgs/telegram.png" width="60" height="60">
</a>
<a href="https://github.com/M1RCLE">
<img src="/imgs/github.png" width="60" height="60">
</a>
<a href="https://doc.rust-lang.org/book/title-page.html">
<img src="/imgs/rust.png" width="60" height="60">
</a>
</nav>
</footer> -->
<script src="script.js"></script>
<footer id="footer">
<div class="container">
<div class="wrapper">
<div>Date</div>
<div>Work done</div>
<div>Hours of work</div>
<div>Hours of study</div>
<div>Personal Hours</div>

<div>01.10.2024</div>
<div>Done</div>
<div>3</div>
<div>3</div>
<div>4</div>

<div>02.10.2024</div>
<div>Done</div>
<div>3</div>
<div>8</div>
<div>4</div>

<div>03.10.2024</div>
<div>Done</div>
<div>7</div>
<div>3</div>
<div>2</div>

<div>04.10.2024</div>
<div>Done</div>
<div>1</div>
<div>2</div>
<div>6</div>

<div>05.10.2024</div>
<div>Done</div>
<div>3</div>
<div>3</div>
<div>4</div>

<div>06.10.2024</div>
<div>Done</div>
<div>3</div>
<div>0</div>
<div>4</div>

</div>
</div>
<p id="load-time-info"></p>
</footer>
<script src="scripts/script.js"></script>
</body>
</html>
178 changes: 177 additions & 1 deletion index_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,89 @@ header .nav-bar {

}

@media screen and (max-width: 575px) {
.menu-section {
color: var(--white-color);
background: var(--dark-color);
padding: 50px 0 100px;
}

.menu-section .menu-list {
display: flex;
flex-wrap: wrap;
gap: 100px;
align-items: center;
justify-content: space-between;
}

.menu-section .menu-list .menu-item {
display: flex;
align-items: center;
flex-direction: column;
text-align: center;
justify-content: space-between;
width: calc(100% / 3 - 110px);
}

.menu-section .menu-list .menu-item .menu-image {
max-width: 83%;
aspect-ratio: 1;
margin-bottom: 15px;
object-fit: contain;
}

.menu-section .menu-list .menu-item .text {
font-size: var(--font-size-m);
}

.menu-section .menu-list .menu-item .name {
margin: 12px 0;
font-size: var(--font-size-l);
font-weight: var(--font-weight-semibold);

}

.nav-item .active {
color: #ff6600;
font-weight: bold;
border-bottom: 2px solid #ff6600;
}

.wrapper {
border-style: solid;
border-radius: var(--border-radius-m);
border-color: var(--medium-gray-color);
font-weight: bold;
text-align: center;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(7, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
}

.wrapper>div:nth-child(10n+1),
.wrapper>div:nth-child(10n+2),
.wrapper>div:nth-child(10n+3),
.wrapper>div:nth-child(10n+4),
.wrapper>div:nth-child(10n+5)
{
background: var(--primary-color);
color: var(--white-color);
}

@media screen and (max-width: 1024px) {

.menu-section .menu-list {
gap: 60px;
}

.menu-section .menu-list .menu-item {
width: calc(100% / 3 - 60px);
}

}

@media screen and (max-width: 900px) {

:root {
--font-size-s: 0.7rem;
Expand Down Expand Up @@ -302,4 +384,98 @@ header .nav-bar {
max-width: 250px;
}

.menu-section .menu-list {
gap: 30px;
}

.menu-section .menu-list .menu-item {
width: calc(100% / 2 - 30px);
}

.menu-section .menu-list .menu-item .menu-image {
max-width: 200px;
}

}

.todo-container {
max-width: 600px;
margin: auto;
background-color: var(--white-color);
border-radius: var(--border-radius-s);
padding: 100px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.todo-container .title {
text-align: center;
font-size: var(--font-size-xl);
font-weight: var(--font-weight-bold);
margin-bottom: 20px;
color: var(--primary-color);
}

#todo-form {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

#todo-input {
flex: 1;
padding: 10px;
font-size: var(--font-size-m);
border: 1px solid var(--medium-gray-color);
border-radius: var(--border-radius-s);
}

#todo-input:focus {
outline: none;
border-color: var(--secondary-color);
}

.todo-list {
list-style-type: none;
padding: 0;
}

.todo-list li {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 10px;
margin-bottom: 10px;
border: 1px solid var(--medium-gray-color);
border-radius: var(--border-radius-s);
transition: background-color 0.3s ease, text-decoration 0.3s ease;
word-wrap: break-word;
flex-wrap: wrap;
}

.todo-list li span {
flex: 1;
margin-right: 10px;
word-break: break-word;
font-size: var(--font-size-m);
}

.todo-list li.done {
background-color: var(--light-pink-color);
text-decoration: line-through;
color: var(--medium-gray-color);
}

.todo-list .mark-done {
padding: 5px 10px;
font-size: var(--font-size-s);
color: var(--white-color);
background-color: var(--secondary-color);
border: none;
border-radius: var(--border-radius-s);
cursor: pointer;
align-self: flex-start;
}

.todo-list .mark-done:hover {
background-color: var(--primary-color);
}
Loading