Skip to content

Commit 50dc605

Browse files
committed
change how cards look
1 parent 44e36ff commit 50dc605

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

pages/community/overview.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ News are broadcasted on this site's blog, on Bluesky and X. Some extra, less imp
2323

2424
## Community Resources
2525
<CommunityResources />
26-
- [Getting rid of your dead code in ReScript](https://dev.to/zth/getting-rid-of-your-dead-code-in-rescript-3mba)
27-
- [Speeding up ReScript compilation using interface files](https://dev.to/zth/speeding-up-rescript-compilation-using-interface-files-4fgn)
28-
- Articles in [awesome-rescript](https://github.com/fhammerschmidt/awesome-rescript#readme)
2926

3027
## Questions
3128

src/components/CommunityResources.res

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,15 @@ let simplifyUrl = url =>
6060
module LinkCard = {
6161
@react.component
6262
let make = (~link) => {
63-
<div className="rounded-lg border-gray-90 hover:border-fire border-2 overflow-hidden">
63+
<div
64+
className="rounded-lg border-2 border-white hover:border-fire hover:border-2 overflow-hidden bg-gray-10">
6465
<a href=link.url className="flex flex-col h-full">
65-
<img className="object-cover w-full lg:h-20 md:h-22 h-40" src=link.image alt="" />
66+
<img className="object-cover w-full h-40" src=link.image alt="" />
6667
<div className="p-2 grow">
67-
<h3 className="mb-2 font-semibold text-14 grow-0"> {React.string(link.title)} </h3>
68-
<p className="mb-2 text-12 grow"> {React.string(link.description)} </p>
68+
<h3 className="font-semibold text-14 grow-0"> {React.string(link.title)} </h3>
69+
// <p className="mb-2 text-12 grow truncate"> {React.string(link.description)} </p>
6970
</div>
70-
<p className="text-14 p-2 grow-0 text-gray-60">
71+
<p className="text-14 p-2 grow-0 text-gray-70">
7172
{React.string(link.url->simplifyUrl->Option.getOr(""))}
7273
</p>
7374
</a>
@@ -78,7 +79,7 @@ module LinkCard = {
7879
module LinkCards = {
7980
@react.component
8081
let make = () =>
81-
<div className="grid lg:grid-cols-3 md:grid-cols-2 gap-4">
82+
<div className="grid md:grid-cols-2 gap-6">
8283
{links
8384
->Array.map(link =>
8485
switch link.image {

0 commit comments

Comments
 (0)