Yacine Jernite
commited on
Commit
Β·
0ad2b04
1
Parent(s):
a08c68d
sizes and shorter intro
Browse files- index.html +1 -1
- js/components/Card.js +2 -2
- js/pages/HomePage.js +7 -10
- styles.css +1 -1
index.html
CHANGED
|
@@ -95,7 +95,7 @@
|
|
| 95 |
<div class="h-full flex items-stretch">
|
| 96 |
<!-- Left: Title as Home Link (always two lines) -->
|
| 97 |
<div class="flex items-center justify-between flex-1 xl:flex-initial border-r-0 xl:border-r border-gray-300 px-4 xl:px-6">
|
| 98 |
-
<a href="/" class="text-
|
| 99 |
<span class="block">Machine Learning</span>
|
| 100 |
<span class="block">and Society at π€</span>
|
| 101 |
</a>
|
|
|
|
| 95 |
<div class="h-full flex items-stretch">
|
| 96 |
<!-- Left: Title as Home Link (always two lines) -->
|
| 97 |
<div class="flex items-center justify-between flex-1 xl:flex-initial border-r-0 xl:border-r border-gray-300 px-4 xl:px-6">
|
| 98 |
+
<a href="/" class="text-xl xl:text-2xl font-bold text-gray-800 leading-tight hover:text-blue-600 transition-colors">
|
| 99 |
<span class="block">Machine Learning</span>
|
| 100 |
<span class="block">and Society at π€</span>
|
| 101 |
</a>
|
js/components/Card.js
CHANGED
|
@@ -197,7 +197,7 @@ function renderAreaCard(area, options = {}) {
|
|
| 197 |
|
| 198 |
return `
|
| 199 |
<a href="/${area.id}"
|
| 200 |
-
|
| 201 |
|
| 202 |
<!-- Background image with low opacity -->
|
| 203 |
${area.image ? `
|
|
@@ -210,7 +210,7 @@ function renderAreaCard(area, options = {}) {
|
|
| 210 |
<div class="relative p-5 h-full flex flex-col">
|
| 211 |
<!-- Header -->
|
| 212 |
<div class="flex justify-between items-start mb-3 flex-shrink-0">
|
| 213 |
-
<h3 class="text-xl font-bold text-gray-900 leading-tight">${area.
|
| 214 |
<svg class="w-5 h-5 text-gray-400 group-hover:text-blue-600 transition-colors flex-shrink-0 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 215 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
| 216 |
</svg>
|
|
|
|
| 197 |
|
| 198 |
return `
|
| 199 |
<a href="/${area.id}"
|
| 200 |
+
class="group relative block border border-gray-300 rounded-lg overflow-hidden bg-white/95 shadow-sm hover:shadow-lg transition-all duration-200 min-h-80">
|
| 201 |
|
| 202 |
<!-- Background image with low opacity -->
|
| 203 |
${area.image ? `
|
|
|
|
| 210 |
<div class="relative p-5 h-full flex flex-col">
|
| 211 |
<!-- Header -->
|
| 212 |
<div class="flex justify-between items-start mb-3 flex-shrink-0">
|
| 213 |
+
<h3 class="text-xl font-bold text-gray-900 leading-tight">${area.title}</h3>
|
| 214 |
<svg class="w-5 h-5 text-gray-400 group-hover:text-blue-600 transition-colors flex-shrink-0 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 215 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
| 216 |
</svg>
|
js/pages/HomePage.js
CHANGED
|
@@ -45,19 +45,16 @@ export function renderHomePage() {
|
|
| 45 |
|
| 46 |
<div class="space-y-2 text-gray-900 leading-relaxed mb-8">
|
| 47 |
<p>
|
| 48 |
-
|
| 49 |
</p>
|
| 50 |
|
| 51 |
<p>
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
<p>
|
| 60 |
-
This work is shaped by different aspects of openness, from transparency to collaboration to ease of access. Beyond producing research and tools that we hope will support more distributed development of the technology, we strongly invite collaborations on shared resources with all categories of expertise.
|
| 61 |
</p>
|
| 62 |
</div>
|
| 63 |
|
|
|
|
| 45 |
|
| 46 |
<div class="space-y-2 text-gray-900 leading-relaxed mb-8">
|
| 47 |
<p>
|
| 48 |
+
Artificial Intelligence has evolved rapidly over the past five years: from a largely hidden infrastructure to a visible, consumer-facing force driven by generative systems that now shape everyday interactions. This change has expanded how AI interacts with society, making shared understanding and collaborative engagement β outside of the control of a limited set of developers who control data flows β more critical. Openly accessible models, documented datasets, and reproducible workflows support broader investigation, informed dialogue, and iterative improvement across diverse stakeholders with different interests.
|
| 49 |
</p>
|
| 50 |
|
| 51 |
<p>
|
| 52 |
+
In the broader context of ${createInlineLink('Hugging Face', 'https://huggingface.co', 'bg-yellow-100 text-yellow-800')}'s efforts to support the open sharing and development of AI systems,
|
| 53 |
+
the ${createInlineLink('Machine Learning and Society Team', 'https://huggingface.co/hfmlsoc', 'bg-blue-100 text-blue-800')} works on projects targeting topics at the boundary between technology and society.
|
| 54 |
+
These include measuring and improving the ${createInlineLink('Sustainability', '/sustainability', areasData.sustainability.color, areasData.sustainability.description.short)} of the technology,
|
| 55 |
+
characterizing and supporting the ${createInlineLink('Agency', '/agency', areasData.agency.color, areasData.agency.description.short)} of individual and communities in their interactions with AI,
|
| 56 |
+
and understanding the economic and regulatory ${createInlineLink('Ecosystems of AI', '/ecosystems', areasData.ecosystems.color, areasData.ecosystems.description.short)} that shape who benefits from the technology.
|
| 57 |
+
Our approach is rooted in open production of research and tools, and we actively invite partners from all areas of expertise to reach out and collaborate.
|
|
|
|
|
|
|
|
|
|
| 58 |
</p>
|
| 59 |
</div>
|
| 60 |
|
styles.css
CHANGED
|
@@ -201,7 +201,7 @@ p {
|
|
| 201 |
}
|
| 202 |
|
| 203 |
.page-navigation.sticky-nav #nav-container {
|
| 204 |
-
background: rgba(
|
| 205 |
backdrop-filter: blur(16px);
|
| 206 |
-webkit-backdrop-filter: blur(16px);
|
| 207 |
padding: 0.75rem 1.5rem;
|
|
|
|
| 201 |
}
|
| 202 |
|
| 203 |
.page-navigation.sticky-nav #nav-container {
|
| 204 |
+
background: rgba(222, 241, 243, 0.3);
|
| 205 |
backdrop-filter: blur(16px);
|
| 206 |
-webkit-backdrop-filter: blur(16px);
|
| 207 |
padding: 0.75rem 1.5rem;
|