-
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.
use consistent page dimensions and reusable components
- Loading branch information
1 parent
37622ba
commit dc55a0c
Showing
4 changed files
with
24 additions
and
26 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<script lang="ts"> | ||
import type { SessionModel } from '@/utils/types'; | ||
export let session: SessionModel; | ||
import type { ContentCategory } from '@/utils/types'; | ||
export let title: string = 'Untitled'; | ||
export let category: ContentCategory; | ||
</script> | ||
|
||
<div class="flex w-full px-4 flex-col gap-y-3 sm:max-w-xl lg:max-w-3xl max-w-full"> | ||
<div class="flex w-full flex-col gap-y-3 sm:max-w-xl lg:max-w-3xl max-w-full"> | ||
<div class="mb-4 flex flex-col gap-y-2"> | ||
<span class="capitalize bg-gray-800 text-gray-300 w-fit py-1 px-3 rounded-md"> | ||
{session.category} | ||
{category} | ||
</span> | ||
|
||
{#if session.metadata?.title} | ||
<h1 class="text-2xl font-semibold text-sky-200">{session.metadata.title}</h1> | ||
{/if} | ||
<h1 class="text-2xl font-semibold text-sky-200">{title}</h1> | ||
</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