Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

トップページにYouTube LiveとTwitterのタイムラインを表示する #114

Merged
merged 3 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions assets/scss/content/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body.home {
.info.container.primary {
margin-bottom: var(--section-margin);
}
}
6 changes: 6 additions & 0 deletions assets/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
@import "variables.scss";

@import "content/index.scss";

@import "partials/staff.scss";
@import "partials/live_panels.scss";

@import "staffs/list.scss";
16 changes: 16 additions & 0 deletions assets/scss/partials/live_panels.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.shortcodes_livePanels {
&_panels {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-4);
margin-bottom: var(--section-margin);
}

&_timeline {
width: 45%;
@media (max-width: 52rem) {
width: 80%;
}
}
}
3 changes: 3 additions & 0 deletions assets/scss/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:root {
--section-margin: 4rem;
}
5 changes: 4 additions & 1 deletion content/_index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ icon="right" %}}
{{% /home-speakers %}}
-->

{{% live-panels %}}

{{% home-tickets %}}

# 参加登録

<ul>
<li>{{<ticket name="セッション"
<li>{{<ticket name="オンライン会場"
price="無料"
url="https://gocon.connpass.com/event/213865/">}}
</li>
Expand Down
4 changes: 3 additions & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ icon="right" %}}
{{% /home-speakers %}}
-->

{{% live-panels %}}

{{% home-tickets %}}

# Registration

<ul>
<li>{{<ticket name="Sessions"
<li>{{<ticket name="Virtual Venue"
price="Free"
url="https://gocon.connpass.com/event/213865/">}}
</li>
Expand Down
43 changes: 43 additions & 0 deletions layouts/shortcodes/live-panels.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div class="shortcodes_livePanels">
<div class="shortcodes_livePanels_panels">
<div class="shortcodes_livePanels_youtube">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/EVUCSrj83uM"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
<div class="shortcodes_livePanels_youtube">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/w2m4u3wruJY"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
</div>

<div class="shortcodes_livePanels_panels">
<div class="shortcodes_livePanels_timeline">
<a
class="twitter-timeline"
data-width="100%"
data-height="500"
href="https://twitter.com/gocon_staff?ref_src=twsrc%5Etfw"
>Tweets by gocon_staff</a
>
<script
async
src="https://platform.twitter.com/widgets.js"
charset="utf-8"
></script>
</div>
</div>
</div>