generated from redte-ch/redte.ch
-
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.
- Loading branch information
1 parent
3e51b96
commit fcf657c
Showing
19 changed files
with
366 additions
and
104 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
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,19 +1,25 @@ | ||
import { defineConfig } from 'astro/config' | ||
import svelte from '@astrojs/svelte' | ||
import tailwind from '@astrojs/tailwind' | ||
import metadata from 'astro-meta-tags' | ||
import insights from 'astro-page-insight' | ||
import betterImage from 'astro-better-image-service' | ||
import compress from '@playform/compress' | ||
|
||
/** @type {import('astro').AstroUserConfig} */ | ||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: 'https://maisonquiroga.art', | ||
compressHTML: true, | ||
integrations: [ | ||
svelte(), | ||
tailwind(), | ||
metadata(), | ||
insights(), | ||
betterImage(), | ||
compress({ Image: false, SVG: false }) | ||
compress({ | ||
Image: false, | ||
SVG: false | ||
}) | ||
] | ||
}) |
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,2 @@ | ||
declare module 'eslint-config-prettier' | ||
declare module 'eslint-plugin-tailwindcss' |
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,62 +1,11 @@ | ||
--- | ||
import { Image } from 'astro:assets' | ||
import resolveConfig from 'tailwindcss/resolveConfig' | ||
import tailwindConfig from '../../tailwind.config' | ||
import BioArticle from '@components/BioArticle.svelte' | ||
import BioFigure from '@components/BioFigure.astro' | ||
const { theme } = resolveConfig(tailwindConfig) | ||
const { screens } = theme | ||
const widths = [320, 256, 160, 128] | ||
const sizes = ` | ||
${widths[0]}px, | ||
(min-width: ${screens.sm}) ${widths[1]}px, | ||
(min-width: ${screens.md}) ${widths[2]}px, | ||
(min-width: ${screens.lg}) ${widths[3]}px | ||
` | ||
const { | ||
title, | ||
text, | ||
figure: { src, alt, caption } | ||
} = Astro.props | ||
const { title, text, figure } = Astro.props | ||
--- | ||
|
||
<section class='Bio'> | ||
<article class='Bio-article'> | ||
<h1 class='Bio-article-h1'>{title}</h1> | ||
<p class='Bio-article-p'>{text}</p> | ||
</article> | ||
|
||
<figure class='Bio-figure'> | ||
<Image | ||
class='Bio-figure-img' | ||
src={src} | ||
alt={alt} | ||
width={widths[0]} | ||
height={widths[0]} | ||
sizes={sizes} | ||
widths={widths} | ||
loading='eager' | ||
/> | ||
<figcaption class='Bio-figure-figcaption'>{caption}</figcaption> | ||
</figure> | ||
<BioArticle client:idle {title} {text} /> | ||
<BioFigure {...figure} /> | ||
</section> | ||
|
||
<style> | ||
.Bio-article { | ||
@apply block sm:inline-block; | ||
@apply w-full sm:w-1/2 md:w-2/3 lg:w-3/4; | ||
@apply sm:pr-8; | ||
@apply align-top; | ||
} | ||
|
||
.Bio-article-h1 { | ||
@apply sr-only; | ||
} | ||
|
||
.Bio-figure { | ||
@apply block sm:inline-block; | ||
@apply w-full sm:w-1/2 md:w-1/3 lg:w-1/4; | ||
@apply mb-0 ml-auto mr-auto mt-0 sm:m-0; | ||
@apply pt-8 sm:pt-0.5; | ||
@apply max-w-80 sm:max-w-64 md:max-w-40 lg:max-w-32; | ||
} | ||
</style> |
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,22 @@ | ||
<script lang="ts"> | ||
export let title: string | ||
export let text: string | ||
</script> | ||
|
||
<article class="BioArticle"> | ||
<h1 class="BioArticle-h1">{title}</h1> | ||
<p class="BioArticle-p">{text}</p> | ||
</article> | ||
|
||
<style> | ||
.BioArticle { | ||
@apply block sm:inline-block; | ||
@apply w-full sm:w-1/2 md:w-2/3 lg:w-3/4; | ||
@apply sm:pr-8; | ||
@apply align-top; | ||
} | ||
.BioArticle-h1 { | ||
@apply sr-only; | ||
} | ||
</style> |
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,41 @@ | ||
--- | ||
import tailwindConfig from '@root/tailwind.config' | ||
import resolveConfig from 'tailwindcss/resolveConfig' | ||
import { Image } from 'astro:assets' | ||
const { theme } = resolveConfig(tailwindConfig) | ||
const { screens } = theme | ||
const widths = [320, 256, 160, 128] | ||
const sizes = ` | ||
${widths[0]}px, | ||
(min-width: ${screens.sm}) ${widths[1]}px, | ||
(min-width: ${screens.md}) ${widths[2]}px, | ||
(min-width: ${screens.lg}) ${widths[3]}px | ||
` | ||
const { src, alt, caption } = Astro.props | ||
--- | ||
|
||
<figure class='BioFigure'> | ||
<Image | ||
class='BioFigure-img' | ||
src={src} | ||
alt={alt} | ||
width={widths[0]} | ||
height={widths[0]} | ||
sizes={sizes} | ||
widths={widths} | ||
loading='eager' | ||
/> | ||
<figcaption class='Bio-figure-figcaption'>{caption}</figcaption> | ||
</figure> | ||
|
||
<style> | ||
.BioFigure { | ||
@apply animate-fade; | ||
@apply block sm:inline-block; | ||
@apply w-full sm:w-1/2 md:w-1/3 lg:w-1/4; | ||
@apply mb-0 ml-auto mr-auto mt-0 sm:m-0; | ||
@apply pt-8 sm:pt-0.5; | ||
@apply max-w-80 sm:max-w-64 md:max-w-40 lg:max-w-32; | ||
} | ||
</style> |
25 changes: 12 additions & 13 deletions
25
src/components/Curriculum.astro → src/components/Curriculum.svelte
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,5 +1,5 @@ | ||
--- | ||
import Logo from './Logo.astro' | ||
import Logo from '@components/Logo.astro' | ||
const { | ||
logo: { alt, src } | ||
|
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
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,5 @@ | ||
import { vitePreprocess } from '@astrojs/svelte' | ||
|
||
export default { | ||
preprocess: vitePreprocess() | ||
} |
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
Oops, something went wrong.