-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change frontmatter, new data, update components, new links
- Loading branch information
1 parent
ff4c5cb
commit 625ccab
Showing
23 changed files
with
277 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
import type { CollectionEntry } from 'astro:content'; | ||
export interface Props { | ||
subject: CollectionEntry<'subjects'>; | ||
} | ||
const { | ||
subject: { | ||
data: { name, description, course, campus, preview, repository }, | ||
}, | ||
} = Astro.props; | ||
--- | ||
|
||
<div class="subject-card rounded-md overflow-hidden shadow-lg bg-gray-100 p-4"> | ||
<a href={preview ?? repository} target="_blank"> | ||
<h1 class="text-xl font-bold mb-4">{name}</h1> | ||
</a> | ||
<p class="mb-4"> | ||
{description} | ||
</p> | ||
<ul class="flex"> | ||
<li class="text-sm text-gray-700 bg-white my-2 mx-1 py-1 px-2 rounded-full"> | ||
{course} | ||
</li> | ||
<li class="text-sm text-gray-700 bg-white my-2 mx-1 py-1 px-2 rounded-full"> | ||
{campus} | ||
</li> | ||
</ul> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,48 @@ | ||
--- | ||
import { getCollection } from 'astro:content'; | ||
import Icon from 'astro-icon'; | ||
import type { CollectionEntry } from 'astro:content'; | ||
export interface Props { | ||
subject: CollectionEntry<'subjects'>; | ||
} | ||
const courses = await getCollection('courses'); | ||
const { | ||
subject: { | ||
data: { name, description, course, campus, preview, repository }, | ||
data: { name, description, course, campus, preview, professors, repository }, | ||
}, | ||
} = Astro.props; | ||
const getCourseByName = (abbreviation: string) => { | ||
return courses.find((course) => course?.data?.abbreviation === abbreviation); | ||
}; | ||
--- | ||
|
||
<div class="subject-card rounded-md overflow-hidden shadow-lg bg-gray-100 p-4"> | ||
<a href={preview ?? repository} target="_blank"> | ||
<h1 class="text-xl font-bold mb-4">{name}</h1> | ||
<div class="relative bg-gray-100 mb-4 p-4 border-l-8 border-green-900"> | ||
<a href={preview ?? repository}> | ||
<h2 class="text-2xl font-bold mb-4 pr-2">{name}</h2> | ||
</a> | ||
<h2 class="text-lg font-semibold mb-1">Curso</h2> | ||
<p class="mb-4"> | ||
{description} | ||
{getCourseByName(course)?.data?.level?.full} em{' '} | ||
{getCourseByName(course)?.data?.name} | ||
<span class="uppercase"> | ||
({getCourseByName(course)?.data?.campus}) | ||
</span> | ||
</p> | ||
<ul class="flex"> | ||
<li class="text-sm text-gray-700 bg-white my-2 mx-1 py-1 px-2 rounded-full"> | ||
{course} | ||
</li> | ||
<li class="text-sm text-gray-700 bg-white my-2 mx-1 py-1 px-2 rounded-full"> | ||
{campus} | ||
</li> | ||
</ul> | ||
<h2 class="text-lg font-semibold mb-1">Professores</h2> | ||
<p class="mb-4">{professors.join(', ')}</p> | ||
<h2 class="text-lg font-semibold mb-1">Descrição</h2> | ||
<p class="mb-4">{description}</p> | ||
<div class="absolute top-4 right-4"> | ||
<a | ||
href={repository} | ||
class="hover:text-gray-600 transition duration-500" | ||
> | ||
<Icon name="mdi:github" size={30} class="github-project-link" /> | ||
</a> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: cmpti-jp | ||
name: Tecnologia da Informação | ||
abbreviation: cmpti | ||
level: | ||
compact: Mestrado | ||
full: Metrado Profissional | ||
# Pós-Graduação em Mestrado Profissional em Tecnologia da Informação | ||
campus: ifpb-jp | ||
page: https://estudante.ifpb.edu.br/cursos/195/ | ||
--- |
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,12 @@ | ||
--- | ||
id: ctii-jp | ||
name: Informática | ||
abbreviation: ctii | ||
level: | ||
# CTIIEM: Curso Técnico de Informática Integrado ao Ensino Médio | ||
# ETIM: Educação Técnica Integrada ao Médio | ||
compact: Técnico Integrado ao Médio | ||
full: Curso Técnico Integrado ao Ensino Médio | ||
campus: ifpb-jp | ||
page: https://estudante.ifpb.edu.br/cursos/183/ | ||
--- |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.