-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
essi1
committed
Oct 14, 2022
1 parent
fab1cf1
commit 39285bc
Showing
7 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const Custom404 = () => { | ||
return ( | ||
<div> | ||
<h1>404</h1> | ||
<p>Sivua ei löytynyt.</p> | ||
</div> | ||
|
||
) | ||
} | ||
|
||
export default Custom404 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Link from "next/link"; | ||
|
||
const EventPick = ({ props, locale }) => { | ||
|
||
console.log('eventpick', props) | ||
|
||
return ( | ||
<div style={{ display: "flex", justifyContent: "center", margin: "80px 0" }}> | ||
<Link href={props.event_item.url[locale]}> | ||
<div style={{ position: "relative", width: "100%", maxWidth: "900px", height: "100%", minHeight: "320px" }}> | ||
<img src={props.event_item.image} width={700} height={500} style={{ width: "100%", display: "block" }} /> | ||
<div style={{ position: "absolute", textAlign: "center", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }}> | ||
<h2 style={{ fontSize: 30 }}>{props.event_item.title[locale]}</h2> | ||
<p style={{ fontFamily: "Forma DJR Micro", fontSize: 20, fontWeight: 300 }}>{props.event_item.short_desc[locale]}</p> | ||
</div> | ||
</div> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
|
||
export default EventPick |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Head from "next/head" | ||
import Layout from "../components/Layout/Layout" | ||
import Custom404 from "../components/Custom404/Custom404" | ||
|
||
const Custom404Page = () => { | ||
|
||
return ( | ||
<> | ||
<Head> | ||
<title>404</title> | ||
</Head> | ||
|
||
<Layout locale={"fi"}> | ||
<Custom404 /> | ||
</Layout> | ||
</> | ||
|
||
) | ||
} | ||
|
||
export default Custom404Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters