Skip to content

Commit 0f2d74f

Browse files
authored
Add a button in the main page to link to deepwiki ocm page. (#478)
Signed-off-by: xuezhaojun <[email protected]>
1 parent 8c3a1e9 commit 0f2d74f

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

content/en/_index.md

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Policy and configuration management uses labels to help you deploy policies and
5555
<p class="text-center">
5656
Open Cluster Management is being used by numerous companies, both large and small.
5757
</p>
58-
58+
5959
<div class="partners-grid">
6060
<div class="row justify-content-center">
6161
<div class="col-lg-8 col-md-10">
@@ -129,7 +129,7 @@ Policy and configuration management uses labels to help you deploy policies and
129129
<p class="text-center">
130130
Open Cluster Management has integrations available with a number of open-source projects.
131131
</p>
132-
132+
133133
<div class="ecosystem-grid">
134134
<div class="row justify-content-center">
135135
<div class="col-lg-10 col-md-12">
@@ -303,3 +303,54 @@ Open Cluster Management is a Cloud Native Computing Foundation sandbox project
303303
<img src="https://raw.githubusercontent.com/cncf/artwork/master/other/cncf/horizontal/white/cncf-white.svg" alt="CNCF logo" style="max-width: 300px; margin-top: 20px;">
304304
</div>
305305
{{% /blocks/section %}}
306+
307+
<!-- Chat Bot Button -->
308+
<div id="chat-bot-button" aria-label="Chat with OCM">
309+
<i class="fas fa-robot"></i>
310+
</div>
311+
312+
<style>
313+
#chat-bot-button {
314+
position: fixed;
315+
bottom: 30px;
316+
right: 30px;
317+
width: 60px;
318+
height: 60px;
319+
background-color: #0073e6;
320+
border-radius: 50%;
321+
display: flex;
322+
justify-content: center;
323+
align-items: center;
324+
color: white;
325+
font-size: 24px;
326+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
327+
cursor: pointer;
328+
z-index: 1000;
329+
transition: all 0.3s ease;
330+
}
331+
332+
#chat-bot-button:hover {
333+
transform: scale(1.1);
334+
}
335+
336+
#chat-bot-button:hover::after {
337+
content: "Chat with OCM";
338+
position: absolute;
339+
right: 70px;
340+
background-color: #333;
341+
color: white;
342+
padding: 5px 10px;
343+
border-radius: 4px;
344+
font-size: 14px;
345+
white-space: nowrap;
346+
}
347+
</style>
348+
349+
<script>
350+
document.addEventListener('DOMContentLoaded', function() {
351+
const chatButton = document.getElementById('chat-bot-button');
352+
chatButton.addEventListener('click', function() {
353+
window.open('https://deepwiki.com/open-cluster-management-io/ocm', '_blank');
354+
});
355+
});
356+
</script>

0 commit comments

Comments
 (0)