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
48ac2df
commit 71fa680
Showing
12 changed files
with
188 additions
and
90 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 +1,78 @@ | ||
--- | ||
const { text } = Astro.props | ||
const { title, text, figure: { src, alt, caption } } = Astro.props | ||
--- | ||
|
||
<section class="Bio"> | ||
<p>{text}</p> | ||
</section> | ||
<article class="Bio-article"> | ||
<h1 class="Bio-article-h1">{title}</h1> | ||
<p class="Bio-article-p">{text}</p> | ||
</article> | ||
|
||
<article class="Bio-article-sm"> | ||
<h1 class="Bio-article-h1">{title}</h1> | ||
<p class="Bio-article-p">{text}</p> | ||
</article> | ||
|
||
<article class="Bio-article-md"> | ||
<h1 class="Bio-article-h1">{title}</h1> | ||
<p class="Bio-article-p">{text}</p> | ||
</article> | ||
|
||
<figure class="Bio-figure"> | ||
<img class="Bio-figure-img" src={src} alt={alt} /> | ||
<figcaption class="Bio-figure-figcaption">{caption}</figcaption> | ||
</figure> | ||
|
||
<figure class="Bio-figure-sm"> | ||
<img class="Bio-figure-img" src={src} alt={alt} /> | ||
<figcaption class="Bio-figure-figcaption">{caption}</figcaption> | ||
</figure> | ||
|
||
<figure class="Bio-figure-md"> | ||
<img class="Bio-figure-img" src={src} alt={alt} /> | ||
<figcaption class="Bio-figure-figcaption">{caption}</figcaption> | ||
</figure> | ||
</section> | ||
|
||
<style> | ||
.Bio-article { | ||
@apply block sm:hidden; | ||
} | ||
|
||
.Bio-article-sm { | ||
@apply hidden sm:inline-block md:hidden; | ||
@apply align-top; | ||
@apply w-1/2; | ||
} | ||
|
||
.Bio-article-md { | ||
@apply hidden md:inline-block; | ||
@apply align-top; | ||
@apply w-2/3; | ||
} | ||
|
||
.Bio-article-h1 { | ||
@apply sr-only; | ||
} | ||
|
||
.Bio-figure { | ||
@apply block sm:hidden; | ||
@apply pt-8; | ||
margin: 0 auto; | ||
max-width: 322px; | ||
} | ||
|
||
.Bio-figure-sm { | ||
@apply hidden sm:inline-block md:hidden; | ||
@apply w-1/2; | ||
@apply pt-1 pl-8; | ||
max-width: 282px; | ||
} | ||
|
||
.Bio-figure-md { | ||
@apply hidden md:inline-block; | ||
@apply w-1/3; | ||
@apply pt-1 pl-8; | ||
max-width: 143px; | ||
} | ||
</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
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
--- | ||
const navItems = [ | ||
{ | ||
text: '/Œuvres choisies', | ||
href: 'https://www.instagram.com/maisonquiroga/' | ||
}, | ||
{ | ||
text: '/Contact', | ||
href: 'mailto:[email protected]' | ||
} | ||
] | ||
const { items } = Astro.props | ||
--- | ||
|
||
<nav class="Nav"> | ||
{navItems.map(({ text, href }) => ( | ||
{items.map(({ text, href }) => ( | ||
<a class="Nav-a" href={href}>{text}</a> | ||
<a class="Nav-a-sm" href={href}>{text}</a> | ||
))} | ||
</nav> | ||
|
||
<style> | ||
.Nav-a { | ||
@apply pr-4; | ||
@apply text-sm; | ||
@apply inline-block sm:hidden; | ||
} | ||
|
||
.Nav-a-sm { | ||
@apply pr-8; | ||
@apply text-lg; | ||
@apply hidden sm:inline-block; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,16 +3,60 @@ import Head from "../components/Head.astro" | |
import Header from "../components/Header.astro" | ||
import Nav from "../components/Nav.astro" | ||
import Footer from "../components/Footer.astro" | ||
const head = { | ||
title: "Maison Quiroga", | ||
author: "Roberto Quiroga Valdovinos", | ||
description: ` | ||
Roberto Quiroga Valdovinos. Artiste peintre. Œuvres et contact : | ||
@maisonquiroga (Instagram). Exposition permanente : Lautaro Rosas 558 | ||
Cerro Alegre, Valparaíso, Chili. | ||
` | ||
} | ||
const header = { | ||
logo: { | ||
alt: 'Logo de Maison Quiroga', | ||
src: '/images/logo.jpg' | ||
} | ||
} | ||
const navItems = [ | ||
{ | ||
text: '/Œuvres choisies', | ||
href: 'https://www.instagram.com/maisonquiroga/' | ||
}, | ||
{ | ||
text: '/Contact', | ||
href: 'mailto:[email protected]' | ||
}, | ||
{ | ||
text: '/Adresse', | ||
href: 'https://www.openstreetmap.org/way/1304668361' | ||
} | ||
] | ||
const footerItems = [ | ||
{ | ||
text: 'redtech', | ||
href: 'https://redte.ch', | ||
} | ||
] | ||
--- | ||
|
||
<html lang="fr"> | ||
<Head /> | ||
<Head | ||
title={head.title} | ||
author={head.author} | ||
description={head.description} | ||
/> | ||
|
||
<body> | ||
<main> | ||
<Header /> | ||
<Nav /> | ||
<Header logo={header.logo}/> | ||
<Nav items={navItems}/> | ||
<slot /> | ||
<Footer /> | ||
<Footer items={footerItems}/> | ||
</main> | ||
</body> | ||
</html> |
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