-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite
More file actions
86 lines (80 loc) · 1.92 KB
/
site
File metadata and controls
86 lines (80 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Мой простой сайт</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
background: #f4f4f4;
}
header {
background: #333;
color: white;
padding: 15px;
text-align: center;
}
nav {
background: #555;
padding: 10px;
text-align: center;
}
nav a {
color: white;
margin: 0 10px;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
.container {
padding: 20px;
}
.card {
background: white;
padding: 15px;
margin-bottom: 15px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
button {
padding: 10px 15px;
border: none;
background: #333;
color: white;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background: #555;
}
</style>
</head>
<body>
<header>
<h1>Мой сайт</h1>
<p>Простой пример без ТЗ</p>
</header>
<nav>
<a href="#">Главная</a>
<a href="#">О нас</a>
<a href="#">Контакты</a>
</nav>
<div class="container">
<div class="card">
<h2>Добро пожаловать</h2>
<p>Это простой сайт, который ты можешь использовать как основу.</p>
</div>
<div class="card">
<h2>Интерактив</h2>
<button onclick="showMessage()">Нажми меня</button>
</div>
</div>
<script>
function showMessage() {
alert("Ты нажал кнопку 👍");
}
</script>
</body>
</html>