Upload 3 files
Browse files- js/cards/ArtifactSummaryCard.js +2 -2
- js/cards/HomeAreaCard.js +1 -1
- js/cards/ResourceCard.js +3 -3
js/cards/ArtifactSummaryCard.js
CHANGED
|
@@ -74,7 +74,7 @@ export function createArtifactSummaryCard(artifact, index) {
|
|
| 74 |
<!-- Background image -->
|
| 75 |
${backgroundImage ? `
|
| 76 |
<div class="absolute inset-0 opacity-10">
|
| 77 |
-
<img src="images/${backgroundImage}" alt="" class="w-full h-full object-cover">
|
| 78 |
</div>
|
| 79 |
` : ''}
|
| 80 |
|
|
@@ -129,7 +129,7 @@ export function createArtifactSummaryCard(artifact, index) {
|
|
| 129 |
${backgroundImage ? `
|
| 130 |
<div class="relative group/image">
|
| 131 |
<div class="w-12 h-12 rounded-lg overflow-hidden bg-gray-100 flex items-center justify-center cursor-help" title="${imageCredit}">
|
| 132 |
-
<img src="images/${backgroundImage}" alt="${primaryAreaData.name}" class="w-full h-full object-cover opacity-80">
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
` : ''}
|
|
|
|
| 74 |
<!-- Background image -->
|
| 75 |
${backgroundImage ? `
|
| 76 |
<div class="absolute inset-0 opacity-10">
|
| 77 |
+
<img src="/images/${backgroundImage}" alt="" class="w-full h-full object-cover">
|
| 78 |
</div>
|
| 79 |
` : ''}
|
| 80 |
|
|
|
|
| 129 |
${backgroundImage ? `
|
| 130 |
<div class="relative group/image">
|
| 131 |
<div class="w-12 h-12 rounded-lg overflow-hidden bg-gray-100 flex items-center justify-center cursor-help" title="${imageCredit}">
|
| 132 |
+
<img src="/images/${backgroundImage}" alt="${primaryAreaData.name}" class="w-full h-full object-cover opacity-80">
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
` : ''}
|
js/cards/HomeAreaCard.js
CHANGED
|
@@ -36,7 +36,7 @@ export function createHomeAreaCard(id, title, description, openness, subAreas, i
|
|
| 36 |
</div>
|
| 37 |
<div class="lg:w-1/3 bg-gray-100">
|
| 38 |
<div class="h-full flex flex-col items-center justify-center p-8">
|
| 39 |
-
<img src="images/${image}" alt="${imgAlt}" class="max-w-full max-h-full object-contain">
|
| 40 |
${attribution}
|
| 41 |
</div>
|
| 42 |
</div>
|
|
|
|
| 36 |
</div>
|
| 37 |
<div class="lg:w-1/3 bg-gray-100">
|
| 38 |
<div class="h-full flex flex-col items-center justify-center p-8">
|
| 39 |
+
<img src="/images/${image}" alt="${imgAlt}" class="max-w-full max-h-full object-contain">
|
| 40 |
${attribution}
|
| 41 |
</div>
|
| 42 |
</div>
|
js/cards/ResourceCard.js
CHANGED
|
@@ -54,7 +54,7 @@ export function createResourceCard(resource) {
|
|
| 54 |
<div class="resource-card-top h-48 bg-gradient-to-br from-${primaryColor}-50 to-${primaryColor}-100 relative overflow-hidden">
|
| 55 |
<!-- Background image for top section -->
|
| 56 |
<div class="absolute inset-0 opacity-10">
|
| 57 |
-
<img src="images/${primaryArea?.image || 'ai.png'}" alt="" class="w-full h-full object-cover">
|
| 58 |
</div>
|
| 59 |
|
| 60 |
<div class="relative z-10 p-4 h-full flex flex-col">
|
|
@@ -87,7 +87,7 @@ export function createResourceCard(resource) {
|
|
| 87 |
${subAreaTagsHtml}
|
| 88 |
</div>
|
| 89 |
<div class="w-8 h-8 rounded-full bg-white bg-opacity-50 flex items-center justify-center ml-3 flex-shrink-0">
|
| 90 |
-
<img src="images/${primaryArea?.image || 'ai.png'}" alt="" class="w-6 h-6 rounded-full object-cover">
|
| 91 |
</div>
|
| 92 |
</div>
|
| 93 |
</div>
|
|
@@ -107,7 +107,7 @@ export function createResourceCard(resource) {
|
|
| 107 |
<!-- Fallback with background image and text -->
|
| 108 |
<div class="w-full h-full relative overflow-hidden">
|
| 109 |
<div class="absolute inset-0 opacity-50">
|
| 110 |
-
<img src="images/${primaryArea?.image || 'ai.png'}" alt="" class="w-full h-full object-cover">
|
| 111 |
</div>
|
| 112 |
<div class="absolute inset-0 bg-black bg-opacity-20 flex items-center justify-center">
|
| 113 |
<div class="text-center text-white">
|
|
|
|
| 54 |
<div class="resource-card-top h-48 bg-gradient-to-br from-${primaryColor}-50 to-${primaryColor}-100 relative overflow-hidden">
|
| 55 |
<!-- Background image for top section -->
|
| 56 |
<div class="absolute inset-0 opacity-10">
|
| 57 |
+
<img src="/images/${primaryArea?.image || 'ai.png'}" alt="" class="w-full h-full object-cover">
|
| 58 |
</div>
|
| 59 |
|
| 60 |
<div class="relative z-10 p-4 h-full flex flex-col">
|
|
|
|
| 87 |
${subAreaTagsHtml}
|
| 88 |
</div>
|
| 89 |
<div class="w-8 h-8 rounded-full bg-white bg-opacity-50 flex items-center justify-center ml-3 flex-shrink-0">
|
| 90 |
+
<img src="/images/${primaryArea?.image || 'ai.png'}" alt="" class="w-6 h-6 rounded-full object-cover">
|
| 91 |
</div>
|
| 92 |
</div>
|
| 93 |
</div>
|
|
|
|
| 107 |
<!-- Fallback with background image and text -->
|
| 108 |
<div class="w-full h-full relative overflow-hidden">
|
| 109 |
<div class="absolute inset-0 opacity-50">
|
| 110 |
+
<img src="/images/${primaryArea?.image || 'ai.png'}" alt="" class="w-full h-full object-cover">
|
| 111 |
</div>
|
| 112 |
<div class="absolute inset-0 bg-black bg-opacity-20 flex items-center justify-center">
|
| 113 |
<div class="text-center text-white">
|