192 lines
5.2 KiB
Plaintext
192 lines
5.2 KiB
Plaintext
<rml>
|
|
<head>
|
|
<link type="text/rcss" href="../../ui/html.rcss"/>
|
|
<link type="text/rcss" href="../../ui/theme.rcss"/>
|
|
<link type="text/rcss" href="../../ui/components.rcss"/>
|
|
<script src="../../scripts/navigation.lua"></script>
|
|
<script src="calling.lua"></script>
|
|
<title>Calling</title>
|
|
<style>
|
|
.calling-screen {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(180deg, #1a237e 0%, #000000 100%);
|
|
background-color: #1a237e;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.calling-header {
|
|
padding-top: 60px;
|
|
text-align: center;
|
|
}
|
|
|
|
.call-avatar {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 60px;
|
|
background-color: #BB86FC;
|
|
margin: 0 auto 24px auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 48px;
|
|
color: #000000;
|
|
}
|
|
|
|
.call-name {
|
|
font-size: 32px;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.call-number {
|
|
font-size: 18px;
|
|
color: #B3B3B3;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.call-status {
|
|
font-size: 18px;
|
|
color: #4CAF50;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.call-timer {
|
|
font-size: 24px;
|
|
color: #FFFFFF;
|
|
font-weight: 300;
|
|
display: none;
|
|
}
|
|
|
|
.calling-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.call-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
padding: 40px;
|
|
gap: 32px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.call-control-btn {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 36px;
|
|
background-color: rgba(255, 255, 255, 0.15);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.call-control-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.call-control-btn.active {
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.call-control-btn img {
|
|
width: 32px;
|
|
height: 32px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.call-control-label {
|
|
font-size: 12px;
|
|
color: #FFFFFF;
|
|
margin-top: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.call-control-btn.active .call-control-label {
|
|
color: #000000;
|
|
}
|
|
|
|
.end-call-container {
|
|
padding: 40px;
|
|
}
|
|
|
|
.end-call-btn {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 40px;
|
|
background-color: #F44336;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.end-call-btn:hover {
|
|
background-color: #E53935;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.end-call-btn:active {
|
|
background-color: #C62828;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.end-call-btn img {
|
|
width: 40px;
|
|
height: 40px;
|
|
pointer-events: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="calling-screen" onload="initCalling(document)">
|
|
<!-- Caller Info -->
|
|
<div class="calling-header">
|
|
<div class="call-avatar" id="call-avatar">A</div>
|
|
<div class="call-name" id="call-name">Alice Johnson</div>
|
|
<div class="call-number" id="call-number">+1 555-0101</div>
|
|
<div class="call-status" id="call-status">Calling...</div>
|
|
<div class="call-timer" id="call-timer">00:00</div>
|
|
</div>
|
|
|
|
<!-- Spacer -->
|
|
<div class="calling-content"></div>
|
|
|
|
<!-- Call Controls -->
|
|
<div class="call-controls">
|
|
<div id="btn-mute" class="call-control-btn" onclick="toggleMute()">
|
|
<img src="../../icons/mic_off.tga"/>
|
|
<span class="call-control-label">Mute</span>
|
|
</div>
|
|
<div id="btn-keypad" class="call-control-btn" onclick="showDialpad()">
|
|
<img src="../../icons/dialpad.tga"/>
|
|
<span class="call-control-label">Keypad</span>
|
|
</div>
|
|
<div id="btn-speaker" class="call-control-btn" onclick="toggleSpeaker()">
|
|
<img src="../../icons/volume.tga"/>
|
|
<span class="call-control-label">Speaker</span>
|
|
</div>
|
|
<div id="btn-add" class="call-control-btn" onclick="addCall()">
|
|
<img src="../../icons/add.tga"/>
|
|
<span class="call-control-label">Add call</span>
|
|
</div>
|
|
<div id="btn-hold" class="call-control-btn" onclick="toggleHold()">
|
|
<img src="../../icons/pause.tga"/>
|
|
<span class="call-control-label">Hold</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- End Call Button -->
|
|
<div class="end-call-container">
|
|
<div class="end-call-btn" onclick="endCall()">
|
|
<img src="../../icons/call_end.tga"/>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</rml>
|