minor design stuff, style front page info block and add more circle headings
This commit is contained in:
@ -60,6 +60,7 @@ export default async function Home() {
|
|||||||
<FeaturedEvents events={featuredEvents} />
|
<FeaturedEvents events={featuredEvents} />
|
||||||
<UpcomingEvents events={events} />
|
<UpcomingEvents events={events} />
|
||||||
<div className="infoBlock">
|
<div className="infoBlock">
|
||||||
|
<div>
|
||||||
<h2>Skal du besøke Chateau Neuf?</h2>
|
<h2>Skal du besøke Chateau Neuf?</h2>
|
||||||
<p>
|
<p>
|
||||||
Vi hjelper deg med å finne frem, og sørger for at du har en fin
|
Vi hjelper deg med å finne frem, og sørger for at du har en fin
|
||||||
@ -74,8 +75,11 @@ export default async function Home() {
|
|||||||
<Link href="/praktisk#adkomst" className="button">
|
<Link href="/praktisk#adkomst" className="button">
|
||||||
Åpningstider →
|
Åpningstider →
|
||||||
</Link>
|
</Link>
|
||||||
|
</div>
|
||||||
|
<div className="pig">
|
||||||
<Pig type="point" />
|
<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>
|
||||||
);
|
);
|
||||||
|
@ -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 && (
|
||||||
|
<div>
|
||||||
<span>
|
<span>
|
||||||
<em>Neste:</em>{" "}
|
|
||||||
{formatDate(nextOccurrence.start, commonDateTimeFormat)}
|
{formatDate(nextOccurrence.start, commonDateTimeFormat)}
|
||||||
</span>
|
</span>
|
||||||
|
<p>Flere datoer ({numOccurrences}) →</p>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
@ -4,10 +4,18 @@ import styles from "./featuredEvents.module.scss";
|
|||||||
|
|
||||||
export const FeaturedEvents = ({ events }: { events: EventFragment[] }) => {
|
export const FeaturedEvents = ({ events }: { events: EventFragment[] }) => {
|
||||||
return (
|
return (
|
||||||
|
<section>
|
||||||
|
<h2 className="circlehead">
|
||||||
|
<span className="circle"></span>
|
||||||
|
<span className="circle"></span>
|
||||||
|
<span className="circle"></span>
|
||||||
|
Arrangementer
|
||||||
|
</h2>
|
||||||
<ul className={styles.eventList}>
|
<ul className={styles.eventList}>
|
||||||
{events.slice(0, 3).map((event) => (
|
{events.slice(0, 3).map((event) => (
|
||||||
<EventItem key={event.id} event={event} mode="list" />
|
<EventItem key={event.id} event={event} mode="list" />
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
</section>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.neonChillPig {
|
.neonChillPig {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
height: 8rem;
|
|
||||||
|
|
||||||
.static,
|
.static,
|
||||||
.animate {
|
.animate {
|
||||||
|
@ -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>
|
||||||
|
<div className={styles.pig}>
|
||||||
<NeonChillPig />
|
<NeonChillPig />
|
||||||
|
</div>
|
||||||
<ToTop />
|
<ToTop />
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
|
@ -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);
|
||||||
@ -48,3 +47,11 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pig {
|
||||||
|
position: relative;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
transform: translate(1vw, 40%);
|
||||||
|
z-index: 800;
|
||||||
|
}
|
@ -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} />
|
||||||
|
@ -295,3 +295,35 @@ input[type="text"] {
|
|||||||
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%;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user