-
Notifications
You must be signed in to change notification settings - Fork 12
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 #78 from systemphil/patch/contributions
patch/contributions
- Loading branch information
Showing
6 changed files
with
96 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,47 @@ | ||
export const EmbedYT = (props: any) => { | ||
const { | ||
children, | ||
src, | ||
minWidth = "400px", | ||
maxWidth = "800px", | ||
...otherProps | ||
} = props; | ||
|
||
return ( | ||
<section | ||
style={{ width: "100%", minWidth: minWidth, maxWidth: maxWidth }} | ||
aria-label="YouTube video" | ||
> | ||
<div | ||
style={{ | ||
position: "relative", | ||
width: "100%", | ||
overflow: "hidden", | ||
paddingTop: "56.25%", | ||
}} | ||
> | ||
<div> | ||
<iframe | ||
style={{ | ||
position: "absolute", | ||
top: "0", | ||
left: "0", | ||
right: "0", | ||
width: "100%", | ||
height: "100%", | ||
border: "none", | ||
}} | ||
width="560" | ||
height="315" | ||
src={src} | ||
title="Video player" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" | ||
{...otherProps} | ||
> | ||
{children} | ||
</iframe> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"use client"; | ||
|
||
import { SymposiaCard } from "./SymposiaCard"; | ||
|
||
export function TableOfContentsExtra() { | ||
return ( | ||
<> | ||
<LinkToDiscussion /> | ||
<SymposiaCard /> | ||
</> | ||
); | ||
} | ||
|
||
function LinkToDiscussion() { | ||
return ( | ||
<a | ||
className="nx-text-xs nx-font-medium nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50" | ||
target="_blank" | ||
href="https://github.com/systemphil/sphil/discussions" | ||
> | ||
Share your thoughts 💬{" "} | ||
</a> | ||
); | ||
} | ||
|
||
// Question? Give us feedback → |
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