142 lines
4.3 KiB
Plaintext
142 lines
4.3 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>
|
|
<title>Contacts</title>
|
|
<style>
|
|
.contacts-screen {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #121212;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.contacts-list {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding-bottom: 56px;
|
|
}
|
|
|
|
.contact-letter {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #BB86FC;
|
|
background-color: #1E1E1E;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.contact-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.contact-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.contact-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 20px;
|
|
margin-right: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
color: #000000;
|
|
}
|
|
|
|
.contact-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.contact-name {
|
|
font-size: 16px;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.contact-phone {
|
|
font-size: 13px;
|
|
color: #B3B3B3;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.contact-call-btn {
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.contact-call-btn:hover {
|
|
background-color: rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
.contact-call-btn img {
|
|
width: 20px;
|
|
height: 20px;
|
|
pointer-events: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="contacts-screen" data-model="contacts">
|
|
<!-- App Bar -->
|
|
<div class="app-bar">
|
|
<div class="btn-icon" onclick="goBack()"><img src="../icons/back.tga" style="width: 24px; height: 24px;"/></div>
|
|
<span class="app-bar-title">Contacts</span>
|
|
<div class="btn-icon"><img src="../icons/add.tga" style="width: 24px; height: 24px;"/></div>
|
|
</div>
|
|
|
|
<!-- Search Bar -->
|
|
<div class="search-bar">
|
|
<img src="../icons/search.tga" class="search-icon" style="width: 20px; height: 20px;"/>
|
|
<input class="search-input" type="text" placeholder="Search contacts"/>
|
|
</div>
|
|
|
|
<!-- Contacts List -->
|
|
<div class="contacts-list">
|
|
<div data-for="contact : contacts">
|
|
<div class="contact-item" data-event-click="select_contact(contact.id); navigateTo('contact_detail')">
|
|
<div class="contact-avatar" data-style-background-color="contact.color">{{ contact.initial }}</div>
|
|
<div class="contact-info">
|
|
<div class="contact-name">{{ contact.name }}</div>
|
|
<div class="contact-phone">{{ contact.phone }}</div>
|
|
</div>
|
|
<div class="contact-call-btn">
|
|
<img src="../icons/phone.tga"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- FAB -->
|
|
<div class="btn-fab"><img src="../icons/add.tga" style="width: 24px; height: 24px;"/></div>
|
|
|
|
<!-- Bottom Navigation -->
|
|
<div class="bottom-nav">
|
|
<div class="bottom-nav-item" onclick="navigateTo('dialer')">
|
|
<img src="../icons/dialpad.tga" class="bottom-nav-icon" style="width: 24px; height: 24px;"/>
|
|
<span class="bottom-nav-label">Keypad</span>
|
|
</div>
|
|
<div class="bottom-nav-item">
|
|
<img src="../icons/history.tga" class="bottom-nav-icon" style="width: 24px; height: 24px;"/>
|
|
<span class="bottom-nav-label">Recent</span>
|
|
</div>
|
|
<div class="bottom-nav-item active">
|
|
<img src="../icons/contacts.tga" class="bottom-nav-icon" style="width: 24px; height: 24px;"/>
|
|
<span class="bottom-nav-label">Contacts</span>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</rml>
|