Compare commits
3 Commits
1b25bad850
...
main
Author | SHA1 | Date | |
---|---|---|---|
09e69a7093 | |||
d3f8b8f0bb | |||
fcd5231c28 |
@@ -11,7 +11,7 @@ export const Newsletter = ({ url }: { url?: string }) => {
|
||||
<DecorativeIcon type="email" />
|
||||
</div>
|
||||
<h2>Nyhetsbrev</h2>
|
||||
<p>Meld deg på vårt nyhetsbrev og hold deg oppdatert på program og nyheter!</p>
|
||||
<p>Meld deg på vårt nyhetsbrev og hold deg oppdatert på arrangementer og siste nytt!</p>
|
||||
</div>
|
||||
<a href={link} target="_blank" className="button primary">
|
||||
Meld deg på
|
||||
|
@@ -25,6 +25,10 @@
|
||||
h2 {
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
p {
|
||||
max-width: 48rem;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
|
@@ -44,7 +44,9 @@ export function formatExtendedDateTime(
|
||||
const timePart = dateOnly ? "" : " 'kl.' HH:mm";
|
||||
const isCurrentYear = parsed.getFullYear() === new Date().getFullYear();
|
||||
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(
|
||||
|
Reference in New Issue
Block a user