fix app layouts: remove style tags from content fragments, use component classes
This commit is contained in:
@@ -4,45 +4,30 @@
|
||||
<link type="text/rcss" href="../../ui/theme.rcss"/>
|
||||
<link type="text/rcss" href="../../ui/components.rcss"/>
|
||||
<script src="../../scripts/navigation.lua"></script>
|
||||
<script src="../../scripts/phone.lua"></script>
|
||||
<script src="calling.lua"></script>
|
||||
<title>Calling</title>
|
||||
<style>
|
||||
.calling-screen {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(180deg, #1a237e 0%, #121212 100%);
|
||||
background: linear-gradient(180deg, #1a237e 0%, #000000 100%);
|
||||
background-color: #1a237e;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.calling-status {
|
||||
margin-top: 80px;
|
||||
font-size: 18px;
|
||||
color: #4CAF50;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
.calling-header {
|
||||
padding-top: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.calling-name {
|
||||
margin-top: 24px;
|
||||
font-size: 32px;
|
||||
font-weight: 300;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.calling-number {
|
||||
margin-top: 8px;
|
||||
font-size: 16px;
|
||||
color: #B3B3B3;
|
||||
}
|
||||
|
||||
.calling-avatar {
|
||||
margin-top: 48px;
|
||||
.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;
|
||||
@@ -50,77 +35,157 @@
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.calling-actions {
|
||||
position: absolute;
|
||||
bottom: 120px;
|
||||
display: flex;
|
||||
gap: 48px;
|
||||
.call-name {
|
||||
font-size: 32px;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.call-action-btn {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 32px;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
.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-action-btn:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
.call-control-btn:hover {
|
||||
background-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
.call-action-btn img {
|
||||
.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 {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 36px;
|
||||
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: 32px;
|
||||
height: 32px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
pointer-events: none;
|
||||
transform: rotate(135deg);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="calling-screen">
|
||||
<div class="calling-status">Calling...</div>
|
||||
<div class="calling-name" id="calling-name">Unknown</div>
|
||||
<div class="calling-number" id="calling-number"></div>
|
||||
<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>
|
||||
|
||||
<div class="calling-avatar" id="calling-avatar">?</div>
|
||||
<!-- Spacer -->
|
||||
<div class="calling-content"></div>
|
||||
|
||||
<div class="calling-actions">
|
||||
<div class="call-action-btn">
|
||||
<img src="../../icons/dialpad.tga"/>
|
||||
<!-- 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 class="call-action-btn">
|
||||
<img src="../../icons/contacts.tga"/>
|
||||
<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>
|
||||
|
||||
<div class="end-call-btn" onclick="endCall()">
|
||||
<img src="../../icons/phone.tga"/>
|
||||
<!-- 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>
|
||||
|
||||
Reference in New Issue
Block a user