Yacine Jernite commited on
Commit
0ad2b04
Β·
1 Parent(s): a08c68d

sizes and shorter intro

Browse files
Files changed (4) hide show
  1. index.html +1 -1
  2. js/components/Card.js +2 -2
  3. js/pages/HomePage.js +7 -10
  4. 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-lg xl:text-xl 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>
 
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
- class="group relative block border border-gray-300 rounded-lg overflow-hidden bg-white/95 shadow-sm hover:shadow-lg transition-all duration-200 h-64">
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.navTitle}</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>
 
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
- With the rapid evolution of Artificial Intelligence over the last five years – and particularly its shift from Machine Learning as a behind-the-scenes organizing principle of our digital infrastructure to the more visible "generative AI" systems sold as consumer products – the interaction modes between the technology and its social contexts have expanded drastically.
49
  </p>
50
 
51
  <p>
52
- Technology developers have a role to play in fostering more positive outcomes for these interactions; but they cannot be the sole deciders. However, for co-development to occur in meaningful ways between different kinds of stakeholders – with potentially diverging interests – it needs to be grounded in a common understanding of the technology and ability to investigate and modify technical systems. This is greatly facilitated by artificial intelligence models, datasets, and systems that are openly and collaboratively developed.
53
- </p>
54
-
55
- <p>
56
- In addition to the work of the entire ${createInlineLink('Hugging Face', 'https://huggingface.co', 'bg-yellow-100 text-yellow-800')} team to support the development and sharing of such systems, the ${createInlineLink('Machine Learning and Society Team', 'https://huggingface.co/hfmlsoc', 'bg-blue-100 text-blue-800')} works on projects targeting the boundaries between technology and society more specifically. This includes work on the ${createInlineLink('Sustainability', '/sustainability', areasData.sustainability.color, areasData.sustainability.description.short)} of the technology, addressing its financial and environmental costs and investigating methods to manage its footprint, work on how ${createInlineLink('Agency', '/agency', areasData.agency.color, areasData.agency.description.short)} over artificial intelligence systems (or lack thereof) plays out for individual and communities, and work on how the economic and regulatory ${createInlineLink('Ecosystems of AI', '/ecosystems', areasData.ecosystems.color, areasData.ecosystems.description.short)} shape who benefits most or least from the technology.
57
- </p>
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(255, 255, 255, 0.95);
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;