diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 00000000..28e4da88 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,99 @@ +/* Custom styles for DISCOVER Cookbook landing page */ + +/* Smooth transitions for theme switching */ +* { + transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; +} + +/* Enhanced card hover effects */ +.card { + transition: transform 0.2s ease, box-shadow 0.2s ease; +} + +.card:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); +} + +[data-bs-theme="dark"] .card:hover { + box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); +} + +/* Button enhancements */ +.btn { + transition: all 0.2s ease; +} + +.btn:hover { + transform: translateY(-1px); +} + +/* Navbar backdrop blur effect */ +.navbar { + backdrop-filter: blur(10px); + -webkit-backdrop-filter: blur(10px); +} + +/* Footer styling improvements */ +footer { + background: linear-gradient(135deg, #0d1117 0%, #161b22 100%); +} + +[data-bs-theme="light"] footer { + background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); + color: #212529 !important; +} + +/* Icon animations */ +.bi { + transition: transform 0.2s ease; +} + +.card:hover .bi { + transform: scale(1.1); +} + +/* Focus indicators for accessibility */ +.btn:focus, +.nav-link:focus { + outline: 2px solid #0d6efd; + outline-offset: 2px; +} + +[data-bs-theme="dark"] .btn:focus, +[data-bs-theme="dark"] .nav-link:focus { + outline-color: #6ea8fe; +} + +/* Responsive improvements */ +@media (max-width: 768px) { + .display-4 { + font-size: 2rem; + } + + .lead { + font-size: 1rem; + } +} + +/* Loading animation for theme switch */ +.theme-logo { + transition: opacity 0.3s ease; +} + +/* Skip link for accessibility */ +.skip-link { + position: absolute; + top: -40px; + left: 6px; + background: #0d6efd; + color: white; + padding: 8px; + text-decoration: none; + border-radius: 4px; + z-index: 1000; +} + +.skip-link:focus { + top: 6px; +} \ No newline at end of file diff --git a/index.html b/index.html index 028f3ce2..f791e43b 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ +
+ + Skip to main content