minor design stuff, style front page info block and add more circle headings

This commit is contained in:
elisejakob
2024-06-10 11:13:59 +02:00
parent f7debf565d
commit 2dab1937d2
10 changed files with 91 additions and 37 deletions

View File

@ -60,21 +60,25 @@ export default async function Home() {
<FeaturedEvents events={featuredEvents} /> <FeaturedEvents events={featuredEvents} />
<UpcomingEvents events={events} /> <UpcomingEvents events={events} />
<div className="infoBlock"> <div className="infoBlock">
<h2>Skal du besøke Chateau Neuf?</h2> <div>
<p> <h2>Skal du besøke Chateau Neuf?</h2>
Vi hjelper deg med å finne frem, og sørger for at du har en fin <p>
opplevelse Vi hjelper deg med å finne frem, og sørger for at du har en fin
</p> opplevelse
<Link href="/praktisk#adkomst" className="button"> </p>
Adresse og adkomst &rarr; <Link href="/praktisk#adkomst" className="button">
</Link> Adresse og adkomst &rarr;
<Link href="/praktisk#adkomst" className="button"> </Link>
Billetter &rarr; <Link href="/praktisk#adkomst" className="button">
</Link> Billetter &rarr;
<Link href="/praktisk#adkomst" className="button"> </Link>
Åpningstider &rarr; <Link href="/praktisk#adkomst" className="button">
</Link> Åpningstider &rarr;
<Pig type="point" /> </Link>
</div>
<div className="pig">
<Pig type="point" />
</div>
</div> </div>
<NewsList heading="Siste nytt" limit={3} featured news={news} /> <NewsList heading="Siste nytt" limit={3} featured news={news} />
</main> </main>

View File

@ -48,10 +48,12 @@ export const EventItem = ({
nextOccurrence?.start && nextOccurrence?.start &&
formatDate(nextOccurrence.start, commonDateTimeFormat)} formatDate(nextOccurrence.start, commonDateTimeFormat)}
{numOccurrences > 1 && nextOccurrence?.start && ( {numOccurrences > 1 && nextOccurrence?.start && (
<span> <div>
<em>Neste:</em>{" "} <span>
{formatDate(nextOccurrence.start, commonDateTimeFormat)} {formatDate(nextOccurrence.start, commonDateTimeFormat)}
</span> </span>
<p>Flere datoer ({numOccurrences}) &rarr;</p>
</div>
)} )}
</p> </p>
)} )}

View File

@ -4,10 +4,18 @@ import styles from "./featuredEvents.module.scss";
export const FeaturedEvents = ({ events }: { events: EventFragment[] }) => { export const FeaturedEvents = ({ events }: { events: EventFragment[] }) => {
return ( return (
<ul className={styles.eventList}> <section>
{events.slice(0, 3).map((event) => ( <h2 className="circlehead">
<EventItem key={event.id} event={event} mode="list" /> <span className="circle"></span>
))} <span className="circle"></span>
</ul> <span className="circle"></span>
Arrangementer
</h2>
<ul className={styles.eventList}>
{events.slice(0, 3).map((event) => (
<EventItem key={event.id} event={event} mode="list" />
))}
</ul>
</section>
); );
}; };

View File

@ -1,10 +1,10 @@
.logo { .logo {
color: currentColor; color: currentColor;
width: 16rem; width: 12rem;
transition: width .3s ease; transition: width .3s ease;
&.index { &.index {
width: 20rem; width: 16rem;
} }
svg { svg {

View File

@ -4,8 +4,6 @@ export const NeonChillPig = () => {
<div className={styles.neonChillPig}> <div className={styles.neonChillPig}>
<svg <svg
className={styles.static} className={styles.static}
width="258"
height="161"
viewBox="0 0 258 161" viewBox="0 0 258 161"
fill="none" fill="none"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -58,8 +56,6 @@ export const NeonChillPig = () => {
<svg <svg
className={styles.animate} className={styles.animate}
width="258"
height="161"
viewBox="0 0 258 161" viewBox="0 0 258 161"
fill="none" fill="none"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

View File

@ -1,7 +1,6 @@
.neonChillPig { .neonChillPig {
position: relative; position: relative;
width: 20rem; width: 20rem;
height: 8rem;
.static, .static,
.animate { .animate {

View File

@ -7,9 +7,6 @@ import { LogoNeuf } from "../general/Logo";
export const Footer = () => { export const Footer = () => {
return ( return (
<footer className={styles.footer}> <footer className={styles.footer}>
<div className={styles.logo}>
<LogoNeuf />
</div>
<div className={styles.contact}> <div className={styles.contact}>
<ul className={styles.contactList}> <ul className={styles.contactList}>
<li className={styles.contactItem}> <li className={styles.contactItem}>
@ -87,7 +84,9 @@ export const Footer = () => {
</li> </li>
</ul> </ul>
</div> </div>
<NeonChillPig /> <div className={styles.pig}>
<NeonChillPig />
</div>
<ToTop /> <ToTop />
</footer> </footer>
); );

View File

@ -1,5 +1,4 @@
.footer { .footer {
min-height: 60vh;
padding: var(--spacing-sitepadding); padding: var(--spacing-sitepadding);
background: var(--color-chateauBlue); background: var(--color-chateauBlue);
color: var(--color-betongGray); color: var(--color-betongGray);
@ -47,4 +46,12 @@
>div { >div {
width: 100%; width: 100%;
} }
}
.pig {
position: relative;
top: 0;
right: 0;
transform: translate(1vw, 40%);
z-index: 800;
} }

View File

@ -17,7 +17,14 @@ export const NewsList = ({
return ( return (
<section className={styles.newsWrapper}> <section className={styles.newsWrapper}>
{heading && <h2 className="suphead">{heading}</h2>} {heading && (
<h2 className="circlehead">
<span className="circle"></span>
<span className="circle"></span>
<span className="circle"></span>
{heading}
</h2>
)}
<ul className={`${styles.newsList} ${featured && styles.featured}`}> <ul className={`${styles.newsList} ${featured && styles.featured}`}>
{filteredNews.map((singleNews) => ( {filteredNews.map((singleNews) => (
<NewsItem key={singleNews.id} news={singleNews} /> <NewsItem key={singleNews.id} news={singleNews} />

View File

@ -294,4 +294,36 @@ input[type="text"] {
width: 50%; width: 50%;
vertical-align: top; vertical-align: top;
margin-bottom: var(--spacing-section-bottom); margin-bottom: var(--spacing-section-bottom);
}
.infoBlock {
background: var(--color-goldenBeige);
margin: 0 calc(var(--spacing-sitepadding)*-1);
padding: var(--spacing-sitepadding) var(--spacing-sitepadding) var(--spacing-section-bottom);
position: relative;
overflow: hidden;
display: grid;
grid-template-columns: 2fr 1fr;
align-items: center;
min-height: 16rem;
h2 {
margin-bottom: 1rem;
}
p {
margin-bottom: 2rem;
}
.button {
margin-right: .5rem;
}
.pig {
transform: scaleX(-1);
position: absolute;
right: 0;
bottom: -50%;
}
} }