Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: project content #70

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lib/services/Notion/Projects/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export class Projects {

const response = await client.databases.query({
database_id: database,
sorts: [
{
property: 'created',
direction: 'descending',
},
],
});

return Promise.all(
Expand Down
6 changes: 3 additions & 3 deletions src/routes/[[lang=lang]]/projects/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@
<figure
class="rounded overflow-hidden pb-4 flex justify-center items-center h-[250px]"
>
<img alt={title} src={project.cover} width="450" height="100" />
<img alt={project.title} src={project.cover} width="450" height="100" />
</figure>
<header>
<h1
class="text-xl mt-2 font-extrabold cursor-pointer hover:text-link hover:underline"
>
{title}
{project.title}
</h1>
</header>
<main class="pb-2">
<p>{description}</p>
<p>{project.description}</p>
</main>
<footer class="flex flex-col">
<div class="flex mb-2">
Expand Down