-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from CodeandoMexico/feat-projects
feat(projects): added projects support
- Loading branch information
Showing
11 changed files
with
115 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<script> | ||
export let action; | ||
export let action_label; | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,53 @@ | ||
<script> | ||
import Badge from "../Badge.svelte"; | ||
export let title; | ||
export let description; | ||
export let image; | ||
export let website; | ||
export let repository; | ||
export let tags = []; | ||
export let maker = ""; | ||
</script> | ||
|
||
|
||
<div class="Card w-full min-h-[519px] flex-col justify-start items-start inline-flex"> | ||
<img class="Image4 self-stretch h-[200px] w-full" src="https://placehold.co/457x200" /> | ||
<img class="Image4 object-cover h-[200px] w-full" src={image} /> | ||
<div class="Frame5 self-stretch min-h-[269px] h-full flex-col justify-start pt-3 items-start gap-4 flex"> | ||
<div class="Heading self-stretch min-h-[41px] flex-col justify-end items-start gap-8 flex"> | ||
<div class="Heading self-stretch text-black text-[31.25px] font-bold font-['Albert Sans'] leading-10"> | ||
Mapatón Ciudadano | ||
{title} | ||
</div> | ||
</div> | ||
<div class="Descripion self-stretch justify-start items-start inline-flex"> | ||
<div class="Description grow shrink basis-0 text-black text-lg font-normal font-['Albert Sans'] leading-[27px]"> | ||
Es un proyecto para mapear todas las rutas de transporte público del país de forma colaborativa, usando aplicaciones móviles y mediante campañas de mapeo. | ||
{description} | ||
</div> | ||
</div> | ||
<div class="Button justify-start items-center gap-2 inline-flex"> | ||
<div class="ConoceMS text-black text-base font-bold font-['Albert Sans'] leading-normal"> | ||
Fundación Avina | ||
{website} | ||
</div> | ||
<div class="ExternalLink w-6 h-6 relative"></div> | ||
</div> | ||
<div> | ||
<p>{maker}</p> | ||
</div> | ||
<div class="flex flex-wrap gap-2"> | ||
<Badge text="Datos abiertos" color="#6596FF"/> | ||
<Badge text="Código abierto" color="#F1B6B8"/> | ||
<Badge text="Plataforma opensource" color="#F2D301"/> | ||
|
||
{#each tags as tag} | ||
<Badge text={tag} color="#6596FF"/> | ||
{/each} | ||
</div> | ||
<div class="flex gap-3 my-2"> | ||
<a href="#" target="_blank" class="border-2 border-black uppercase font-bold bg-black text-white px-5 py-2 hover:bg-gray-700 transition duration-300 ease-in-out"> | ||
{#if website} | ||
<a href={website} target="_blank" class="border-2 border-black uppercase font-bold bg-black text-white px-5 py-2 hover:bg-gray-700 transition duration-300 ease-in-out"> | ||
Sitio web | ||
</a> | ||
<a href="#" target="_blank" class="border-2 border-black uppercase font-bold bg-white text-black px-5 py-2 hover:bg-gray-200 transition duration-300 ease-in-out"> | ||
{/if} | ||
{#if repository} | ||
<a href={repository} target="_blank" class="border-2 border-black uppercase font-bold bg-white text-black px-5 py-2 hover:bg-gray-200 transition duration-300 ease-in-out"> | ||
Repositorio | ||
</a> | ||
{/if} | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import client from '$lib/apiClient' | ||
import { readItems } from '@directus/sdk' | ||
|
||
export async function load() { | ||
|
||
const projects = await client.request(readItems('projects', { | ||
filter: { | ||
status: { | ||
_eq: "published" | ||
} | ||
} | ||
})) | ||
|
||
return { | ||
projects | ||
} | ||
} | ||
|
||
export const prerender = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters