Skip to content

Commit d35396f

Browse files
authored
Merge pull request #50 from 2listic/49-find-better-icons
add new icons library + make cards more catchy
2 parents e674a5f + 1223f06 commit d35396f

3 files changed

Lines changed: 36 additions & 18 deletions

File tree

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@astrojs/mdx": "^4.3.8",
1717
"@astrojs/sitemap": "^3.6.0",
1818
"@fontsource-variable/inter": "^5.0.15",
19+
"@iconify-json/material-symbols-light": "^1.2.46",
1920
"@iconify-json/uil": "^1.2.3",
2021
"@tailwindcss/typography": "^0.5.10",
2122
"@tailwindcss/vite": "^4.1.16",

src/components/features.astro

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const features = [
99
title: "User-Centric Design",
1010
description:
1111
"Coral enables to create and manage Digital Twins effortlessly.",
12-
icon: "uil:smile",
12+
icon: "material-symbols-light:face",
1313
},
1414
{
1515
title: "Next-Generation Platform",
@@ -47,7 +47,7 @@ const coralComponents = [
4747
type: "Design",
4848
title: "Coral Build",
4949
description: "No-code building and admin GUI",
50-
icon: "uil:pen",
50+
icon: "material-symbols-light:graph-3",
5151
rowStart: 1,
5252
backDescription: "Design and manage your digital replica easily with our no-code graphical interface",
5353
buttonCssClass: "flex",
@@ -57,7 +57,7 @@ const coralComponents = [
5757
type: "Ingest",
5858
title: "Coral IoT",
5959
description: "Sensor data gateway",
60-
icon: "uil:plane-arrival",
60+
icon: "material-symbols-light:settings-input-component-outline-rounded",
6161
rowStart: 2,
6262
backDescription: "Feed your digital twin with real-time data using our powerful gateway",
6363
buttonCssClass: "hidden",
@@ -67,7 +67,7 @@ const coralComponents = [
6767
type: "Orchestrate",
6868
title: "Coral Core",
6969
description: "Orchestrator and data manager",
70-
icon: "uil:constructor",
70+
icon: "material-symbols-light:crossword-outline-rounded",
7171
rowStart: 1,
7272
backDescription: "Efficiently provide resources for heavy computations and conveniently manage data",
7373
buttonCssClass: "flex",
@@ -77,7 +77,7 @@ const coralComponents = [
7777
type: "Simulate",
7878
title: "Coral Sim/AI",
7979
description: "Simulation and AI engine",
80-
icon: "uil:heartbeat",
80+
icon: "material-symbols-light:ecg-heart-outline",
8181
rowStart: 2,
8282
backDescription: "Generate trustworthy results using state-of-the-art AI and simulation techniques",
8383
buttonCssClass: "flex",
@@ -87,7 +87,7 @@ const coralComponents = [
8787
type: "Visualize",
8888
title: "Coral Viz",
8989
description: "3D visualization with XR/VR",
90-
icon: "uil:cube",
90+
icon: "material-symbols-light:visibility-outline-rounded",
9191
rowStart: 1,
9292
backDescription: "Leverage the power of 3D visualization to explore your digital replica",
9393
buttonCssClass: "flex",
@@ -114,8 +114,8 @@ const coralComponents = [
114114
features.map((item) => (
115115
<div class="max-w-sm flex flex-col lg:gap-1 mx-2">
116116
<div class="flex gap-4 items-end">
117-
<div class="mt-1 bg-black rounded-full p-2 w-8 h-8 shrink-0">
118-
<Icon class="text-white" name={item.icon} />
117+
<div class="mt-1 bg-gray-800 rounded-full p-2 w-10 h-10 shrink-0">
118+
<Icon class="text-center text-white w-6 h-6" name={item.icon} />
119119
</div>
120120
<div class="font-semibold text-lg">{item.title}</div>{" "}
121121
</div>
@@ -136,21 +136,24 @@ const coralComponents = [
136136
<div class="flip-card-inner">
137137

138138
<!--front -->
139-
<div class="flip-card-front p-4 lg:p-8 rounded-xl bg-white shadow hover:border border-gray-500
140-
flex flex-col gap-2 justify-center items-center">
141-
<div class="flex items-center justify-center shrink-0 border rounded-md w-16 h-16 ">
142-
<Icon class="text-center text-black w-8 h-8" name={component.icon}/>
139+
<div class="flip-card-front p-4 lg:p-8 rounded-xl bg-white shadow hover:shadow-2xl
140+
flex flex-col gap-5 justify-center items-center">
141+
<div class="flex items-center justify-center shrink-0 border rounded-md w-20 h-20 ">
142+
<Icon class="text-center text-black w-12 h-12" name={component.icon}/>
143143
</div>
144144
<div class="text-center text-lg mt-1">{component.title}</div>
145-
<div class="font-semibold text-lg">{component.type}</div>
146-
<div class="text-center text-slate-600 leading-relaxed max-w-[50vw]">{component.description}</div>
145+
<div class="font-bold text-lg">{component.type}</div>
146+
{/* <div class="text-center text-slate-600 leading-relaxed max-w-[50vw]">{component.description}</div> */}
147147
<div class="lg:hidden mt-4 text-xs text-slate-600 animate-pulse">
148-
Tap to flip →
148+
Tap for more →
149+
</div>
150+
<div class="hidden lg:block mt-4 text-xs text-slate-600 animate-pulse">
151+
Click for more →
149152
</div>
150153
</div>
151154

152155
<!-- back -->
153-
<div class="flip-card-back p-6 rounded-xl bg-slate-800 text-white shadow
156+
<div class="flip-card-back p-6 rounded-xl bg-slate-800 text-white shadow hover:shadow-2xl
154157
flex flex-col lg:gap-2 justify-between items-center">
155158
<div class="text-center text-lg text-slate-200 leading-relaxed">{component.backDescription}</div>
156159
<Link
@@ -161,7 +164,7 @@ const coralComponents = [
161164
class={`${component.buttonCssClass} gap-1 items-center justify-center`}
162165
target="_blank">
163166
<Icon class="text-black w-6 h-6" name="uil:arrow-circle-right" />
164-
More
167+
Video
165168
</Link>
166169
</div>
167170
</div>
@@ -185,6 +188,7 @@ const coralComponents = [
185188
height: 100%;
186189
transition: transform 0.7s;
187190
transform-style: preserve-3d;
191+
will-change: transform; /* browser expects changes */
188192
}
189193

190194
.flip-card.flipped .flip-card-inner {
@@ -200,7 +204,10 @@ const coralComponents = [
200204
-webkit-backface-visibility: hidden;
201205
}
202206

207+
.flip-card-front {
208+
transform: translateZ(0); /* force also this side active in GPU memory */
209+
}
203210
.flip-card-back {
204-
transform: rotateY(180deg);
211+
transform: rotateY(180deg) translateZ(0);
205212
}
206213
</style>

0 commit comments

Comments
 (0)