Skip to content

Commit

Permalink
Merge pull request #14 from JSConfCL/lego/feat/dates
Browse files Browse the repository at this point in the history
Lego/feat/dates
  • Loading branch information
joseglego authored Mar 28, 2024
2 parents 9595ec8 + 89415e8 commit a066ddb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,6 @@ export const footer = [
export const JSCONF = {
startDate: new Date("09/05/2024 09:00:00"),
endDate: new Date("09/07/2024 17:00:00"),
strDates: "SEP 05, 06, 07 2024",
place: "Santiago, Chile",
};
5 changes: 2 additions & 3 deletions src/lib/metadata.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { JSCONF } from "./data";
import { formatDate } from "./date";

export const getMetaData = () => {
const url = "https://jsconf.cl/";
const title = `JSConf Chile 2024: ${formatDate(JSCONF.startDate)} | Conferencia de Javascript en Santiago Chile`;
const description = `JSConf Chile 2024: ${formatDate(JSCONF.startDate)} | Ya estamos trabajando en la nueva JSConf Chile. Mantente informado`;
const title = `JSConf Chile: ${JSCONF.strDates} | Conferencia de Javascript en Santiago Chile`;
const description = `JSConf Chile: ${JSCONF.strDates} | Ya estamos trabajando en la nueva JSConf Chile. Mantente informado`;
const images = ["/images/og-image.jpg"];

return {
Expand Down
3 changes: 1 addition & 2 deletions src/sections/EventInfo/EventInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import React, { useEffect, useRef, useState } from "react";

import { JSCONF } from "@/lib/data";
import { formatDate } from "@/lib/date";

const SECOND = 1000;
const MINUTE = SECOND * 60;
Expand Down Expand Up @@ -88,7 +87,7 @@ export const EventInfo = () => {
return (
<div className="flex flex-col gap-4">
<div className="flex flex-col items-center justify-center gap-4 md:flex-row ">
<InfoValue title="Fecha" value={`"${formatDate(JSCONF.startDate)}"`} />
<InfoValue title="Fecha" value={`"${JSCONF.strDates}"`} />
<InfoValue title="Lugar" value="Santiago, Chile" />
</div>
<Countdown />
Expand Down

0 comments on commit a066ddb

Please sign in to comment.