forked from Real-Dev-Squad/website-www
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Real-Dev-Squad#504 from Real-Dev-Squad/500-live-si…
…te-improvements-in-live-share [Live Site] Minor improvements in live
- Loading branch information
Showing
19 changed files
with
194 additions
and
165 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 |
---|---|---|
@@ -1,10 +1,29 @@ | ||
<div class='live-panel' data-test-live-panel> | ||
{{#each this.BUTTON_MAPPING as |button|}} | ||
{{#if (eq @role this.ROLES.host)}} | ||
<Reusables::IconButton | ||
@id={{button.id}} | ||
@class={{button.className}} | ||
@onClick={{this.buttonClickHandler}} | ||
@icon={{button.icon}} | ||
@id='screen-share' | ||
@class='icon-button--md' | ||
@title={{if @isScreenShareOn 'Stop Share' 'Screen Share'}} | ||
@onClick={{@buttonClickHandler}} | ||
@icon={{if | ||
@isScreenShareOn | ||
'material-symbols:stop-screen-share' | ||
'material-symbols:screen-share' | ||
}} | ||
/> | ||
{{/each}} | ||
<Reusables::IconButton | ||
@id='copy-link' | ||
@class='icon-button--md' | ||
@title='Invite link' | ||
@onClick={{@buttonClickHandler}} | ||
@icon={{if @isCopied 'material-symbols:done' 'material-symbols:copy-all'}} | ||
/> | ||
{{/if}} | ||
<Reusables::IconButton | ||
@id='leave-room' | ||
@class='icon-button--md icon-button--pink-bg' | ||
@title='Leave Room' | ||
@onClick={{@buttonClickHandler}} | ||
@icon='material-symbols:call-end' | ||
/> | ||
</div> |
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 |
---|---|---|
@@ -1,17 +1,6 @@ | ||
import Component from '@glimmer/component'; | ||
import { PANEL_BUTTON } from '../constants/live-panel-data'; | ||
import { action } from '@ember/object'; | ||
import { ROLES } from '../constants/live'; | ||
|
||
export default class LivePanelComponent extends Component { | ||
BUTTON_MAPPING = PANEL_BUTTON; | ||
|
||
@action buttonClickHandler(buttonId) { | ||
// TODO: remove console.log | ||
console.log(buttonId); | ||
} | ||
|
||
@action startLiveHandler() { | ||
// TODO: remove console.log | ||
console.log('Starting....'); | ||
} | ||
ROLES = ROLES; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
autoplay | ||
muted | ||
playsinlne | ||
loop | ||
{{create-global-ref 'videoEl'}} | ||
></video> |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
#live { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
max-width: 1024px; | ||
margin: 1rem auto; | ||
padding: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
max-width: 1024px; | ||
margin: 1rem auto; | ||
padding: 1rem; | ||
min-height: 80vh; | ||
} | ||
|
||
.live__container { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
} | ||
|
||
.live__video-container { | ||
width: 70%; | ||
height: 45vh; | ||
width: 70%; | ||
} | ||
|
||
.container__sidebar { | ||
display: flex; | ||
width: 28%; | ||
display: flex; | ||
width: 28%; | ||
} | ||
|
||
.live__panel-container{ | ||
width:100%; | ||
height: 100px; | ||
margin-top: 1rem; | ||
.live__panel-container { | ||
width: 100%; | ||
height: 100px; | ||
margin-top: 1rem; | ||
} | ||
|
||
|
||
@media only screen and (max-width: 768px) { | ||
.live__video-container { | ||
width: 100%; | ||
} | ||
.container__sidebar { | ||
width: 100%; | ||
margin-top: 1rem; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.live__container { | ||
height: initial; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.live__video-container { | ||
width: 100%; | ||
} | ||
|
||
.container__sidebar { | ||
width: 100%; | ||
margin-top: 1rem; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.live__container { | ||
height: initial; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
|
||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.video-screen { | ||
width: 100%; | ||
} | ||
width: 100%; | ||
height: 100%; | ||
object-fit: fill; | ||
} |
Oops, something went wrong.