Spaces:
Running
Running
burtenshaw
commited on
Commit
·
8dad4fa
1
Parent(s):
ad61a88
use url for linkedin logo
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def on_user_logged_in(token: gr.OAuthToken | None):
|
|
| 61 |
<div style="text-align: center; padding: 20px; border: 2px dashed #ccc;">
|
| 62 |
<h3>🎯 Complete the Quiz to Unlock</h3>
|
| 63 |
<p>Pass the quiz to add your certificate to LinkedIn!</p>
|
| 64 |
-
<img src="linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.5;">
|
| 65 |
</div>
|
| 66 |
""",
|
| 67 |
), # linkedin_btn - now visible with explanatory text
|
|
@@ -142,7 +142,7 @@ def create_linkedin_button(username: str, cert_url: str | None) -> str:
|
|
| 142 |
|
| 143 |
message = f"""
|
| 144 |
<a href="{button_url}" target="_blank" style="display: block; margin-top: 20px; text-align: center;">
|
| 145 |
-
<img src="linkedin_logo.png"
|
| 146 |
alt="LinkedIn Add to Profile button" style="width: 300px; height: 80px;">
|
| 147 |
</a>
|
| 148 |
"""
|
|
@@ -317,7 +317,7 @@ def handle_quiz(
|
|
| 317 |
<div style="text-align: center; padding: 20px; border: 2px dashed #4CAF50;">
|
| 318 |
<h3>🎉 Ready for LinkedIn!</h3>
|
| 319 |
<p>Great! Click "Get your certificate" above to unlock the LinkedIn button.</p>
|
| 320 |
-
<img src="linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.7;">
|
| 321 |
</div>
|
| 322 |
"""
|
| 323 |
if has_passed
|
|
@@ -368,7 +368,7 @@ def handle_quiz(
|
|
| 368 |
<div style="text-align: center; padding: 20px; border: 2px dashed #ccc;">
|
| 369 |
<h3>🎯 Keep Going!</h3>
|
| 370 |
<p>Complete the quiz and pass to unlock your LinkedIn certificate!</p>
|
| 371 |
-
<img src="linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.5;">
|
| 372 |
</div>
|
| 373 |
""",
|
| 374 |
), # linkedin button with progress message
|
|
|
|
| 61 |
<div style="text-align: center; padding: 20px; border: 2px dashed #ccc;">
|
| 62 |
<h3>🎯 Complete the Quiz to Unlock</h3>
|
| 63 |
<p>Pass the quiz to add your certificate to LinkedIn!</p>
|
| 64 |
+
<img src="https://huggingface.co/spaces/mcp-course/unit_1_quiz/resolve/main/linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.5;">
|
| 65 |
</div>
|
| 66 |
""",
|
| 67 |
), # linkedin_btn - now visible with explanatory text
|
|
|
|
| 142 |
|
| 143 |
message = f"""
|
| 144 |
<a href="{button_url}" target="_blank" style="display: block; margin-top: 20px; text-align: center;">
|
| 145 |
+
<img src="https://huggingface.co/spaces/mcp-course/unit_1_quiz/resolve/main/linkedin_logo.png"
|
| 146 |
alt="LinkedIn Add to Profile button" style="width: 300px; height: 80px;">
|
| 147 |
</a>
|
| 148 |
"""
|
|
|
|
| 317 |
<div style="text-align: center; padding: 20px; border: 2px dashed #4CAF50;">
|
| 318 |
<h3>🎉 Ready for LinkedIn!</h3>
|
| 319 |
<p>Great! Click "Get your certificate" above to unlock the LinkedIn button.</p>
|
| 320 |
+
<img src="https://huggingface.co/spaces/mcp-course/unit_1_quiz/resolve/main/linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.7;">
|
| 321 |
</div>
|
| 322 |
"""
|
| 323 |
if has_passed
|
|
|
|
| 368 |
<div style="text-align: center; padding: 20px; border: 2px dashed #ccc;">
|
| 369 |
<h3>🎯 Keep Going!</h3>
|
| 370 |
<p>Complete the quiz and pass to unlock your LinkedIn certificate!</p>
|
| 371 |
+
<img src="https://huggingface.co/spaces/mcp-course/unit_1_quiz/resolve/main/linkedin_logo.png" alt="LinkedIn Add to Profile" style="width: 200px; height: 53px; opacity: 0.5;">
|
| 372 |
</div>
|
| 373 |
""",
|
| 374 |
), # linkedin button with progress message
|