Skip to content

Commit

Permalink
fix: final event adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Dec 4, 2023
1 parent 84739cf commit ecba07c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 35 deletions.
Binary file removed .DS_Store
Binary file not shown.
19 changes: 13 additions & 6 deletions 2023/_buildwithastro/src/components/Countdown.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,27 @@ const { eventDate } = Astro.props;
}
}

setInterval(function () {
function render() {
let finished = true;
let eventDate = document.querySelectorAll('[eventDate]')[0]?.getAttribute('eventDate');

if(!eventDate) {
return;
};

let coundowncontent = document.querySelectorAll('.countdown')[0];
let c = countdown(eventDate);

coundowncontent.querySelector('#day').innerHTML = c.days;
coundowncontent.querySelector('#hour').innerHTML = c.hours;
coundowncontent.querySelector('#minutes').innerHTML = c.minutes;
coundowncontent.querySelector('#seconds').innerHTML = c.seconds;

return finished;
}

let loop = setInterval(function () {
if(!render()) clearInterval(loop);
}, 1000);
})();
</script>
Expand Down Expand Up @@ -112,7 +119,7 @@ const { eventDate } = Astro.props;
min-width: 80px;
font-size: 2rem;
padding: 1rem 1rem 2rem;

}

color: #FFFFFF;
Expand All @@ -121,7 +128,7 @@ const { eventDate } = Astro.props;
border-radius: 4px;
font-weight: 900;
border: solid 1px rgba(255, 255, 255, 0.125);

&:after,
&:before,
&::marker {
Expand Down Expand Up @@ -151,4 +158,4 @@ const { eventDate } = Astro.props;
}
}
}
</style>
</style>
24 changes: 5 additions & 19 deletions 2023/_buildwithastro/src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Countdown from "./Countdown.astro";
const ingressURL = 'https://www.sympla.com.br/evento/frontinpoa-2023/2208504';
const c4pURL = 'https://forms.gle/1ARUc7nHxkyXsdZ58';
const eventDate= 'december 02, 2023';
const eventDate= 'december 02, 2023 09:00';
---

<header class="header">
Expand All @@ -13,7 +13,7 @@ const eventDate= 'december 02, 2023';
href="https://www.frontinpoa.com.br/"
title="Front In POA 2023"
itemprop="name">

Front in POA 2023
</a>
</h1>
Expand All @@ -31,27 +31,13 @@ const eventDate= 'december 02, 2023';
target="_blank">

<span class="call-action-text">
Te inscreve
esgotado
</span>
</a>


<div style="margin-top: 25px;">
<a
href={c4pURL}
class="header-call-action-link call-action-link send-your-talk"
target="_blank">

<span class="call-action-text" style="line-height: 1em;">
C4P
</span>
</a>
</div>

</div>
</div>
<Countdown eventDate={eventDate} />

<!-- <Countdown eventDate={eventDate} /> -->
</header>

<style lang="scss">
Expand Down
24 changes: 15 additions & 9 deletions 2023/_buildwithastro/src/components/Schedule.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
<span class="schedule-time">10:15</span>

<div class="schedule-slot">
<span class="schedule-speaker">Erik Wendell</span>
<span class="schedule-speaker">Erick Wendel</span>

<div class="schedule-activity">
Key Note:
Keynote:
<br>
Recriando Node.JS
Recriando o Node.JS do zero
</div>
</div>
<!--
Expand Down Expand Up @@ -176,16 +176,22 @@
<span class="schedule-time">17:00</span>

<div class="schedule-slot">
<!-- <span class="schedule-speaker">Sendo Confirmado</span> -->
<div class="schedule-activity">
Happy Hour
</div>
<!-- <span class="schedule-speaker">
</span> -->
</div>
<!--
<p class="schedule-description">
Description
</p>
-->
<address class="schedule-description">
Weiss British Pub
<br>
<a href="https://maps.app.goo.gl/tTU1YGTP1N7weRYT7" title="Happy Hour | Weiss British Pub" target="_blank">
Av. Benjamin Constant, 1173
</br>
São Geraldo, Porto Alegre - RS, 90550-002
</a>
</address>
</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion 2023/_buildwithastro/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const speakers = [
img: '/images/speakers/morgana-cicero.png',
// user: '',
link: 'https://github.com/robsongajunior',
bio: 'Morgana atua como Product Design Manager fazendo par com Cícero atuando como Software Engineering Manager na Azion Technologies.'
bio: 'Morgana Graduada em Design e especialista em Design de Serviço e de Interação, Morgana atua como Product Design Manager na Azion. Já foi responsável pelo Design System da empresa e hoje faz parte da área de Developer Experience, liderando os UX designers na construção de interfaces e experiência de produtos. Cícero Feijó atua como Engenheiro de Software com mais de 20 anos de experiência na área de Desenvolvimento e Ensino - Cícero atua como Software Engineering Manager na Azion. Coordenou o desenvolvimento de produtos como Marketplace e jornadas de PLG, e agora é responsável pelo time de engenheiros que desenvolve o Platform Kit no time de UX Engineering.'
},
{
name: 'Robson Júnior',
Expand Down

0 comments on commit ecba07c

Please sign in to comment.