Skip to content

Commit

Permalink
Merge pull request #26 from rustnl/fix-it-felix
Browse files Browse the repository at this point in the history
Add CFP button and clean up speaker page
  • Loading branch information
tertsdiepraam authored Dec 19, 2024
2 parents 48e31b8 + 487d1c5 commit e83a7f5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 64 deletions.
101 changes: 37 additions & 64 deletions src/components/people/SpeakerFull.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,33 @@ const {
---

<div class="person" id={link}>
<div class="image-part">
<img
src={`/images/people/${image}`}
alt={`Picture of ${name}`}
/>
<div class="main-info">
<h2>{name}</h2>
<p class="speaker-title">{title}</p>

<div class="socials">
{linkedin && <a href={linkedin}><Icon name="linkedin" /></a>}
{twitter && <a href={twitter}><Icon name="x" /></a>}
{mastodon && <a href={mastodon}><Icon name="mastodon" /></a>}
{github && <a href={github}><Icon name="github" /></a>}
</div>
{
bio && (
<div class="bio">
<h3>About</h3>
<p>{bio}</p>
</div>
)
}
<img
src={`/images/people/${image}`}
alt={`Picture of ${name}`}
/>
<div class="main-info">
<h2>{name}</h2>
<p class="speaker-title">{title}</p>

<div class="socials">
{linkedin && <a href={linkedin}><Icon name="linkedin" /></a>}
{twitter && <a href={twitter}><Icon name="x" /></a>}
{mastodon && <a href={mastodon}><Icon name="mastodon" /></a>}
{github && <a href={github}><Icon name="github" /></a>}
</div>
</div>

<div>
<div>
{talkTitle && <h3>The talk</h3>}<br />
{talkTitle && <p style="font-style: italic;">{talkTitle}</p>}<br
/>
{
bio && (
<p class="bio">
{bio}
</p>
)
}
{talkTitle && <h3>The talk</h3>}
{talkTitle && <p style="font-style: italic;">{talkTitle}</p>}
{talkAbstract && <p>{talkAbstract}</p>}
<slot />
</div>

{
link && (
<a href={`/schedule#${link}`} class="time">
Expand All @@ -67,30 +59,18 @@ const {
@import "../../styles/breakpoint.scss";

.person {
display: flex;
flex-direction: column;

@include wider_than(lg) {
width: 50em;
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2em;
}

width: 50em;
@include smaller_than(lg) {
width: 100%;
margin-left: 2em;
margin-right: 2em;
display: flex;
flex-direction: column;
}

.image-part {
@include wider_than(lg) {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2em;
}

@include smaller_than(lg) {
display: flex;
flex-direction: column;
}

}

img {
border-radius: 0.5em;
Expand All @@ -111,7 +91,7 @@ const {

.main-info {
position: relative;
font-size: $font-size-lg;
font-size: $font-size-md;


@include smaller_than(lg) {
Expand All @@ -125,9 +105,8 @@ const {
font-weight: $font-weight-light;
line-height: $line-height-tight;

margin-top: 0.25em;
margin-bottom: 0em;

padding-top: 0em;

@include wider_than(lg) {
text-align: left !important;
Expand All @@ -136,6 +115,7 @@ const {

.speaker-title {
font-size: $font-size-md;
margin: 0.5em 0;
}

.socials {
Expand All @@ -150,18 +130,11 @@ const {
}

.bio {
h3 {
margin: 0;
font-size: $font-size-lg;
}

p {
margin: 0;
margin: 0.5em 0 0 0;

@include wider_than(lg) {
font-size: $font-size-md;
text-align: left;
}
@include wider_than(lg) {
font-size: $font-size-md;
text-align: left;
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/HomeLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ import PersonList from "../components/people/PeopleList.astro";
<p>May 13–17, 2025<br /> Utrecht, The Netherlands</p>

<ButtonGroup>
<Button
scale={1.25}
link="https://www.papercall.io/rust-week"
>CFP</Button
>
<Button
scale={1.25}
link="https://www.eventbrite.nl/e/rust-week-2025-tickets-1001676961757?aff=oddtdtcreator"
Expand Down
1 change: 1 addition & 0 deletions src/pages/speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ import CommonLayout from "../layouts/CommonLayout.astro";
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2em;

width: min(40em, 90%);
}
Expand Down

0 comments on commit e83a7f5

Please sign in to comment.