chat buttons

This commit is contained in:
f 2025-01-07 11:28:30 +03:00
parent 72df762e87
commit 020a11d956
2 changed files with 114 additions and 27 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
_site/ _site/
Gemfile.lock

View File

@ -238,54 +238,70 @@
} }
.site-header { .site-header {
padding: 0.75rem 1.5rem; padding: 0.75rem 1rem;
flex-direction: column;
align-items: stretch;
gap: 8px;
position: relative;
} }
.prompt-count { .header-right {
padding: 4px 8px; position: absolute;
font-size: 0.75rem; top: 1.3rem;
margin-bottom: 8px; right: 0.75rem;
gap: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
} }
.count-number { .star-count {
display: flex;
font-size: 0.8rem; font-size: 0.8rem;
} }
#searchInput { .star-count svg {
padding: 6px 8px; width: 14px;
font-size: 0.9rem; height: 14px;
} }
#searchResults { .dark-mode-toggle {
padding: 4px;
}
.mode-icon {
width: 18px;
height: 18px;
}
.site-slogan {
display: none; display: none;
} }
#searchInput:not(:placeholder-shown) + #searchResults { .site-description {
display: block; display: flex !important;
margin-top: 4px;
} }
#searchResults .search-result-item:nth-child(n+4) { .platform-hint {
font-size: 0.7rem;
}
.platform-tag {
padding: 1px 6px;
font-size: 0.75rem;
}
.github-link {
display: none; display: none;
} }
#searchResults .search-result-item:nth-child(3) { .github-link span {
position: relative; display: none;
padding-bottom: 30px;
} }
#searchResults .search-result-item:nth-child(3)::after { .search-container {
content: "Scroll main content to see more results"; padding-bottom: 0 !important;
position: absolute; margin-bottom: 0 !important;
bottom: 8px;
left: 0;
right: 0;
text-align: center;
font-size: 0.8rem;
color: var(--accent-color);
opacity: 0.8;
} }
} }
@ -313,6 +329,44 @@
.site-slogan { .site-slogan {
display: none; display: none;
} }
.site-description {
display: flex !important;
margin-top: 4px;
}
.platform-hint {
font-size: 0.7rem;
}
.platform-tag {
padding: 1px 6px;
font-size: 0.75rem;
}
.header-right {
gap: 8px;
}
.mode-text {
display: none;
}
.dark-mode-toggle {
padding: 6px;
}
.github-link {
padding: 6px;
}
.github-link span {
display: none;
}
.star-count {
display: none;
}
} }
.site-title:hover { .site-title:hover {
@ -994,6 +1048,38 @@
.dark-mode .search-result-item.add-prompt:hover { .dark-mode .search-result-item.add-prompt:hover {
background: rgba(16, 185, 129, 0.15); background: rgba(16, 185, 129, 0.15);
} }
.star-count {
display: flex;
align-items: center;
gap: 4px;
color: var(--accent-color);
font-size: 0.9rem;
opacity: 0.8;
text-decoration: none;
transition: opacity 0.2s ease;
}
.star-count:hover {
opacity: 1;
}
.star-count svg {
width: 16px;
height: 16px;
}
@media (max-width: 768px) {
.star-count {
display: flex;
font-size: 0.8rem;
}
.star-count svg {
width: 14px;
height: 14px;
}
}
</style> </style>
{% include head-custom.html %} {% include head-custom.html %}
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6945602608405209" crossorigin="anonymous"></script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6945602608405209" crossorigin="anonymous"></script>