mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-07 14:40:02 +00:00
Replace big red introduction video with thumbnail
Hopefully fixes #1547
This commit is contained in:
parent
e00d417a31
commit
542372c722
15
core/wiki/macros/youtube.tid
Normal file
15
core/wiki/macros/youtube.tid
Normal file
@ -0,0 +1,15 @@
|
||||
title: $:/core/macros/youtube
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define youtube-thumbnail(link,width:"280",height:"157",image)
|
||||
<$link to="""$link$""">
|
||||
<div class="tc-youtube-wrapper">
|
||||
<div class="tc-youtube-thumbnail">
|
||||
[img width="$width$" height="$height$" [$image$]]
|
||||
</div>
|
||||
<div class="tc-youtube-play-symbol">
|
||||
{{$:/core/images/video}}
|
||||
</div>
|
||||
</div>
|
||||
</$link>
|
||||
\end
|
@ -7,9 +7,9 @@ type: text/vnd.tiddlywiki
|
||||
|
||||
Welcome to ~TiddlyWiki, a versatile note-taking web application you can download for free, store wherever you like and customise however you wish. Use it to capture, organise and share your notes in ways that word processors and other note-taking tools cannot.
|
||||
|
||||
<$button class="tc-btn-big-green" to="Introduction Video" style="background:red;">
|
||||
{{$:/core/images/video}} Watch a video introduction
|
||||
</$button>
|
||||
<div style="float:right;">
|
||||
<<youtube-thumbnail link:"Introduction Video" image:"Introduction Video Thumbnail.jpg">>
|
||||
</div>
|
||||
|
||||
~TiddlyWiki is designed to be non-linear, structuring content with stories, tags, hyperlinks, and other features. You can organise and retrieve your notes in ways that conform to your personal thought patterns, rather than feel chained to one preset organisational structure.
|
||||
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
@ -0,0 +1,3 @@
|
||||
title: Introduction Video Thumbnail.jpg
|
||||
type: image/jpeg
|
||||
tags: picture
|
@ -1647,6 +1647,34 @@ body.tc-dirty span.tc-dirty-indicator, body.tc-dirty span.tc-dirty-indicator svg
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/*
|
||||
** YouTube macros
|
||||
*/
|
||||
|
||||
.tc-youtube-wrapper {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.tc-youtube-thumbnail {
|
||||
}
|
||||
|
||||
.tc-youtube-play-symbol svg,
|
||||
.tc-youtube-play-symbol img {
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
fill: red;
|
||||
}
|
||||
|
||||
.tc-youtube-play-symbol {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-left: -1.5em;
|
||||
margin-top: -1.5em;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
** Errors
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user