Upload index.html
Browse files- index.html +124 -45
index.html
CHANGED
|
@@ -5,7 +5,21 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Machine Learning and Society at 🤗</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
/* Only essential custom styles for dropdowns */
|
| 10 |
.dropdown-hover:hover .dropdown-content {
|
| 11 |
opacity: 1;
|
|
@@ -44,64 +58,118 @@
|
|
| 44 |
display: none;
|
| 45 |
}
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
</head>
|
| 49 |
-
<body class="bg-gray-50">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
<!-- Top Navigation -->
|
| 51 |
-
<header class="bg-white shadow-sm border-b border-gray-200 fixed top-0 left-0 right-0 z-50">
|
| 52 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 53 |
<!-- First Line: Main Title -->
|
| 54 |
-
<div class="text-center py-
|
| 55 |
-
<h1 class="text-
|
| 56 |
</div>
|
| 57 |
|
| 58 |
<!-- Second Line: Navigation -->
|
| 59 |
-
<nav class="flex justify-between items-center h-
|
| 60 |
<div class="flex items-center">
|
| 61 |
<button id="sidebar-toggle" class="p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-colors">
|
| 62 |
-
<svg
|
| 63 |
-
<path stroke-linecap="round" stroke-linejoin="round"
|
| 64 |
-
</svg>
|
| 65 |
</button>
|
| 66 |
-
<a href="/" class="text-blue-600 bg-blue-50 px-
|
| 67 |
|
| 68 |
<!-- Visual separator -->
|
| 69 |
<div class="mx-6 h-6 w-px bg-gray-300"></div>
|
| 70 |
|
| 71 |
<!-- Research Areas -->
|
| 72 |
-
<div class="flex items-
|
| 73 |
-
<div class="relative dropdown-hover
|
| 74 |
-
<a href="/efficiency#overview" class="text-
|
| 75 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 76 |
-
<a href="/efficiency#environment" class="block text-
|
| 77 |
-
<a href="/efficiency#measuring" class="block text-
|
| 78 |
-
<a href="/efficiency#efficient" class="block text-
|
| 79 |
</div>
|
| 80 |
</div>
|
| 81 |
|
| 82 |
-
<div class="relative dropdown-hover
|
| 83 |
-
<a href="/personal#overview" class="text-
|
| 84 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 85 |
-
<a href="/personal#interaction" class="block text-
|
| 86 |
-
<a href="/personal#privacy" class="block text-
|
| 87 |
</div>
|
| 88 |
</div>
|
| 89 |
|
| 90 |
-
<div class="relative dropdown-hover
|
| 91 |
-
<a href="/rights#overview" class="text-
|
| 92 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 93 |
-
<a href="/rights#general" class="block text-
|
| 94 |
-
<a href="/rights#specific" class="block text-
|
| 95 |
-
<a href="/rights#open" class="block text-
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
-
<div class="relative dropdown-hover
|
| 100 |
-
<a href="/ecosystems#overview" class="text-
|
| 101 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 102 |
-
<a href="/ecosystems#labor" class="block text-
|
| 103 |
-
<a href="/ecosystems#power" class="block text-
|
| 104 |
-
<a href="/ecosystems#usage" class="block text-
|
| 105 |
</div>
|
| 106 |
</div>
|
| 107 |
</div>
|
|
@@ -111,11 +179,11 @@
|
|
| 111 |
<!-- Visual separator -->
|
| 112 |
<div class="mx-6 h-6 w-px bg-gray-300"></div>
|
| 113 |
|
| 114 |
-
<a href="/about" class="text-gray-700 hover:text-blue-600 px-4 py-2 rounded-md text-
|
| 115 |
<button id="search-toggle" class="p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-colors ml-3">
|
| 116 |
-
<svg
|
| 117 |
-
<path stroke-linecap="round" stroke-linejoin="round"
|
| 118 |
-
</svg>
|
| 119 |
</button>
|
| 120 |
</div>
|
| 121 |
</nav>
|
|
@@ -123,14 +191,12 @@
|
|
| 123 |
</header>
|
| 124 |
|
| 125 |
<!-- Main Layout -->
|
| 126 |
-
<div class="flex" style="padding-top:
|
| 127 |
<!-- Left Sidebar - Page Navigation -->
|
| 128 |
-
<aside id="left-sidebar" class="fixed left-0 h-full w-64 bg-white shadow-sm border-r border-gray-200 overflow-y-auto transition-transform duration-300" style="top:
|
| 129 |
-
<!-- Sidebar content will be populated by the router -->
|
| 130 |
-
</aside>
|
| 131 |
|
| 132 |
<!-- Main Content -->
|
| 133 |
-
<main class="flex-1 transition-all duration-300" id="main-content" style="margin-left: 256px;">
|
| 134 |
<div class="max-w-4xl mx-auto px-6 py-8">
|
| 135 |
<!-- Content will be loaded dynamically by the SPA router -->
|
| 136 |
<div class="bg-white rounded-lg shadow-sm p-8">
|
|
@@ -143,9 +209,7 @@
|
|
| 143 |
</main>
|
| 144 |
|
| 145 |
<!-- Right Sidebar - Search (Collapsible) -->
|
| 146 |
-
<aside id="search-sidebar" class="fixed right-0 h-full w-80 bg-white shadow-sm border-l border-gray-200 transform translate-x-full z-40 transition-transform duration-300" style="top:
|
| 147 |
-
<div class="p-4">
|
| 148 |
-
<div class="flex items-center justify-between mb-4">
|
| 149 |
<h3 class="text-lg font-semibold text-gray-900">Search</h3>
|
| 150 |
<button id="search-close" class="p-1 rounded-md text-gray-400 hover:text-gray-500 transition-colors">
|
| 151 |
<svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
@@ -153,15 +217,29 @@
|
|
| 153 |
</svg>
|
| 154 |
</button>
|
| 155 |
</div>
|
| 156 |
-
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
</div>
|
| 159 |
</div>
|
| 160 |
</aside>
|
| 161 |
</div>
|
| 162 |
|
| 163 |
<!-- Overlay for mobile -->
|
| 164 |
-
<div id="sidebar-overlay" class="fixed inset-0 bg-black bg-opacity-
|
| 165 |
|
| 166 |
<!-- Scroll to Top Button -->
|
| 167 |
<button id="scroll-to-top" class="fixed bottom-6 right-6 w-12 h-12 bg-blue-600 hover:bg-blue-700 text-white rounded-full shadow-lg hover:shadow-xl transition-all duration-300 opacity-0 invisible z-50 flex items-center justify-center group">
|
|
@@ -171,6 +249,7 @@
|
|
| 171 |
<span class="sr-only">Scroll to top</span>
|
| 172 |
</button>
|
| 173 |
|
|
|
|
| 174 |
<script type="module" src="js/main.js"></script>
|
| 175 |
</body>
|
| 176 |
</html>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Machine Learning and Society at 🤗</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<!-- Google Fonts Import -->
|
| 9 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 11 |
+
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Source+Sans+Pro:wght@400;600&display=swap" rel="stylesheet">
|
| 12 |
+
|
| 13 |
<style>
|
| 14 |
+
/* Apply fonts to base elements */
|
| 15 |
+
body {
|
| 16 |
+
font-family: 'Source Sans Pro', sans-serif;
|
| 17 |
+
--header-height: 150px; /* Define header height as a CSS variable, adjusted for larger title */
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
h1, h2, h3, h4, h5, h6 {
|
| 21 |
+
font-family: 'Montserrat', sans-serif;
|
| 22 |
+
}
|
| 23 |
/* Only essential custom styles for dropdowns */
|
| 24 |
.dropdown-hover:hover .dropdown-content {
|
| 25 |
opacity: 1;
|
|
|
|
| 58 |
display: none;
|
| 59 |
}
|
| 60 |
|
| 61 |
+
/* Search results scrolling */
|
| 62 |
+
#search-results {
|
| 63 |
+
scrollbar-width: thin;
|
| 64 |
+
scrollbar-color: #cbd5e0 #f7fafc;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
#search-results::-webkit-scrollbar {
|
| 68 |
+
width: 6px;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
#search-results::-webkit-scrollbar-track {
|
| 72 |
+
background: #f7fafc;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
#search-results::-webkit-scrollbar-thumb {
|
| 76 |
+
background: #cbd5e0;
|
| 77 |
+
border-radius: 3px;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
#search-results::-webkit-scrollbar-thumb:hover {
|
| 81 |
+
background: #a0aec0;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/* Overall background styling */
|
| 85 |
+
#overall-background {
|
| 86 |
+
background-attachment: fixed;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
/* Semi-transparent overlays for header and sidebars */
|
| 90 |
+
header, #left-sidebar, #search-sidebar {
|
| 91 |
+
background: rgba(255, 255, 255, 0.6);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
/* Ensure content is readable over background */
|
| 95 |
+
header *, #left-sidebar *, #search-sidebar * {
|
| 96 |
+
position: relative;
|
| 97 |
+
z-index: 1;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
</style>
|
| 101 |
</head>
|
| 102 |
+
<body class="bg-gray-50 text-gray-800">
|
| 103 |
+
<!-- Overall Background Image - Only for header and sidebars -->
|
| 104 |
+
<div id="overall-background" class="fixed opacity-100 z-40 pointer-events-none" style="top: 0; left: 0; right: 0; height: var(--header-height);">
|
| 105 |
+
<img src="images/background_ai.png" alt="" class="w-full h-full object-cover object-top">
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<!-- Left Sidebar Background -->
|
| 109 |
+
<div id="left-sidebar-background" class="fixed opacity-60 z-0 pointer-events-none" style="top: 0; left: 0; right: 0; width: 256px; bottom: 0;">
|
| 110 |
+
<img src="images/background_ai.png" alt="" class="w-full h-full object-cover object-left">
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<!-- Right Sidebar Background (when open) -->
|
| 114 |
+
<div id="right-sidebar-background" class="fixed opacity-60 z-0 pointer-events-none hidden" style="top: var(--header-height); right: 0; width: 320px; bottom: 0;">
|
| 115 |
+
<img src="images/background_ai.png" alt="" class="w-full h-full object-cover object-right">
|
| 116 |
+
</div>
|
| 117 |
+
|
| 118 |
<!-- Top Navigation -->
|
| 119 |
+
<header class="bg-white/60 shadow-sm border-b border-gray-200 fixed top-0 left-0 right-0 z-50">
|
| 120 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 121 |
<!-- First Line: Main Title -->
|
| 122 |
+
<div class="text-center py-6 border-b border-gray-100">
|
| 123 |
+
<h1 class="text-3xl font-bold text-gray-800">Machine Learning and Society at 🤗</h1>
|
| 124 |
</div>
|
| 125 |
|
| 126 |
<!-- Second Line: Navigation -->
|
| 127 |
+
<nav class="flex justify-between items-center h-16">
|
| 128 |
<div class="flex items-center">
|
| 129 |
<button id="sidebar-toggle" class="p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-colors">
|
| 130 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 131 |
+
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
| 132 |
+
</svg>
|
| 133 |
</button>
|
| 134 |
+
<a href="/" class="text-blue-600 bg-blue-50 px-5 py-2 rounded-md text-base font-medium ml-6"><b>Home</b></a>
|
| 135 |
|
| 136 |
<!-- Visual separator -->
|
| 137 |
<div class="mx-6 h-6 w-px bg-gray-300"></div>
|
| 138 |
|
| 139 |
<!-- Research Areas -->
|
| 140 |
+
<div class="flex items-left space-x-6 justify-left">
|
| 141 |
+
<div class="relative dropdown-hover">
|
| 142 |
+
<a href="/efficiency#overview" class="text-base text-center text-gray-700 hover:text-blue-600 font-medium px-4 py-2 rounded-md transition-colors block hover:bg-gray-50"><b>Efficiency, Costs, and Environment</b></a>
|
| 143 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 144 |
+
<a href="/efficiency#environment" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Environmental impact</a>
|
| 145 |
+
<a href="/efficiency#measuring" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Energy & financial costs</a>
|
| 146 |
+
<a href="/efficiency#efficient" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Compute efficiency</a>
|
| 147 |
</div>
|
| 148 |
</div>
|
| 149 |
|
| 150 |
+
<div class="relative dropdown-hover">
|
| 151 |
+
<a href="/personal#overview" class="text-base text-center text-gray-700 hover:text-blue-600 font-medium px-4 py-2 rounded-md transition-colors block hover:bg-gray-50"><b>Consent and Personal Interactions</b></a>
|
| 152 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 153 |
+
<a href="/personal#interaction" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Personal interactions</a>
|
| 154 |
+
<a href="/personal#privacy" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Consent & privacy</a>
|
| 155 |
</div>
|
| 156 |
</div>
|
| 157 |
|
| 158 |
+
<div class="relative dropdown-hover">
|
| 159 |
+
<a href="/rights#overview" class="text-base text-center text-gray-700 hover:text-blue-600 font-medium px-4 py-2 rounded-md transition-colors block hover:bg-gray-50"><b>Rights and Regulations</b></a>
|
| 160 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 161 |
+
<a href="/rights#general" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Existing regulation</a>
|
| 162 |
+
<a href="/rights#specific" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">AI-specific regulation</a>
|
| 163 |
+
<a href="/rights#open" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Open-source in regulation</a>
|
| 164 |
</div>
|
| 165 |
</div>
|
| 166 |
|
| 167 |
+
<div class="relative dropdown-hover">
|
| 168 |
+
<a href="/ecosystems#overview" class="text-base text-center text-gray-700 hover:text-blue-600 font-medium px-4 py-2 rounded-md transition-colors block hover:bg-gray-50"><b>Socio-economic and Technical Ecosystems</b></a>
|
| 169 |
<div class="dropdown-content bg-white shadow-lg rounded-lg p-4 min-w-48 top-full left-0">
|
| 170 |
+
<a href="/ecosystems#labor" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Labor impacts</a>
|
| 171 |
+
<a href="/ecosystems#power" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">Power & monopolies</a>
|
| 172 |
+
<a href="/ecosystems#usage" class="block text-md text-gray-600 hover:text-blue-600 py-1 transition-colors">AI usage patterns</a>
|
| 173 |
</div>
|
| 174 |
</div>
|
| 175 |
</div>
|
|
|
|
| 179 |
<!-- Visual separator -->
|
| 180 |
<div class="mx-6 h-6 w-px bg-gray-300"></div>
|
| 181 |
|
| 182 |
+
<a href="/about" class="text-gray-700 hover:text-blue-600 px-4 py-2 rounded-md text-base font-medium transition-colors block hover:bg-gray-50"><b>Resources & Press</b></a>
|
| 183 |
<button id="search-toggle" class="p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 transition-colors ml-3">
|
| 184 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 185 |
+
<path stroke-linecap="round" stroke-linejoin="round" d="m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" />
|
| 186 |
+
</svg>
|
| 187 |
</button>
|
| 188 |
</div>
|
| 189 |
</nav>
|
|
|
|
| 191 |
</header>
|
| 192 |
|
| 193 |
<!-- Main Layout -->
|
| 194 |
+
<div id="main-layout" class="flex" style="padding-top: var(--header-height);">
|
| 195 |
<!-- Left Sidebar - Page Navigation -->
|
| 196 |
+
<aside id="left-sidebar" class="fixed left-0 h-full w-64 bg-white/85 shadow-sm border-r border-gray-200 overflow-y-auto transition-transform duration-300 z-10" style="top: var(--header-height);"> </aside>
|
|
|
|
|
|
|
| 197 |
|
| 198 |
<!-- Main Content -->
|
| 199 |
+
<main class="flex-1 transition-all duration-300" id="main-content" style="margin-left: 256px; padding-left: 1rem; padding-right: 1rem;">
|
| 200 |
<div class="max-w-4xl mx-auto px-6 py-8">
|
| 201 |
<!-- Content will be loaded dynamically by the SPA router -->
|
| 202 |
<div class="bg-white rounded-lg shadow-sm p-8">
|
|
|
|
| 209 |
</main>
|
| 210 |
|
| 211 |
<!-- Right Sidebar - Search (Collapsible) -->
|
| 212 |
+
<aside id="search-sidebar" class="fixed right-0 h-full w-80 bg-white/85 backdrop-blur-sm shadow-sm border-l border-gray-200 transform translate-x-full z-40 transition-transform duration-300" style="top: var(--header-height);"> <div class="flex items-center justify-between mb-4">
|
|
|
|
|
|
|
| 213 |
<h3 class="text-lg font-semibold text-gray-900">Search</h3>
|
| 214 |
<button id="search-close" class="p-1 rounded-md text-gray-400 hover:text-gray-500 transition-colors">
|
| 215 |
<svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
|
|
| 217 |
</svg>
|
| 218 |
</button>
|
| 219 |
</div>
|
| 220 |
+
|
| 221 |
+
<!-- Search Input -->
|
| 222 |
+
<div class="mb-4">
|
| 223 |
+
<input
|
| 224 |
+
type="text"
|
| 225 |
+
id="search-input"
|
| 226 |
+
placeholder="Search artifacts and resources..."
|
| 227 |
+
class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
|
| 228 |
+
>
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
<!-- Search Results - Fixed height with proper scrolling -->
|
| 232 |
+
<div id="search-results" class="overflow-y-auto" style="height: calc(100vh - 193px);">
|
| 233 |
+
<div class="text-gray-500 text-center py-8">
|
| 234 |
+
<p>Enter a search term to find artifacts and resources...</p>
|
| 235 |
+
</div>
|
| 236 |
</div>
|
| 237 |
</div>
|
| 238 |
</aside>
|
| 239 |
</div>
|
| 240 |
|
| 241 |
<!-- Overlay for mobile -->
|
| 242 |
+
<div id="sidebar-overlay" class="fixed inset-0 bg-black bg-opacity-30 z-30 hidden"></div>
|
| 243 |
|
| 244 |
<!-- Scroll to Top Button -->
|
| 245 |
<button id="scroll-to-top" class="fixed bottom-6 right-6 w-12 h-12 bg-blue-600 hover:bg-blue-700 text-white rounded-full shadow-lg hover:shadow-xl transition-all duration-300 opacity-0 invisible z-50 flex items-center justify-center group">
|
|
|
|
| 249 |
<span class="sr-only">Scroll to top</span>
|
| 250 |
</button>
|
| 251 |
|
| 252 |
+
<script src="https://cdn.jsdelivr.net/npm/minisearch@6.0.1/dist/umd/index.js"></script>
|
| 253 |
<script type="module" src="js/main.js"></script>
|
| 254 |
</body>
|
| 255 |
</html>
|