fix ppp & switch to adapter-auto

This commit is contained in:
whidix
2023-03-07 00:52:50 +01:00
parent 7b49ed534a
commit 7349e74c88
4 changed files with 13 additions and 20 deletions

View File

@@ -12,7 +12,7 @@
<a href={data.path}> <a href={data.path}>
<div class="card"> <div class="card">
{#if data.image} {#if data.image}
<img src=/img/net7.png class="image" alt={""} /> <img src="/img/net7.png" class="image" alt={''} />
{/if} {/if}
<h2>{data.title}</h2> <h2>{data.title}</h2>
{#if data.description} {#if data.description}

View File

@@ -4,4 +4,4 @@
<h1>{title}</h1> <h1>{title}</h1>
<slot ></slot> <slot />

View File

@@ -5,15 +5,10 @@ description: PPP
tags: tags:
--- ---
<script> <div style="position: relative; width: 100%; height: 0; padding-top: 56.2500%;
import ppp from '$lib/files/PPP.pdf'; padding-bottom: 0; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
</script> border-radius: 8px; will-change: transform;">
<iframe loading="lazy" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;"
<iframe src={ppp} class="ppp" title="Projet Personnel Professionnel"></iframe> src="https:&#x2F;&#x2F;www.canva.com&#x2F;design&#x2F;DAFWbtr0nNU&#x2F;view?embed" allowfullscreen="allowfullscreen" allow="fullscreen">
</iframe>
<style> </div>
.ppp {
width: 100%;
height: 600px;
}
</style>

View File

@@ -1,17 +1,15 @@
import adapter from '@sveltejs/adapter-static'; import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite'; import { vitePreprocess } from '@sveltejs/kit/vite';
import { mdsvex } from 'mdsvex'; import { mdsvex } from 'mdsvex';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
extensions: ['.svelte', '.md'], extensions: ['.svelte', '.md'],
preprocess: [ preprocess: [
vitePreprocess(), vitePreprocess(),
mdsvex({ mdsvex({
extensions: ['.md'], extensions: ['.md'],
layout: "src/lib/mardown/Layout.svelte" layout: 'src/lib/mardown/Layout.svelte'
}) })
], ],