forked from miroslavpejic85/mirotalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanding.html
More file actions
executable file
·167 lines (149 loc) · 9.18 KB
/
Copy pathlanding.html
File metadata and controls
executable file
·167 lines (149 loc) · 9.18 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Miro Talk - Landing</title>
<!-- Favicon, TODO: rifare -->
<link rel="apple-touch-icon" sizes="180x180" href="../images/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../images/favicon/favicon-16x16.png">
<link rel="manifest" href="../images/favicon/images/site.webmanifest">
<!-- Bootstrap 5.3.3 & Icons -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<!-- xss -->
<script src="https://cdn.jsdelivr.net/npm/xss/dist/xss.min.js"></script>
<style>
html, body {
height: 100%;
/* margin: 0; */
/* padding: 0; */
/* font-family: 'Roboto', sans-serif; */
}
.only-big-screen {
display: none;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@media (min-width: 1500px) {
.MyContainer {
padding: 0 25em;
}
}
@media (max-width: 620px) {
.MyContainer {
flex: 0 0 auto;
}
}
@media (min-height: 900px) {
html, body {
height: calc(100% - 48px);
}
.only-big-screen {
display: block;
}
.only-small-screen {
display: none;
}
.MyContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
}
</style>
</head>
<body>
<!-- Header -->
<header class="d-flex align-items-center justify-content-between px-2" style="max-height: 48px;">
<!-- SX -->
<div class="d-flex align-items-center">
<svg style="padding: 12px;" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>
</svg>
<img src="../images/miro_collab_logo_1a2.png" alt="Logo" height="40px">
<p class="ms-2 m-0" style="font-weight: 300;font-size: 1.5em;">Miro Talk</p>
</div>
<!-- DX -->
<div class="d-flex align-items-center">
<div style="display: table-cell; vertical-align: middle; padding: 8px;">
<a id="clock">18:04</a><a> • </a><a id="date">lun 18 nov</a>
</div>
<svg style="padding: 12px;" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" class="bi bi-grid-3x3-gap" viewBox="0 0 16 16">
<path d="M4 2v2H2V2zm1 12v-2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1m0-5V7a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1m0-5V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1m5 10v-2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1m0-5V7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1m0-5V2a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1M9 2v2H7V2zm5 0v2h-2V2zM4 7v2H2V7zm5 0v2H7V7zm5 0h-2v2h2zM4 12v2H2v-2zm5 0v2H7v-2zm5 0v2h-2v-2zM12 1a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm-1 6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm1 4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1z"/>
</svg>
<svg style="padding: 12px;" xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">
<path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492M5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0"/>
<path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115z"/>
</svg>
<div class="border-secondary border-start border-2 border-opacity-75" style="height: calc((48px/100)*75);"></div>
<div class="flex-shrink-0 p-2">
<img src="https://github.com/mdo.png" alt="mdo" width="32" height="32" class="rounded">
</div>
</div>
</header>
<!-- Main -->
<div class="MyContainer">
<hr class="w-75 only-big-screen">
<div class="px-5 py-4 text-center d-flex flex-column align-items-center">
<!-- <hr class="w-75"> -->
<img class="d-block mx-auto mb-2" src="../images/miro_collab_logo_1a2.png" alt="" height="72">
<h1 class="display-5 fw-light text-body-emphasis" style="
font-family: Google Sans,Roboto,Arial,sans-serif;
font-size: 2.812rem;
font-weight: 400;
letter-spacing: 0;
line-height: 3.25rem;
color: var(--gm3-sys-color-on-surface,#1f1f1f);
padding-bottom: .5rem;
margin: 0;
">Videochiamate e riunioni per tutti</h1>
<div class="col-lg mx-auto">
<p class="lead mb-4">Connettiti, collabora e festeggia ovunque tu sia con Miro Talk</p>
<div style="display: flex;flex-direction: row;justify-content: center;max-height: 48px;">
<button id="genRoomButton" type="button" class="me-2 btn btn-primary btn px-4 gap-3" style="max-width: fit-content;" ><i class="bi bi-camera-video"></i> Riunione rapida</button>
<!-- // TODO: onclick add focus to input -->
<div class="me-2 form-control form-control-sm w-auto d-flex align-items-center" onfocus="">
<span><i class="bi bi-keyboard-fill"></i></span>
<input id="roomName" maxlength="32" type="text" class="mx-2 border-opacity-75 form-control" placeholder="ABCD-0000-0000-0000...">
</div>
<input id="joinRoomButton" type="button" class="btn btn-sm btn-outline-secondary" value="Partecipa">
</div>
</div>
<div id="lastRoomContainer" class="d-flex mx-auto mt-3 last-room">
<i class="bi bi-clock-history me-2"></i>
<p class="me-2">Your recent room:</p>
<a class="text-decoration-none" id="lastRoom"></a>
</div>
<br>
<hr class="w-75 only-small-screen" >
</div>
<hr class="w-75 only-big-screen">
</div>
<!-- Scripts -->
<script defer src="../js/common.js"></script>
<script>
function updateTime() {
const now = new Date();
const hours = now.getHours();
const minutes = now.getMinutes();
const timeElement = document.getElementById('clock');
timeElement.textContent = `${hours}:${minutes<10?"0"+minutes:minutes}`;
}
updateTime();
setInterval(updateTime, 60000); // update every 60 seconds (1 minute)
function updateDate() {
const now = new Date();
const day = now.getDate();
const month = now.getMonth();
const dayOfWeek = now.getDay();
const daysOfWeek = ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'];
const months = ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'];
const dateElement = document.getElementById('date');
dateElement.textContent = `${daysOfWeek[dayOfWeek]} ${day} ${months[month]}`;
}
</script>
</body>
</html>