Skip to content

Commit 0a258c4

Browse files
committed
2.0 - Improved UI/UX
1 parent 0c5f500 commit 0a258c4

15 files changed

+127
-103
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
[![GitHub forks](https://img.shields.io/github/forks/quead/angular2-yt-player.svg)](https://github.com/quead/angular2-yt-player/network)
1111
[![GitHub stars](https://img.shields.io/github/stars/quead/angular2-yt-player.svg)](https://github.com/quead/angular2-yt-player/stargazers)
1212

13-
This is a simple youtube player based on [angular-cli](https://github.com/angular/angular-cli "Angular Cli") 1.4, [NWjs 0.25.0](https://nwjs.io/ "NWJS Page"), [ng2-youtube-player](https://github.com/orizens/ng2-youtube-player "ng2 youtube player") 0.0.3 (used for youtube iFrame API), SCSS (CSS3), HTML5 and webkit functions.
13+
This is a simple youtube web player and desktop player based on [angular-cli](https://github.com/angular/angular-cli "Angular Cli") 1.4, [NWjs 0.25.0](https://nwjs.io/ "NWJS Page"), [ng2-youtube-player](https://github.com/orizens/ng2-youtube-player "ng2 youtube player") 0.0.3 (used for youtube iFrame API), SCSS (CSS3), HTML5 and webkit functions.
1414

15-
This player is compatible only with Chrome/webkit browsers because in future I want to implement [NW.js](https://nwjs.io/ 'NWjs website') for compiling the code in Windows/Mac OS X/Linux desktop app.
15+
This player is compatible only with Chrome/webkit browsers.
1616

17-
*The project status is alpha.*
17+
*The project status is beta.*
1818

1919
## Usage
2020

dist/assets/css/main.css

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
:root {
44-
--c-base: #1e1e27;
44+
--c-base: #1b1b23;
4545
--c-primary: red;
4646
--c-primary-active: #d42222;
4747
--c-primary-active-focus: #bb2222;
@@ -382,17 +382,6 @@ a:active {
382382
padding: 0 20px;
383383
}
384384

385-
.app-feed:before {
386-
content: '';
387-
display: block;
388-
position: absolute;
389-
width: 100%;
390-
height: 330px;
391-
left: 0;
392-
top: -230px;
393-
background: radial-gradient(ellipse at center, rgba(162, 173, 214, 0.42) 0%, transparent 70%);
394-
}
395-
396385
.app-player .app-head {
397386
padding-left: 0;
398387
}
@@ -1407,6 +1396,19 @@ nav a.is-active .description, nav a:active .description {
14071396
display: block;
14081397
position: relative;
14091398
color: var(--c-white);
1399+
margin-top: 5px;
1400+
}
1401+
1402+
#main-search .search-icon {
1403+
position: absolute;
1404+
top: 50%;
1405+
left: 10px;
1406+
font-size: 18px;
1407+
transform: translateY(-50%);
1408+
color: rgba(255, 255, 255, 0.3);
1409+
cursor: pointer;
1410+
z-index: 2;
1411+
transition: all 0.1s ease-out;
14101412
}
14111413

14121414
#main-search .form-group {
@@ -1422,22 +1424,23 @@ nav a.is-active .description, nav a:active .description {
14221424
border: none;
14231425
display: block;
14241426
width: 100%;
1425-
padding: 10px 40px 10px 20px;
1426-
border-radius: 20px;
1427+
padding: 15px 40px 15px 40px;
1428+
border-radius: 0;
14271429
margin: 0;
14281430
outline: 0;
14291431
position: relative;
1430-
background-color: var(--c-gray);
1432+
background-color: transparent;
14311433
color: inherit;
14321434
z-index: 1;
14331435
transition: all 0.1s ease-out;
1436+
border-bottom: 1px solid #2f2f3a;
14341437
}
14351438

1436-
#main-search input[type="text"]:focus {
1437-
background-color: var(--c-black);
1439+
#main-search input[type="text"]::-webkit-input-placeholder {
1440+
color: rgba(255, 255, 255, 0.3);
14381441
}
14391442

1440-
#main-search input[type="text"]::-webkit-input-placeholder {
1443+
#main-search input[type="text"]:focus + .search-icon {
14411444
color: var(--c-white);
14421445
}
14431446

@@ -1476,7 +1479,7 @@ iframe {
14761479
.video-list {
14771480
position: absolute;
14781481
width: 100%;
1479-
top: 45px;
1482+
top: 55px;
14801483
overflow-y: auto;
14811484
}
14821485

@@ -1505,7 +1508,7 @@ iframe {
15051508

15061509
.search-list.arrow-up {
15071510
position: absolute;
1508-
top: 38px;
1511+
top: 48px;
15091512
left: 50%;
15101513
transform: translateX(-50%);
15111514
}
@@ -1538,11 +1541,14 @@ iframe {
15381541
}
15391542

15401543
.video-item-head {
1541-
background-color: var(--c-gray);
1544+
background-color: rgba(255, 255, 255, 0.03);
15421545
color: var(--c-white);
15431546
width: 100%;
15441547
height: 39px;
15451548
padding: 8px;
1549+
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
1550+
position: relative;
1551+
z-index: 1;
15461552
}
15471553

15481554
.video-item-head-btn {
@@ -1752,6 +1758,7 @@ iframe {
17521758
height: calc(100% - 39px);
17531759
width: 100%;
17541760
overflow: auto;
1761+
z-index: 0;
17551762
}
17561763

17571764
#related-video-list .related-video-content::-webkit-scrollbar-track {
@@ -1795,6 +1802,7 @@ iframe {
17951802
width: 100%;
17961803
overflow: auto;
17971804
background-color: var(--c-dark-gray);
1805+
z-index: 0;
17981806
}
17991807

18001808
#playlist-video-list .playlist-video-content .video-item:not(.active) {
@@ -1895,7 +1903,7 @@ iframe {
18951903
#feed-video-list {
18961904
top: inherit;
18971905
bottom: 0;
1898-
height: calc(100% - 246px);
1906+
height: calc(100% - 210px);
18991907
width: calc(100% - 40px);
19001908
max-height: none;
19011909
background-color: var(--c-gray);

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<link rel="stylesheet" href="assets/css/main.css">
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
1111
</head>
12-
<body class="application app-win">
12+
<body class="">
1313
<div class="update-bar">
1414
<div id="output">Checking for updates...</div>
1515
<span class="update-loading">
@@ -23,7 +23,7 @@
2323
<span class="sr-only">Loading...</span>
2424
</div>
2525
</app-yt>
26-
<script>
26+
<script>
2727
const AutoUpdater = require( "nw-autoupdater" ),
2828
updater = new AutoUpdater( require( "./package.json" ) ),
2929
output = document.querySelector( "#output" ),

dist/inline.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)