File tree Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Expand file tree Collapse file tree 4 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 11EMAILJS_SERVER_ID = service_sedddrb
22EMAILJS_TEMPLATE_ID = template_2w42djr
3- EMAILJS_PUBLIC_KEY = 6_tNcp-iBTQ09T2Ql
3+ EMAILJS_PUBLIC_KEY = 6_tNcp-iBTQ09T2Ql
4+ APPLICATION_ID = QREGAGU3YC
5+ API_KEY = 95b0c6179810e72eefdf5f0e8915ac85
Original file line number Diff line number Diff line change 1+ ---
2+ title : Sticky Media
3+ sidebar_label : Sticky Media
4+ ---
5+
6+ # Sticky media
7+
8+ You may add a sticky video by giving ` sticky-popup ` class to an ` a ` tag.
9+
10+ ``` html
11+ <!-- md content above -->
12+
13+ <a className =" sticky-popup" target =" _blank" href =" https://www.youtube.com/watch?v=uRgQ_TpTj4g" >Sticky video</a >
14+
15+ <!-- md content below -->
16+ ```
17+
18+ ## Try it!
19+
20+ <a
21+ className="sticky-popup"
22+ target="_ blank"
23+ href="https://www.youtube.com/watch?v=uRgQ_TpTj4g "
24+ data-video-id="uRgQ_TpTj4g"
25+ >Sticky video</a >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const lightCodeTheme = require("prism-react-renderer/themes/github");
66// const darkCodeTheme = require("prism-react-renderer/themes/dracula");
77// const Embed = require("./plugins/remark/embed");
88const darkCodeTheme = require ( "prism-react-renderer/themes/shadesOfPurple" ) ;
9+ require ( 'dotenv' ) . config ( )
910const customFields = {
1011 meta : {
1112 title : "An atom based state manager for JavaScript apps." ,
@@ -52,6 +53,16 @@ const config = {
5253 defaultLocale : "en" ,
5354 locales : [ "en" ] ,
5455 } ,
56+
57+ scripts : [
58+ {
59+ src :
'//cdn.jsdelivr.net/gh/app-generator/[email protected] /dist/index.min.js' , 60+ id : 'stickyVideoScript' ,
61+ defer : true ,
62+ class : 'sticky-popup' ,
63+ } ,
64+ ] ,
65+
5566 // themes: ["@docusaurus/theme-live-codeblock"],
5667 plugins : [
5768 // "docusaurus-plugin-sass",
Original file line number Diff line number Diff line change @@ -265,3 +265,11 @@ ul.menu__list > li > a.menu__link--active {
265265}
266266
267267/* Home Page Header */
268+
269+ /* Sticky media */
270+ .sticky-video-modal {
271+ width : 100% ;
272+ height : 100% ;
273+ right : 0 ;
274+ bottom : 0 ;
275+ }
You can’t perform that action at this time.
0 commit comments