You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
576 lines
14 KiB
576 lines
14 KiB
{% extends "base.html" %}
|
|
|
|
<!--https://squidfunk.github.io/mkdocs-material/customization/#overriding-blocks-->
|
|
|
|
{% block announce %}
|
|
<div style="text-align:center">
|
|
<a href="https://github.com/kyegomez/swarms">Star and contribute</a> to Swarms on GitHub!
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<!-- Enhanced Page Navigation -->
|
|
<div class="md-content__navigation">
|
|
<div class="md-content__inner md-grid">
|
|
{% if page.previous_page or page.next_page %}
|
|
<nav class="md-nav md-nav--secondary" aria-label="Page navigation">
|
|
<div class="md-nav__title">
|
|
<span class="md-nav__icon">📖</span>
|
|
Continue Reading
|
|
</div>
|
|
<div class="md-nav__list">
|
|
{% if page.previous_page %}
|
|
<a href="{{ page.previous_page.url | url }}" class="md-nav__item md-nav__item--previous">
|
|
<div class="md-nav__link-wrapper">
|
|
<span class="md-nav__direction">← Previous</span>
|
|
<span class="md-nav__title">{{ page.previous_page.title }}</span>
|
|
</div>
|
|
</a>
|
|
{% endif %}
|
|
{% if page.next_page %}
|
|
<a href="{{ page.next_page.url | url }}" class="md-nav__item md-nav__item--next">
|
|
<div class="md-nav__link-wrapper">
|
|
<span class="md-nav__direction">Next →</span>
|
|
<span class="md-nav__title">{{ page.next_page.title }}</span>
|
|
</div>
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</nav>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<footer class="md-footer">
|
|
<!-- Custom Footer Links Section -->
|
|
<div class="md-footer-custom">
|
|
<div class="md-footer-custom__inner md-grid">
|
|
<div class="md-footer-links">
|
|
{% for section_name, links in config.extra.footer_links.items() %}
|
|
<div class="md-footer-links__section">
|
|
<h4 class="md-footer-links__title">{{ section_name }}</h4>
|
|
<ul class="md-footer-links__list">
|
|
{% for link in links %}
|
|
<li class="md-footer-links__item">
|
|
<a href="{{ link.url }}" class="md-footer-links__link">
|
|
{{ link.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Company Information Section -->
|
|
<div class="md-footer-company">
|
|
<div class="md-footer-company__inner md-grid">
|
|
<div class="md-footer-company__content">
|
|
<div class="md-footer-company__brand">
|
|
<h3 class="md-footer-company__name">Swarms</h3>
|
|
<p class="md-footer-company__description">
|
|
Automating the world economy with multi-agent collaboration
|
|
</p>
|
|
</div>
|
|
<div class="md-footer-company__copyright">
|
|
<p>© 2024 Swarms. All rights reserved.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Original Material Footer -->
|
|
{{ super() }}
|
|
</footer>
|
|
{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
<style>
|
|
/* Enhanced Navigation Styling */
|
|
.md-footer__link {
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-height: 3rem;
|
|
}
|
|
|
|
.md-footer__link:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.md-footer__title {
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.md-footer__direction {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Light Mode Navigation */
|
|
[data-md-color-scheme="default"] .md-footer__link {
|
|
background: #f8f9fa;
|
|
border-color: #e9ecef;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer__link:hover {
|
|
background: #e9ecef;
|
|
border-color: #DC143C;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer__direction {
|
|
color: #DC143C;
|
|
}
|
|
|
|
/* Dark Mode Navigation */
|
|
[data-md-color-scheme="slate"] .md-footer__link {
|
|
background: #1F2129;
|
|
border-color: #404040;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer__link:hover {
|
|
background: #2a2d35;
|
|
border-color: #DC143C;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer__direction {
|
|
color: #DC143C;
|
|
}
|
|
|
|
/* Navigation Icons */
|
|
.md-footer__link .md-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
/* Path Navigation (Breadcrumbs) Enhancement */
|
|
.md-path {
|
|
margin-bottom: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-path {
|
|
background: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-path {
|
|
background: #1F2129;
|
|
border: 1px solid #404040;
|
|
}
|
|
|
|
.md-path__list {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.md-path__item {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.md-path__item:not(:last-child)::after {
|
|
content: "→";
|
|
margin-left: 0.5rem;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.md-path__link {
|
|
color: #DC143C;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.md-path__link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Enhanced Page Navigation Section */
|
|
.md-content__navigation {
|
|
margin: 3rem 0 2rem;
|
|
padding: 2rem 0;
|
|
border-top: 1px solid var(--md-default-fg-color--lightest);
|
|
}
|
|
|
|
.md-content__navigation .md-nav__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1.5rem;
|
|
color: #DC143C;
|
|
border-bottom: 2px solid #DC143C;
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__list {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1.5rem;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__item {
|
|
display: block;
|
|
margin: 0;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__item--previous {
|
|
grid-column: 1;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__item--next {
|
|
grid-column: 2;
|
|
text-align: right;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__link-wrapper {
|
|
display: block;
|
|
padding: 1.5rem;
|
|
border-radius: 0.75rem;
|
|
text-decoration: none;
|
|
transition: all 0.3s ease;
|
|
border: 2px solid transparent;
|
|
height: 100%;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__item:hover .md-nav__link-wrapper {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
|
|
border-color: #DC143C;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__direction {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
font-weight: 600;
|
|
color: #DC143C;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__title {
|
|
display: block;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Light Mode Enhanced Navigation */
|
|
[data-md-color-scheme="default"] .md-content__navigation {
|
|
background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-content__navigation .md-nav__link-wrapper {
|
|
background: #ffffff;
|
|
border-color: #e9ecef;
|
|
color: #495057;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-content__navigation .md-nav__item:hover .md-nav__link-wrapper {
|
|
background: #ffffff;
|
|
color: #212529;
|
|
}
|
|
|
|
/* Dark Mode Enhanced Navigation */
|
|
[data-md-color-scheme="slate"] .md-content__navigation {
|
|
background: linear-gradient(135deg, #1F2129 0%, #262932 100%);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-content__navigation .md-nav__link-wrapper {
|
|
background: #1F2129;
|
|
border-color: #404040;
|
|
color: #d1d5db;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-content__navigation .md-nav__item:hover .md-nav__link-wrapper {
|
|
background: #2a2d35;
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Responsive Design for Navigation */
|
|
@media screen and (max-width: 59.9375em) {
|
|
.md-content__navigation .md-nav__list {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.md-content__navigation .md-nav__item--previous,
|
|
.md-content__navigation .md-nav__item--next {
|
|
grid-column: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.md-content__navigation {
|
|
margin: 2rem 0 1rem;
|
|
padding: 1.5rem 0;
|
|
}
|
|
}
|
|
/* Custom Footer Styling - Base */
|
|
.md-footer-custom {
|
|
padding: 2.4rem 0 1.2rem;
|
|
border-top: 0.05rem solid var(--md-default-fg-color--lightest);
|
|
}
|
|
|
|
.md-footer-custom__inner {
|
|
margin: 0 auto;
|
|
padding: 0 1.2rem;
|
|
}
|
|
|
|
.md-footer-links {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 2rem;
|
|
max-width: 1220px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.md-footer-links__section {
|
|
min-width: 0;
|
|
}
|
|
|
|
.md-footer-links__title {
|
|
font-size: 0.64rem;
|
|
font-weight: 700;
|
|
margin: 0 0 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
padding-bottom: 0.4rem;
|
|
}
|
|
|
|
.md-footer-links__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.md-footer-links__item {
|
|
margin: 0;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.md-footer-links__link {
|
|
text-decoration: none;
|
|
font-size: 0.7rem;
|
|
display: block;
|
|
padding: 0.1rem 0;
|
|
transition: color 125ms;
|
|
border-radius: 0.1rem;
|
|
}
|
|
|
|
.md-footer-links__link:hover,
|
|
.md-footer-links__link:focus {
|
|
color: var(--md-accent-fg-color);
|
|
}
|
|
|
|
/* Light Mode (Default) */
|
|
[data-md-color-scheme="default"] .md-footer-custom {
|
|
background: #ffffff;
|
|
border-top-color: #e1e5e9;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-links__title {
|
|
color: #2e3440;
|
|
border-bottom: 0.05rem solid #e1e5e9;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-links__link {
|
|
color: #636c76;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-links__link:hover,
|
|
[data-md-color-scheme="default"] .md-footer-links__link:focus {
|
|
color: #1976d2;
|
|
}
|
|
|
|
/* Dark Mode (Slate) */
|
|
[data-md-color-scheme="slate"] .md-footer-custom {
|
|
background: #1F2129;
|
|
border-top-color: #404040;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-links__title {
|
|
color: #ffffff;
|
|
border-bottom: 0.05rem solid #404040;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-links__link {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-links__link:hover,
|
|
[data-md-color-scheme="slate"] .md-footer-links__link:focus {
|
|
color: #42a5f5;
|
|
}
|
|
|
|
/* Company Information Section - Base */
|
|
.md-footer-company {
|
|
padding: 1.5rem 0;
|
|
border-top: 0.05rem solid var(--md-default-fg-color--lightest);
|
|
}
|
|
|
|
.md-footer-company__inner {
|
|
margin: 0 auto;
|
|
padding: 0 1.2rem;
|
|
max-width: 1220px;
|
|
}
|
|
|
|
.md-footer-company__content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.md-footer-company__brand {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.md-footer-company__name {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.md-footer-company__description {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
line-height: 1.4;
|
|
font-style: italic;
|
|
}
|
|
|
|
.md-footer-company__copyright {
|
|
text-align: right;
|
|
}
|
|
|
|
.md-footer-company__copyright p {
|
|
margin: 0;
|
|
font-size: 0.7rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Company Section - Light Mode */
|
|
[data-md-color-scheme="default"] .md-footer-company {
|
|
background: #f8f9fa;
|
|
border-top-color: #e1e5e9;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-company__name {
|
|
color: #DC143C;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-company__description {
|
|
color: #495057;
|
|
}
|
|
|
|
[data-md-color-scheme="default"] .md-footer-company__copyright p {
|
|
color: #6c757d;
|
|
}
|
|
|
|
/* Company Section - Dark Mode */
|
|
[data-md-color-scheme="slate"] .md-footer-company {
|
|
background: #1F2129;
|
|
border-top-color: #404040;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-company__name {
|
|
color: #DC143C;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-company__description {
|
|
color: #d1d5db;
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-company__copyright p {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media screen and (max-width: 76.1875em) {
|
|
.md-footer-links {
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.md-footer-custom {
|
|
padding: 2rem 0 1rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 59.9375em) {
|
|
.md-footer-links {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 44.9375em) {
|
|
.md-footer-links {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.md-footer-custom {
|
|
padding: 1.5rem 0 0.8rem;
|
|
}
|
|
|
|
.md-footer-custom__inner {
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
/* Company section mobile styles */
|
|
.md-footer-company__content {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.md-footer-company__brand {
|
|
min-width: auto;
|
|
}
|
|
|
|
.md-footer-company__copyright {
|
|
text-align: center;
|
|
}
|
|
|
|
.md-footer-company__inner {
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
</style>
|
|
{% endblock %} |