hmml_to_html.c: Special-case #handmade_hero quotes

hmmlconv.c: Set twitch_username=handmade_hero

This commit also throws hero.css into the mix, copied straight from the
original style
This commit is contained in:
Matt Mascarenhas 2017-04-30 03:15:10 +01:00
parent 622ee76980
commit 01d179f77f
3 changed files with 92 additions and 4 deletions

80
hmml_to_html/hero.css Normal file
View File

@ -0,0 +1,80 @@
.title {
background-color: #444;
}
.title > a {
color: rgba(38, 139, 210, 1);
}
.title > a:visited {
color: rgba(38, 139, 210, 1);
}
.title .refs_container {
transition: box-shadow 800ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: inset 0 0 0 #B57714;
}
.title .refs_container:hover {
background-color: #666;
}
.title .refs_container.current {
box-shadow: inset 0px 0px 30px #B57714;
}
.title .refs_container .refs {
background-color: black;
border: 3px solid #444;
border-top: none;
}
.title .refs_container > .refs .ref {
border-bottom: 1px solid rgb(51, 51, 51);
color: white;
}
.title .refs_container > .refs .ref.current {
background-color: #8B3D23;
color: black;
}
.title .refs_container > .refs .ref:hover {
background-color: #222;
}
.title .refs_container > .refs .ref.current:hover {
background-color: rgba(139, 61, 35, 0.7);
}
.title .refs_container > .refs .ref .source {
color: #888;
}
.markers_container > .marker {
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.markers_container > .marker:hover > .content {
background-color: #222;
}
.markers_container > .marker:hover .faded .content {
background-color: rgba(139, 61, 35, 0.7);
color: black;
}
.markers_container > .marker > .content {
background-color: #161616;
color: #8A877D;
}
.markers_container > .marker.current > .content {
color: #B57714;
}
.markers_container > .marker .progress .content {
background-color: #8B3D23;
color: black;
}

View File

@ -343,8 +343,6 @@ BuildCategories(buffer *AnnotationClass, buffer *Category, int *MarkerIndex, boo
return;
}
#define QUOTE_DIR "/home/matt/git/GitHub/insofaras/25fc16d58a297a486334"
int
StringToInt(char *String)
{
@ -360,8 +358,18 @@ StringToInt(char *String)
int
BuildQuote(quote_info *Info, char *Speaker, int ID)
{
char *QuoteDir;
if(!StringsDiffer(Speaker, "handmade_hero"))
{
QuoteDir = "/home/matt/git/GitHub/Chronister/01e754a09fd84c839ad7";
}
else
{
QuoteDir = "/home/matt/git/GitHub/insofaras/25fc16d58a297a486334";
}
char Path[255] = {0};
sprintf(Path, "%s/#%s", QUOTE_DIR, Speaker);
sprintf(Path, "%s/#%s", QuoteDir, Speaker);
FILE *File;
if(!(File = fopen(Path, "r")))
{

View File

@ -380,7 +380,7 @@ int ProcessFile(char *InFileName, FILE *InFile, FILE *OutFile)
}
else if(strncmp(LinePtr, "markers:", 8) == 0)
{
fprintf(OutFile, "[video member=cmuratori project=hero title=\"%s\" platform=youtube id=%s annotator=Miblo]\n", Title, VideoID);
fprintf(OutFile, "[video member=cmuratori project=hero twitch_username=handmade_hero title=\"%s\" platform=youtube id=%s annotator=Miblo]\n", Title, VideoID);
State = STATE_MARKERS;
}
} break;