-
Notifications
You must be signed in to change notification settings - Fork 0
/
text.html
75 lines (69 loc) · 2.91 KB
/
text.html
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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Styled Page</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap" rel="stylesheet">
<style>
body {
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
height: 100vh;
background-image: url('https://wallpapercave.com/wp/wp9314300.jpg'); /* Set your background image path here */
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: white; /* Change text color to white */
}
div {
text-align: center; /* Center align content */
padding: 20px; /* Add padding for spacing */
background-color: rgba(0, 0, 0, 0.5); /* Add semi-transparent background */
border-radius: 10px; /* Add border radius for rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add shadow */
}
p {
font-family: 'Bree Serif', serif; /* Use Bree Serif font */
font-size: 36px; /* Increase font size for all paragraphs */
margin-bottom: 15px; /* Increase margin bottom for paragraphs */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow */
-webkit-text-stroke-width: 1px; /* Add stroke to text */
-webkit-text-stroke-color: rgba(0, 0, 0, 0.5); /* Color for the text stroke */
}
#voltage {
font-weight: bold;
color: white;
font-size: 48px; /* Increase font size for voltage */
}
#button {
background-color: #0044cc; /* Change button color to match the blue background image */
color: #fff;
padding: 15px 30px; /* Increase padding for the button */
border: none;
cursor: pointer;
margin-top: 20px; /* Increase margin top for the button */
border-radius: 8px;
transition: background-color 0.3s ease; /* Smooth transition for button hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add shadow to the button */
}
#button:hover {
background-color: #003399; /* Darken button color on hover */
}
</style>
</head>
<body>
<div>
<p>Welcome, User</p>
<p>Real-Time VOLTAGE:</p>
<p id="voltage">230V</p>
<button id="button">View changes</button>
</div>
<!-- Your JavaScript file to refresh data goes here -->
<script src="javascript-file-for-refreshing-data-in-HTML-website.js"></script>
</body>
</html>