Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
facfb43
phoneApp с помощью innerHtml
olgakuzminagithub Jul 23, 2018
59ac0d7
bootstrap connection with cdn
olgakuzminagithub Jul 24, 2018
96bd641
delete scss bootstrap
olgakuzminagithub Jul 24, 2018
6cd1528
changes on remarks
olgakuzminagithub Jul 26, 2018
2a6572d
add sorting, add page keypad and class Keypad Page
olgakuzminagithub Jul 27, 2018
a45c54b
task 1 for phoneApp
olgakuzminagithub Aug 6, 2018
f286a79
TASK 2 for phoneApp
olgakuzminagithub Aug 7, 2018
1496cec
task 3 start
olgakuzminagithub Aug 7, 2018
3d232cc
add App class and implemented router
olgakuzminagithub Aug 8, 2018
1159985
TASK 2 Загружайте пользователей с сервера при загрузке странице.
olgakuzminagithub Aug 10, 2018
9fc1e18
add-use добавляет пользователя на сервер
olgakuzminagithub Aug 10, 2018
8571826
использование fetch для четния и записи пользователей
olgakuzminagithub Aug 14, 2018
410b746
changes from Oleg
olgakuzminagithub Aug 14, 2018
dc925ef
help please: в файле contact.js Строка 19 выполняеться раньше чем 11 …
olgakuzminagithub Aug 19, 2018
8b2ab9b
add search and some Oleh change
olgakuzminagithub Aug 21, 2018
bb33288
phoneApp/js/app.js
olgakuzminagithub Aug 21, 2018
c290b50
functions getState, setState, the switchRouter is rendered in a separ…
olgakuzminagithub Aug 23, 2018
a639868
added a click to the user
olgakuzminagithub Aug 27, 2018
58b8850
added the ability to edit and delete user
olgakuzminagithub Aug 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
333 changes: 333 additions & 0 deletions phoneApp/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
/**
* Description: main styles
* Version: 1.0.0
* Last update: 09.01.2017
* Author: [email protected]
*/
/*$breakpoints: (
'screen-xs': 480px,
'screen-sm': 768px,
'screen-md': 992px,
'screen-lg': 1200px
);
// keywords
$media-expressions: (
'screen': 'screen',
'print': 'print',
'handheld': 'handheld',
'landscape': '(orientation: landscape)',
'portrait': '(orientation: portrait)',
'retina2x': '(-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)',
'retina3x': '(-webkit-min-device-pixel-ratio: 2.5), (min-resolution: 240dpi)'
);*/
.clearfix:after {
content: '';
display: table;
clear: both;
}

.ellipsis {
white-space: nowrap;
/* 1 */
text-overflow: ellipsis;
/* 2 */
overflow: hidden;
}

a:hover, a:focus, a:active, a.active {
color: #777;
text-decoration: none;
}

button {
outline-color: white;
}

h2 {
margin: 0;
}

h3 {
margin: 0;
}

.container {
width: 400px;
background: #ccc;
padding: 25px;
}

.top-radius {
border-top-left-radius: 30px;
border-top-right-radius: 30px;
}

.bottom-radius {
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
}

.header {
text-align: center;
margin-top: 20px;
}

.main-nav {
display: flex;
justify-content: space-between;
}

.keypad-holder {
width: 250px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.number {
margin: 0 auto;
width: 200px;
height: 50px;
margin-bottom: 20px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
}

.number .numbers {
align-self: flex-end;
}

.key {
width: 60px;
min-height: 60px;
padding: 15px 0;
border-radius: 50%;
border: 1px solid #fff;
text-align: center;
margin-bottom: 10px;
margin-left: 5px;
margin-right: 5px;
display: flex;
align-items: center;
justify-content: center;
}

.key:last-child {
background: #4cda64;
color: #fff;
}

.key:last-child:hover {
background: #348f3c;
border: 1px solid #fff;
}

.key:hover {
background: rgba(0, 0, 0, 0.1);
border: 1px solid #777;
}

.tab {
display: flex;
flex-direction: column;
align-items: center;
}

.tab:hover, .tab:focus, .tab:active, .tab.active {
color: #777;
text-decoration: none;
}

.tab-text {
font-size: 12px;
margin-top: 5px;
}

.contacts tbody {
display: block;
max-height: 300px;
overflow: hidden;
overflow-y: auto;
}

.contacts tr {
display: table;
width: 100%;
table-layout: fixed;
}

.table > thead > tr > th {
border: none;
cursor: pointer;
}

.form-inline .form-control {
margin-bottom: 10px;
width: 100%;
}

.form-inline .form-group {
display: block;
}

.user-top-line {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
font-size: 14px;
}

.user-img {
width: 100px;
height: 100px;
margin-bottom: 10px;
}

.user-name {
font-weight: bold;
text-align: center;
margin-bottom: 30px;
}

.options-line {
display: flex;
justify-content: space-between;
text-align: center;
margin-bottom: 20px;
}

.options-icon {
border-radius: 50%;
background: #000;
color: #fff;
width: 40px;
height: 40px;
margin: 0 auto 5px;
position: relative;
}

.options-icon:hover {
background: #777;
}

.options-text {
font-size: 12px;
}

.message, .call, .video, .mail {
display: flex;
flex-direction: column;
}

.icon {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}

.tel-number {
margin-bottom: 20px;
font-size: 16px;
}

.options-table {
margin-bottom: 20px;
font-size: 16px;
}

.options-item {
padding: 10px 0;
border-bottom: 1px solid #777;
}

.options-item:first-child {
border-top: 1px solid #777;
}

.scroll-holder {
max-height: 300px;
overflow: hidden;
overflow-y: auto;
margin-bottom: 20px;
}

.add-foto-btn {
width: 100px;
height: 100px;
border-radius: 50%;
border: 1px solid #eee;
outline: none;
}

.add-btn {
border: 0;
background: transparent;
width: 100%;
text-align: left;
outline-color: gray;
}

.done-btn {
background: transparent;
border: none;
outline: none;
}

.done-btn:hover {
color: #777;
}

.main-info-holder {
flex-grow: 1;
}

.edit-main-info {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}

.edit-foto {
margin-right: 10px;
}

.edit-field {
padding: 5px 0;
border-bottom: 1px solid #fff;
width: 100%;
display: flex;
}

.delete-btn {
color: #e32910;
margin-top: 3px;
margin-right: 10px;
border: none;
background: transparent;
}

.delete-btn:hover, .delete-btn:focus, .delete-btn:active {
color: #a70b0f;
}

.add-btn {
color: #4cda64;
margin-top: 3px;
margin-right: 10px;
}

.add-btn:hover, .add-btn:focus, .add-btn:active {
color: #348f3c;
}

.delete-contact {
color: #e32910;
margin: 0 auto;
font-weight: bold;
}

Binary file added phoneApp/images/user-face-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added phoneApp/images/user-face.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions phoneApp/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contacts</title>
<link href="https://fonts.googleapis.com/css?family=Oxygen" rel="stylesheet">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>

<!-- Latest compiled and minified JavaScript -->
<!--<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>-->
<script src="js/contacts.js"></script>
</body>
</html>

Loading