Skip to content

Commit 8f8c2a0

Browse files
committed
Style improvements.
1 parent 3a99e6a commit 8f8c2a0

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

src/components/ui/Headline.astro

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,37 @@ const isAnchor = !!id;
66
const isLink = !!href;
77
---
88

9-
<Tag id={isAnchor ? id : undefined} class={`m-5 py-2 text-center font-bold text-6xl`}>
9+
<Tag id={isAnchor ? id : undefined} class={`m-5 py-2 text-center font-bold max-w-[90vw]`}>
1010
{isAnchor && (
1111
<a href={`#${id}`} aria-label={`Jump to ${id}`}>
1212
{Title}
1313
</a>
1414
)}
1515
{isLink && <a aria-label="Read more about {Title}" href={href} class="hover:underline">{Title}</a> }
1616
</Tag>
17+
18+
<style>
19+
h1 {
20+
font-size: calc(1.9rem + 1.5vw + 0.8vh);
21+
}
22+
23+
h2 {
24+
font-size: calc(1.75rem + 1.5vw + 0.8vh);
25+
}
26+
27+
h3 {
28+
font-size: calc(1.5rem + 1.2vw + 0.6vh);
29+
}
30+
31+
h4 {
32+
font-size: calc(1.25rem + 1vw + 0.4vh);
33+
}
34+
35+
h5 {
36+
font-size: calc(1rem + 0.8vw + 0.3vh);
37+
}
38+
39+
h6 {
40+
font-size: calc(0.875rem + 0.6vw + 0.2vh);
41+
}
42+
</style>

src/content/pages/explore.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: More Tips on Exploring Prague
33
subtitle: At EuroPython, many attendees will come with their families. While not attending the conference, why not go and explore Prague and the surrounding area?
44
---
55

6-
import { Image } from "astro:assets";
76
import venueImage from "./images/prague.jpg";
87

98
# Prague Exploration Tips

src/data/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"items": [
66
{
77
"name": "Sessions Previews",
8-
"path": "/programme/sessions"
8+
"path": "/sessions"
99
},
1010
{
1111
"name": "Tracks",

src/pages/speaker/[slug].astro

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Prose from "../../components/prose/prose.astro";
55
import { Picture } from "astro:assets";
66
import { getEntry, render } from 'astro:content';
77
import Markdown from "@ui/Markdown.astro";
8+
import Headline from "@ui/Headline.astro";
89
910
export async function getStaticPaths() {
1011
const entries = await getCollection("speakers");
@@ -15,6 +16,8 @@ export async function getStaticPaths() {
1516
}
1617
1718
const {entry} = Astro.props;
19+
console.log(entry.data.avatar);
20+
1821
const sessions = await getEntries(entry.data.submissions);
1922
2023
// Get @username from Twitter URL
@@ -65,12 +68,8 @@ function ensureHttps(str: string): string {
6568
---
6669

6770
<Layout title={entry.data.name} description={`Profile of ${entry.data.name}`}>
68-
<article class="mx-auto pb-12 px-6">
69-
<h1
70-
class="relative font-title text-primary font-bold mb-[0.6em] [&>a]:border-0 [&>a]:text-inherit text-7xl"
71-
>
72-
{entry.data.name}
73-
</h1>
71+
<article class="pb-12 px-6">
72+
<Headline as="h1" id="speaker" title={entry.data.name} />
7473

7574
{
7675
(entry.data.avatar &&
@@ -79,7 +78,9 @@ function ensureHttps(str: string): string {
7978
src={entry.data.avatar}
8079
alt={entry.data.name}
8180
inferSize={true}
82-
class="max-w-[240px] sm:max-w-[540px] xl:max-w-[720px] max-h-[240px] sm:max-h-[540px] xl:max-h-[720px] object-scale-down"
81+
widths={[400, 800, 1200]}
82+
sizes="(max-width: 1200px) 100vw, 1200px"
83+
class="max-w-[240px] sm:max-w-[540px] xl:max-w-[620px] max-h-[240px] sm:max-h-[440px] xl:max-h-[440px] object-scale-down"
8384
/>
8485
</div>
8586
)

src/pages/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const description =
4545
<h1>Speakers</h1>
4646
</Prose>
4747

48-
<div class="flex text-3xl font-bold flex-wrap mb-6">
48+
<div class="flex text-3xl font-bold flex-wrap my-10">
4949
{
5050
letters.map((letter) => (
5151
<h3 class="mr-2">

0 commit comments

Comments
 (0)