Add demo: README video/social links + in-Space '🎬 Watch the demo' embed tab

#2
by gr33r - opened
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +32 -0
README.md CHANGED
@@ -62,8 +62,8 @@ dataset, blinded vote store).
62
 
63
  ## Submission
64
 
65
- - 🎬 **Demo video:** _add the public video link here before submitting_
66
- - πŸ“£ **Social post:** _add the social post link here before submitting_
67
 
68
  ---
69
 
 
62
 
63
  ## Submission
64
 
65
+ - 🎬 **Demo video:** [Watch the 2-minute demo](https://www.linkedin.com/posts/christopher-greer_buildsmall-opensource-ai-ugcPost-7472300204092764161-SnJ9/) β€” also embedded in the **🎬 Watch the demo** tab inside the Space.
66
+ - πŸ“£ **Social post:** [On LinkedIn](https://www.linkedin.com/posts/christopher-greer_buildsmall-opensource-ai-ugcPost-7472300204092764161-SnJ9/)
67
 
68
  ---
69
 
app.py CHANGED
@@ -666,6 +666,35 @@ button.cc-btn-secondary:active { transform: translateY(4px); box-shadow: 0 1px 0
666
  .tabitem, .gap, .block { background: transparent !important; border: none !important; }
667
  """
668
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
669
  with gr.Blocks(theme=gr.themes.Base(), css=CSS, head=FONTS_HEAD, title="β›Ί Copy Campfire",
670
  fill_width=True) as demo:
671
  session_id = gr.State(lambda: uuid.uuid4().hex[:12])
@@ -709,6 +738,9 @@ with gr.Blocks(theme=gr.themes.Base(), css=CSS, head=FONTS_HEAD, title="β›Ί Copy
709
  vote_tie = gr.Button("🀝 Tie", elem_classes="cc-btn-secondary")
710
  vote_bad = gr.Button("πŸͺ΅ Both need work", elem_classes="cc-btn-secondary")
711
 
 
 
 
712
  with gr.Tab("πŸ•οΈ Trail log"):
713
  leaderboard_md = gr.HTML(tally_md())
714
 
 
666
  .tabitem, .gap, .block { background: transparent !important; border: none !important; }
667
  """
668
 
669
+ LINKEDIN_POST = ("https://www.linkedin.com/posts/christopher-greer_"
670
+ "buildsmall-opensource-ai-ugcPost-7472300204092764161-SnJ9/")
671
+ DEMO_HTML = f"""
672
+ <div class="cc-kicker cc-kicker--fire" style="max-width:560px;margin:18px auto 6px;">
673
+ <span class="cc-kicker__rule"></span><span>Watch the demo</span><span class="cc-kicker__rule"></span>
674
+ </div>
675
+ <div style="text-align:center;font-family:var(--font-serif);font-style:italic;font-size:1.0625rem;
676
+ color:var(--text-muted);max-width:560px;margin:0 auto 18px;">
677
+ Two minutes by the fire β€” the model, the numbers, and how to make it your own.
678
+ </div>
679
+ <div style="max-width:540px;margin:0 auto;background:var(--parch-50);border:2px dashed var(--border-camp);
680
+ border-radius:var(--radius-card);padding:14px;box-shadow:var(--shadow-card);">
681
+ <iframe src="https://www.linkedin.com/embed/feed/update/urn:li:ugcPost:7472300204092764161?collapsed=1"
682
+ style="width:100%;height:560px;border:0;border-radius:var(--radius-md);background:#fff;"
683
+ allowfullscreen loading="lazy" title="Copy Campfire demo on LinkedIn"></iframe>
684
+ </div>
685
+ <div style="text-align:center;margin:18px auto 4px;">
686
+ <a href="{LINKEDIN_POST}" target="_blank" rel="noopener"
687
+ style="display:inline-block;font-family:var(--font-display);font-weight:900;font-size:1rem;
688
+ text-decoration:none;color:#fff;background:var(--fire-500);
689
+ border-radius:var(--radius-pill);padding:11px 24px;box-shadow:var(--shadow-card);">
690
+ β–Ά Watch on LinkedIn
691
+ </a>
692
+ </div>
693
+ <div style="text-align:center;font-family:var(--font-mono);font-size:.72rem;color:var(--text-faint);margin-top:8px;">
694
+ If the embed doesn't load, the button opens the post directly.
695
+ </div>
696
+ """
697
+
698
  with gr.Blocks(theme=gr.themes.Base(), css=CSS, head=FONTS_HEAD, title="β›Ί Copy Campfire",
699
  fill_width=True) as demo:
700
  session_id = gr.State(lambda: uuid.uuid4().hex[:12])
 
738
  vote_tie = gr.Button("🀝 Tie", elem_classes="cc-btn-secondary")
739
  vote_bad = gr.Button("πŸͺ΅ Both need work", elem_classes="cc-btn-secondary")
740
 
741
+ with gr.Tab("🎬 Watch the demo"):
742
+ gr.HTML(DEMO_HTML)
743
+
744
  with gr.Tab("πŸ•οΈ Trail log"):
745
  leaderboard_md = gr.HTML(tally_md())
746