forked from gopinav/Angular-Forms-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.html
More file actions
100 lines (91 loc) · 2.7 KB
/
Copy pathhello.html
File metadata and controls
100 lines (91 loc) · 2.7 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello Page</title>
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.hello-container {
text-align: center;
background: rgba(255, 255, 255, 0.9);
padding: 3rem 4rem;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
animation: fadeIn 1s ease-out;
}
h1 {
font-size: 3rem;
color: #333;
margin: 0;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hello-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
font-size: 1rem;
border-radius: 25px;
cursor: pointer;
margin-top: 2rem;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
font-family: 'Arial', sans-serif;
font-weight: bold;
}
.hello-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.hello-button:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
.hello-container {
padding: 2rem;
margin: 1rem;
}
h1 {
font-size: 2rem;
}
.hello-button {
padding: 10px 20px;
font-size: 0.9rem;
}
}
</style>
</head>
<body>
<div class="hello-container">
<h1>Hello</h1>
<button class="hello-button" onclick="sayHello()">Hello Button</button>
</div>
<script>
function sayHello() {
alert('Hello! 👋 Thanks for clicking the button!');
}
</script>
</body>
</html>