-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Currently, the quality selector lists all resolutions that appear in the manifest, taking the height from the resolution and appending a 'P'. Qualities would look like: 360P, 720P, 1080P, 1440P, etc However, today's viewers do not know what 720p or 1440p means. They know SD, HD and 4K (and soon - 8K). We wish to add a simple indication that would allow millennials to know the quality they are watching. Requirements For resolutions, where height is between 720 (included) and 2160 (excluded) add an HD indication. For resolutions, where height is between 2160 (included) and 4320 (excluded) add a 4K indication. For resolutions, where height is above 4320 (included) add a 8K indication.
- Loading branch information
1 parent
2ae29d0
commit a81f08f
Showing
9 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.badge { | ||
height: 10px; | ||
width: 15px; | ||
background-color: white; | ||
color: black; | ||
border-radius: 1px; | ||
font-size: 9px; | ||
text-transform: uppercase; | ||
margin-left: 3px; | ||
margin-top: 2px; | ||
align-self: flex-start; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//@flow | ||
import {h, Component} from 'preact'; | ||
import style from '../../styles/style.scss'; | ||
|
||
const COMPONENT_NAME = 'Badge'; | ||
|
||
/** | ||
* Badge component | ||
* | ||
* @class Badge | ||
* @example <Badge content={badgeContent} /> | ||
* @extends {Component} | ||
*/ | ||
class Badge extends Component { | ||
/** | ||
* render component | ||
* | ||
* @returns {React$Element} - component | ||
* @memberof Badge | ||
*/ | ||
render(): React$Element<any> { | ||
return <span className={style.badge}>{this.props.content}</span>; | ||
} | ||
} | ||
|
||
Badge.displayName = COMPONENT_NAME; | ||
export {Badge}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {Badge} from './badge'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters