Jack Monas commited on
Commit
e530d5a
·
1 Parent(s): ebcd647
Files changed (1) hide show
  1. app.py +78 -11
app.py CHANGED
@@ -5,6 +5,82 @@ import glob
5
  import os
6
  import random
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  def scoring_section():
9
  # Title
10
  st.markdown("## Scoring")
@@ -242,17 +318,8 @@ def main():
242
  """
243
  )
244
  st.markdown("---")
245
- st.markdown("## Resources")
246
- st.markdown(
247
- """
248
- For more information and updates, please check out our previous blog posts and join our communities:
249
- - [Blog Post: World Model Challenge Launch](https://example.com/blog-post-1)
250
- - [Blog Post: Challenge Updates and Technical Details](https://example.com/blog-post-2)
251
- - [GitHub Repository](https://github.com/1x-technologies/world-model-challenge)
252
- - [Hugging Face Page](https://huggingface.co/1x-technologies)
253
- - [Discord Channel](https://discord.gg/your-invite)
254
- """
255
- )
256
 
257
 
258
  if __name__ == '__main__':
 
5
  import os
6
  import random
7
 
8
+
9
+ def resources_section():
10
+ st.markdown("## Additional Resources")
11
+ st.write("For more information and updates, explore our blog posts or join our community channels:")
12
+
13
+ # Define a custom HTML string to create dark-themed card-style links in a flexbox layout
14
+ resources_html = """
15
+ <style>
16
+ .resource-cards {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ gap: 20px;
20
+ margin-top: 10px;
21
+ }
22
+ .resource-card {
23
+ background-color: #1f1f1f; /* Dark card background */
24
+ border: 1px solid #333333;
25
+ border-radius: 6px;
26
+ width: 220px;
27
+ padding: 12px;
28
+ text-align: center;
29
+ transition: box-shadow 0.2s ease;
30
+ }
31
+ .resource-card:hover {
32
+ box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
33
+ }
34
+ .resource-card h4 {
35
+ margin: 0;
36
+ color: #ffffff;
37
+ }
38
+ .resource-card p {
39
+ color: #cccccc;
40
+ margin: 6px 0 0 0;
41
+ font-size: 14px;
42
+ }
43
+ .resource-card a {
44
+ text-decoration: none;
45
+ color: inherit; /* Inherits card's text color */
46
+ }
47
+ </style>
48
+
49
+ <div class="resource-cards">
50
+ <!-- Blog Post 1 -->
51
+ <a href="https://example.com/blog-post-1" target="_blank" class="resource-card">
52
+ <h4>Blog Post 1</h4>
53
+ <p>World Model Challenge Launch</p>
54
+ </a>
55
+
56
+ <!-- Blog Post 2 -->
57
+ <a href="https://example.com/blog-post-2" target="_blank" class="resource-card">
58
+ <h4>Blog Post 2</h4>
59
+ <p>Challenge Updates and Technical Details</p>
60
+ </a>
61
+
62
+ <!-- GitHub -->
63
+ <a href="https://github.com/1x-technologies/world-model-challenge" target="_blank" class="resource-card">
64
+ <h4>GitHub Repository</h4>
65
+ <p>View code and issues</p>
66
+ </a>
67
+
68
+ <!-- Hugging Face -->
69
+ <a href="https://huggingface.co/1x-technologies" target="_blank" class="resource-card">
70
+ <h4>Hugging Face Page</h4>
71
+ <p>Datasets and Models</p>
72
+ </a>
73
+
74
+ <!-- Discord -->
75
+ <a href="https://discord.gg/your-invite" target="_blank" class="resource-card">
76
+ <h4>Discord Channel</h4>
77
+ <p>Join the discussion</p>
78
+ </a>
79
+ </div>
80
+ """
81
+
82
+ st.markdown(resources_html, unsafe_allow_html=True)
83
+
84
  def scoring_section():
85
  # Title
86
  st.markdown("## Scoring")
 
318
  """
319
  )
320
  st.markdown("---")
321
+ resources_section()
322
+
 
 
 
 
 
 
 
 
 
323
 
324
 
325
  if __name__ == '__main__':