Compare commits

...

3 Commits

3 changed files with 8 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export const Newsletter = ({ url }: { url?: string }) => {
<DecorativeIcon type="email" /> <DecorativeIcon type="email" />
</div> </div>
<h2>Nyhetsbrev</h2> <h2>Nyhetsbrev</h2>
<p>Meld deg vårt nyhetsbrev og hold deg oppdatert program og nyheter!</p> <p>Meld deg vårt nyhetsbrev og hold deg oppdatert arrangementer og siste nytt!</p>
</div> </div>
<a href={link} target="_blank" className="button primary"> <a href={link} target="_blank" className="button primary">
Meld deg Meld deg

View File

@@ -25,6 +25,10 @@
h2 { h2 {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
p {
max-width: 48rem;
}
} }
.icon { .icon {

View File

@@ -44,7 +44,9 @@ export function formatExtendedDateTime(
const timePart = dateOnly ? "" : " 'kl.' HH:mm"; const timePart = dateOnly ? "" : " 'kl.' HH:mm";
const isCurrentYear = parsed.getFullYear() === new Date().getFullYear(); const isCurrentYear = parsed.getFullYear() === new Date().getFullYear();
const yearPart = (!isCurrentYear || alwaysIncludeYear) ? " yyyy" : ""; const yearPart = (!isCurrentYear || alwaysIncludeYear) ? " yyyy" : "";
return formatDate(parsed, `EEEE d. MMMM${yearPart}${timePart}`); const formatStr = `EEEE d. MMMM${yearPart}${timePart}`;
const formatted = format(parsed, formatStr, { timeZone, locale: nb });
return formatted;
} }
export function isTodayOrFuture( export function isTodayOrFuture(