update team page
This commit is contained in:
@@ -6,74 +6,7 @@
|
||||
<title>{% block title %}Zola with Tailwind CSS{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{{ get_url(path='css/main.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='css/dropdown.css') }}">
|
||||
<style>
|
||||
/* Light mode (default) */
|
||||
body {
|
||||
background-color: #f3f4f6;
|
||||
color: #1f2937;
|
||||
}
|
||||
header nav {
|
||||
background-color: #1f2937;
|
||||
color: #f9fafb;
|
||||
}
|
||||
footer {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
footer p {
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
/* Dark mode */
|
||||
html.dark body {
|
||||
background-color: #111827 !important;
|
||||
color: #f9fafb !important;
|
||||
}
|
||||
html.dark header nav {
|
||||
background-color: #1f2937 !important;
|
||||
}
|
||||
html.dark footer {
|
||||
background-color: #1f2937 !important;
|
||||
}
|
||||
html.dark footer p {
|
||||
color: #9ca3af !important;
|
||||
}
|
||||
html.dark a {
|
||||
color: #60a5fa !important;
|
||||
}
|
||||
html.dark a:hover {
|
||||
color: #93c5fd !important;
|
||||
}
|
||||
html.dark .bg-gray-100 {
|
||||
background-color: #111827 !important;
|
||||
}
|
||||
html.dark .bg-white {
|
||||
background-color: #1f2937 !important;
|
||||
}
|
||||
html.dark .text-gray-900 {
|
||||
color: #f9fafb !important;
|
||||
}
|
||||
html.dark .text-gray-500 {
|
||||
color: #9ca3af !important;
|
||||
}
|
||||
html.dark .border-gray-200 {
|
||||
border-color: #374151 !important;
|
||||
}
|
||||
html.dark button.bg-gray-800 {
|
||||
background-color: #111827 !important;
|
||||
}
|
||||
html.dark button.hover\:bg-gray-700:hover {
|
||||
background-color: #374151 !important;
|
||||
}
|
||||
|
||||
/* Transition effects */
|
||||
html.transition,
|
||||
html.transition *,
|
||||
html.transition *:before,
|
||||
html.transition *:after {
|
||||
transition: all 0.3s ease-in-out !important;
|
||||
transition-delay: 0 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="{{ get_url(path='js/main.js') }}" defer></script>
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
|
@@ -27,7 +27,7 @@
|
||||
</div>
|
||||
|
||||
{% if section is defined and section.pages is defined %}
|
||||
<div class="mt-8 grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
<!-- <div class="mt-8 grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
{% for page in section.pages %}
|
||||
<a href="{{ page.permalink }}" class="bg-white overflow-hidden shadow rounded-lg hover:shadow-lg transition-shadow duration-300">
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
@@ -41,6 +41,6 @@
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div> -->
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
@@ -27,6 +27,7 @@
|
||||
</div> -->
|
||||
|
||||
<a href="{{ get_url(path='blog') }}" class="{% if current_path is starting_with('/blog') %}bg-gray-900 text-white{% else %}text-gray-300 hover:bg-gray-700 hover:text-white{% endif %} px-3 py-2 rounded-md text-sm font-medium">Blog</a>
|
||||
<a href="{{ get_url(path='team') }}" class="{% if current_path is starting_with('/team') %}bg-gray-900 text-white{% else %}text-gray-300 hover:bg-gray-700 hover:text-white{% endif %} px-3 py-2 rounded-md text-sm font-medium">Team</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -90,6 +91,7 @@
|
||||
</div> -->
|
||||
|
||||
<a href="{{ get_url(path='blog') }}" class="{% if current_path is starting_with('/blog') %}bg-gray-900 text-white{% else %}text-gray-300 hover:bg-gray-700 hover:text-white{% endif %} block px-3 py-2 rounded-md text-base font-medium">Blog</a>
|
||||
<a href="{{ get_url(path='team') }}" class="{% if current_path is starting_with('/team') %}bg-gray-900 text-white{% else %}text-gray-300 hover:bg-gray-700 hover:text-white{% endif %} block px-3 py-2 rounded-md text-base font-medium">Team</a>
|
||||
<a href="https://github.com/getzola/zola" target="_blank" rel="noopener" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Zola Docs</a>
|
||||
<button id="mobile-theme-toggle" type="button" class="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium w-full text-left flex items-center">
|
||||
<span>Toggle Dark Mode</span>
|
||||
|
@@ -25,11 +25,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-8 grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
<div class="container mx-auto mt-8 grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
{% for page in section.pages %}
|
||||
<a href="{{ page.permalink }}" class="bg-white overflow-hidden shadow rounded-lg hover:shadow-lg transition-shadow duration-300">
|
||||
{% if page.extra.image %}
|
||||
<div class="h-48 w-full overflow-hidden">
|
||||
<div class="h-64 w-full overflow-hidden">
|
||||
<img src="{{ page.extra.image }}" alt="{{ page.title }}" class="w-full h-full object-cover">
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -39,7 +39,9 @@
|
||||
<p class="mt-1 text-sm text-gray-500">{{ page.description }}</p>
|
||||
{% endif %}
|
||||
<div class="mt-4 flex items-center text-sm text-gray-500">
|
||||
<span>{{ page.date | date(format="%B %e, %Y") }}</span>
|
||||
{% if page.date %}
|
||||
<span>{{ page.date | date(format="%B %e, %Y") }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user