Skip to content
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
2 changes: 2 additions & 0 deletions src/lib/blocks/ContentBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
export let extraImageAlt = "";
export let extraImageLink = "";
export let innerColumns = false;
export let extraVerticalPadding = false;

let style = "";
let mobile = false;
Expand Down Expand Up @@ -171,6 +172,7 @@
{caption}
{tabs}
{innerColumns}
{extraVerticalPadding}
/>
{/if}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</script>

<div
class="text-red-berry-900 dark:text-neutral-300 flex flex-col items-center justify-center text-center {aspect}"
class="text-red-berry-900 dark:text-neutral-300 flex flex-col items-center justify-center text-center p-8 {aspect}"
>
{#if innerColumn.icon}
<DynamicIcon icon={innerColumn.icon} {size} />
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/MediaSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
export let tabs = undefined;
export let innerColumns = false;
export let aspectRatio = "4:3";
export let extraVerticalPadding = false;

// Reactive variables for translations
let reactiveTabs = tabs;
let reactiveCaption = caption;
let reactiveImgAlt = imgAlt;
let innerColumnClasses = `max-w-screen-md mx-auto flex flex-col gap-8 md:gap-16 mt-2 md:mt-0 md:grid md:grid-cols-2 ${extraVerticalPadding ? "py-16" : ""}`;

// Helper function to check if an object or array is empty
function isEmpty(value) {
Expand Down Expand Up @@ -91,9 +93,7 @@
{:else if reactiveTabs}
<Tabs tabs={reactiveTabs} />
{:else if innerColumns}
<div
class="max-w-2xl mx-auto flex flex-col gap-8 md:gap-16 mt-2 md:mt-0 md:grid md:grid-cols-2"
>
<div class={innerColumnClasses}>
{#each innerColumns as innerColumn}
{#if innerColumn.link}
<a
Expand Down
1 change: 1 addition & 0 deletions src/lib/config/data/frontpage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
boxed: true
background: /assets/media/bg_more.svg
backgroundDark: /assets/media/bg_more_dark.svg
extraVerticalPadding: true
innerColumns:
- icon: BsYoutube
link: https://www.youtube.com/c/spyderide
Expand Down
19 changes: 1 addition & 18 deletions static/assets/media/bg_more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 1 addition & 102 deletions static/assets/media/bg_more_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.