-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement conference to loop over peers and render
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 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
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 +1,40 @@ | ||
<p>Conference</p> | ||
<script> | ||
import {hmsPeers} from "./hmsStores.ts"; | ||
import Peer from "./Peer.svelte"; | ||
</script> | ||
|
||
|
||
<section class="conference-section"> | ||
<h2>Conference</h2> | ||
|
||
<div class="peers-container"> | ||
{#each $hmsPeers as peer} | ||
<Peer {peer} /> | ||
{/each} | ||
</div> | ||
</section> | ||
|
||
<style> | ||
.conference-section { | ||
max-width: 960px; | ||
padding: 20px 30px; | ||
margin: 0 auto; | ||
} | ||
.conference-section h2 { | ||
text-align: center; | ||
font-size: 32px; | ||
padding-bottom: 10px; | ||
border-bottom: 1px solid #546e7a; | ||
} | ||
.peers-container { | ||
display: grid; | ||
grid-template-columns: repeat(3, minmax(min-content, 1fr)); | ||
place-items: center; | ||
grid-gap: 10px; | ||
} | ||
</style> |
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,7 @@ | ||
<script> | ||
export let peer; | ||
</script> | ||
|
||
<p> | ||
Peer - {peer.name} | ||
</p> |
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