Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed Aug 4, 2024
1 parent 72444db commit 9751a76
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 70 deletions.
25 changes: 13 additions & 12 deletions src/lib/components/ProjectCard.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<script>
import Tag from "./Tag.svelte";
import Tag from "./Tag.svelte";
export const term = '2024-1s';
export const name = 'Polipromedios';
export const category = 'web';
export const description = 'Descripción de un proyecto super genial, muy, muy, muy pero muy genial.';
export const authors = ['Person 1', 'Person 2'];
export const term = "2024-1s";
export const name = "Polipromedios";
export const category = "web";
export const description =
"Descripción de un proyecto super genial, muy, muy, muy pero muy genial.";
export const authors = ["Person 1", "Person 2"];
</script>

<div class="bg-card-color rounded-xl max-w-80 mx-4 p-4">
<span class="font-fira text-green font-medium">{term}</span>
<h2 class="text-white font-fira text-xl font-medium">{name}</h2>
<Tag category={category} />
<p class="text-[#dee5f2] font-content">{description}</p>
</div>
<div class="mx-4 max-w-80 rounded-xl bg-card-color p-4">
<span class="font-fira font-medium text-green">{term}</span>
<h2 class="font-fira text-xl font-medium text-white">{name}</h2>
<Tag {category} />
<p class="font-content text-[#dee5f2]">{description}</p>
</div>
8 changes: 4 additions & 4 deletions src/lib/components/Tag.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
export const category = 'web';
export const category = "web";
</script>

<span class="font-fira font-bold px-6 py bg-card-color border-green border rounded-full text-white">
{category}
</span>
<span class="py rounded-full border border-green bg-card-color px-6 font-fira font-bold text-white">
{category}
</span>
57 changes: 24 additions & 33 deletions src/lib/data/projects.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
{
"projects": [
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": [
"Person 1",
"Person 2"
]
},
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": [
"Person 1",
"Person 2"
]
},
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": [
"Person 1",
"Person 2"
]
}
]
}
"projects": [
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": ["Person 1", "Person 2"]
},
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": ["Person 1", "Person 2"]
},
{
"term": "2024-1s",
"name": "Polipromedios",
"category": "web",
"description": "Descripción de un proyecto super genial, muy, muy, muy pero muy genial.",
"authors": ["Person 1", "Person 2"]
}
]
}
29 changes: 15 additions & 14 deletions src/routes/projects/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<script>
import ProjectCard from "$lib/components/ProjectCard.svelte";
import { projects } from "$lib/data/projects.json";
import ProjectCard from "$lib/components/ProjectCard.svelte";
import { projects } from "$lib/data/projects.json";
</script>

<p class="font-content font-medium text-light-blue">Aquí ponemos los proyectos que nos enorgullecen... y lo que hay ¯\_(ツ)_/¯</p>
<div class="flex flex-row flex-wrap mt-8">
{#each projects as project}
<ProjectCard
term={project.term}
name={project.name}
category={project.category}
description={project.description}
authors={project.authors}
/>
{/each}
<p class="font-content font-medium text-light-blue">
Aquí ponemos los proyectos que nos enorgullecen... y lo que hay ¯\_(ツ)_/¯
</p>
<div class="mt-8 flex flex-row flex-wrap">
{#each projects as project}
<ProjectCard
term={project.term}
name={project.name}
category={project.category}
description={project.description}
authors={project.authors}
/>
{/each}
</div>
14 changes: 7 additions & 7 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export default {
theme: {
extend: {
colors: {
'light-blue': '#e0ebff',
'card-color': '#272626',
'green': '#6DD743',
"light-blue": "#e0ebff",
"card-color": "#272626",
green: "#6DD743",
},
fontFamily: {
'content': ["Inter", "sans-serif"],
'heading': ["Fira Code", "sans-serif"],
'fira': ["Fira Code"],
}
content: ["Inter", "sans-serif"],
heading: ["Fira Code", "sans-serif"],
fira: ["Fira Code"],
},
},
},
plugins: [forms({ strategy: "class" }), typography],
Expand Down

0 comments on commit 9751a76

Please sign in to comment.