Skip to content

Commit 853e536

Browse files
committed
add discussions again
1 parent 478f374 commit 853e536

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed

assets/css/main.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/* assets/css/main.css */
2+
.discussion-section {
3+
background: #f8f9fa;
4+
border-radius: 15px;
5+
padding: 40px;
6+
margin: 40px 0;
7+
}
8+
9+
.discussion-section h2 {
10+
color: #2d3748;
11+
margin-bottom: 15px;
12+
}
13+
14+
.discussion-section p {
15+
color: #718096;
16+
margin-bottom: 30px;
17+
line-height: 1.6;
18+
}
19+
20+
/* Giscus主题定制 */
21+
.giscus {
22+
max-width: 100% !important;
23+
}
24+
25+
.giscus-frame {
26+
border-radius: 10px !important;
27+
}

pages/community/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- pages/community/index.html -->
2+
<section class="discussion-section">
3+
<h2>💬 Join the Discussion</h2>
4+
<p>Connect with researchers and share insights...</p>
5+
6+
<!-- Giscus代码放在这里! -->
7+
<script src="https://giscus.app/client.js"
8+
data-repo="ShiqianTan/AI4PolymerCommunity"
9+
data-repo-id="R_kgDOP8HDwA" # 需要从giscus.app获取
10+
data-category="General"
11+
data-category-id="DIC_kwDOP8HDwM4CwPOs" # 需要从giscus.app获取
12+
data-mapping="pathname"
13+
data-strict="0"
14+
data-reactions-enabled="1"
15+
data-emit-metadata="0"
16+
data-input-position="bottom"
17+
data-theme="preferred_color_scheme"
18+
data-lang="en"
19+
crossorigin="anonymous"
20+
async>
21+
</script>
22+
</section>

pages/papers/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- pages/papers/index.html -->
2+
<section class="paper-discussions">
3+
<h3>📚 Paper Discussions</h3>
4+
<script src="https://giscus.app/client.js"
5+
data-repo="ShiqianTan/AI4PolymerCommunity"
6+
data-repo-id="R_kgDOP8HDwA"
7+
data-category="Papers"
8+
data-category-id="DIC_kwDOP8HDwM4CwPOs"
9+
data-mapping="pathname"
10+
data-strict="0"
11+
data-reactions-enabled="1"
12+
data-emit-metadata="0"
13+
data-input-position="bottom"
14+
data-theme="preferred_color_scheme"
15+
data-lang="en"
16+
crossorigin="anonymous"
17+
async>
18+
</script>
19+
</section>

pages/tutorials/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- pages/tutorials/index.html -->
2+
<section class="tutorial-discussions">
3+
<h3>🎓 Tutorial Q&A</h3>
4+
<script src="https://giscus.app/client.js"
5+
data-repo="ShiqianTan/AI4PolymerCommunity"
6+
data-repo-id="R_kgDOP8HDwA"
7+
data-category="Tutorials"
8+
data-category-id="DIC_kwDOP8HDwM4CwPOs"
9+
data-mapping="pathname"
10+
data-strict="0"
11+
data-reactions-enabled="1"
12+
data-emit-metadata="0"
13+
data-input-position="bottom"
14+
data-theme="preferred_color_scheme"
15+
data-lang="en"
16+
crossorigin="anonymous"
17+
async>
18+
</script>
19+
</section>

0 commit comments

Comments
 (0)