Skip to content

Commit 4701a4e

Browse files
committed
modified projects to fit on a grid, adjusted cards height
1 parent 0735f44 commit 4701a4e

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

src/components/Cards/CommunityCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</script>
55

66
<div class="p-5 w-full md:w-1/3">
7-
<a href="{route}">
7+
<a href="{route}" target="_blank">
88
<div class="border border-cmxyellow p-5 h-[150px] flex justify-between flex-col hover:bg-zinc-100 transition-colors duration-200">
99
<h3 class="text-lg font-bold">{text}</h3>
1010
<img src="/flecha-amarilla.png" class="inline h-[20px] w-[20px]

src/components/Cards/ProjectCard.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="Card w-full min-h-[519px] flex-col justify-start items-start inline-flex">
1414
<img class="Image4 object-cover h-[200px] w-full" src={image} />
1515
<div class="Frame5 self-stretch min-h-[269px] h-full flex-col justify-start pt-3 items-start gap-4 flex">
16-
<div class="Heading self-stretch min-h-[41px] flex-col justify-end items-start gap-8 flex">
16+
<div class="Heading self-stretch min-h-[84px] flex-col justify-start items-start gap-8 flex">
1717
<div class="Heading self-stretch text-black text-[31.25px] font-bold font-['Albert Sans'] leading-10">
1818
{title}
1919
</div>
@@ -23,18 +23,18 @@
2323
{description}
2424
</div>
2525
</div>
26-
<div class="Button justify-start items-center gap-2 inline-flex">
26+
<!-- <div class="Button justify-start items-center gap-2 inline-flex">
2727
<div class="ConoceMS text-black text-base font-bold font-['Albert Sans'] leading-normal">
2828
{website}
2929
</div>
30-
</div>
30+
</div> -->
3131
<div>
3232
<p>{maker}</p>
3333
</div>
3434
<div class="flex flex-wrap gap-2">
3535

3636
{#each tags as tag}
37-
<Badge text={tag} color="#6596FF"/>
37+
<Badge text={tag}/>
3838
{/each}
3939
</div>
4040
<div class="flex gap-3 my-2">

src/routes/proyectos/+page.svelte

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,20 @@
3535
<Badge text="Datos abiertos" color="#F3F3F4"/>
3636
<Badge text="Código abierto" color="#F3F3F4"/>
3737
</div> -->
38-
<div class="flex flex-col md:flex-row columns-3 container my-8 mx-auto gap-20">
38+
<!-- <div class="flex flex-col basis-1/3 md:flex-row columns-3 container my-8 mx-auto gap-20"> -->
39+
<div class="grid grid-cols-1 md:grid-cols-3 container my-8 mx-auto gap-20">
3940
{#each projects as project}
40-
<ProjectCard
41+
<div class="my-5">
42+
<ProjectCard
4143
title={project.title}
4244
description={project.short_description}
4345
tags={project.tags || []}
4446
image={`https://content.codeandomexico.org/assets/${project.image}`}
4547
website={project.website}
4648
maker={project.maker}
4749
repository={project.repository}
48-
/>
50+
/>
51+
</div>
4952
{/each}
5053
</div>
5154
</section>

0 commit comments

Comments
 (0)