Skip to content

Commit

Permalink
start page hemsedaltur pictures not entirely done
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Aug 13, 2024
1 parent 246ea90 commit 75cb6ba
Show file tree
Hide file tree
Showing 15 changed files with 347 additions and 0 deletions.
1 change: 1 addition & 0 deletions pages/hemsedal24/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'src/hemsedal24/index';
25 changes: 25 additions & 0 deletions public/images/hemsedalhero1text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 115 additions & 0 deletions src/hemsedal24/components/Hero.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
.container {
display: flex;
position: relative;
margin-top: 8rem;
flex-direction: column;
}

.left {
display: flex;
margin-bottom: 1.5rem;
margin-top: 1rem;
flex-direction: column;
margin-left: 4rem;
}

.text {
width: 100%;
z-index: 10;
font-size: 2.25rem;
line-height: 2.5rem;
text-align: center;
}

.text > h1 {
font-size: 4rem;
font-weight: 500;
}

.text > h2 {
font-size: 1rem;
line-height: 2.25rem;
margin-top: 0;
font-weight: 500;
}

.arrow {
position: absolute;
left: 1rem;
top: -3rem;
width: 100px;
font-family: 'Recoleta';
z-index: 5;
}

.arrow > span {
position: absolute;
top: -2.5rem;
}

.arrow > img {
width: 60px;
transform: rotate(45deg);
}

.blob {
position: absolute;
right: 11rem;
z-index: auto;
width: 33.333333%;
}

@media (min-width: 1024px) {
.container {
align-items: center;
flex-direction: row;
}

.left {
width: 50%;
}

.arrow {
top: 3.5rem;
left: -3rem;
width: 20%;
}

.arrow > span {
top: -2rem;
}

.arrow > img {
transform: rotate(0);
}
}

.hemsedalhero1 {
position: absolute;
top: -8rem;
right: 62.7vw;
width: 35%;
height: auto;
}

.hemsedalhero1text {
position: absolute;
top: -7.4rem;
right: 65.6vw;
width: 43%;
height: auto;
}

.hemsedalhero2 {
position: absolute;
top: -7rem;
left: 71.1vw;
width: 25%;
height: auto;
}

text {
font-weight: 400;
font-family: 'Graphik Web';
font-size: larger;
}
29 changes: 29 additions & 0 deletions src/hemsedal24/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import styles from "./Hero.module.css";

Check failure on line 1 in src/hemsedal24/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / tsc

'arrow' is declared but its value is never read.

Check failure on line 1 in src/hemsedal24/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / tsc

's' is declared but its value is never read.

Check failure on line 1 in src/hemsedal24/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / tsc

'Image' is declared but its value is never read.

Check failure on line 1 in src/hemsedal24/components/Hero.tsx

View workflow job for this annotation

GitHub Actions / tsc

'hemsedalhero1' is declared but its value is never read.

import arrow from "../images/curved-arrow.svg";
import s from "../images/s.svg"
import Image from 'next/image';
import blob from "../images/blob.svg";
import HemsedalImage from "./hemsedalimgcurvedtext";
import hemsedalhero1 from "../../../public/images/hemsedalhero1text.svg"
import hemsedalHero2 from "../images/hemsedalhero2.png"
import Container from "../../helsinki23/components/Container";


export default function Hero() {
return <section id="hero">
<Container className={styles.container}>
<HemsedalImage/>
{/* <img src={hemsedalhero1} alt="hemsedalbilde" className={styles.hemsedalhero1}/> */}
<img src={hemsedalHero2} alt="hemsedalbilde" className={styles.hemsedalhero2}/>
<div className={styles.blob}>
<img src={blob} alt="blobben" />
</div>
<div className={styles.text}>
<h1>Hemsedal</h1>
<h2>30. august-1. september</h2>
</div>
</Container>
</section>;
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/hemsedal24/components/hemsedalimgcurvedtext.tsx

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions src/hemsedal24/hemsedal.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.tur {
background: #ede8d7;
color: var(--color-standard__black);
margin: 0;
padding: 0;
font-family: 'Graphik Web';
min-height: 100vh;
overflow: auto;
}

.tur h1,
.tur h2,
.tur h3 {
font-family: 'Recoleta';
}

.tur h2 {
font-weight: 400;
font-size: 1.5rem;
line-height: 2rem;
}

.tur p {
max-width: 50rem;
font-size: 16px;
margin-top: 1.5rem;
font-weight: 400;
}

.tur li {
margin-bottom: 2rem;
}

.tur time {
display: inline-block;
width: 4rem;
margin-right: 3rem;
}

.tur a {
all: unset;
color: #fff;
cursor: pointer;
font-weight: 500;
}
3 changes: 3 additions & 0 deletions src/hemsedal24/images/blob.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/hemsedal24/images/curved-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/hemsedal24/images/curvetext.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/hemsedal24/images/hemsedalhero1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/hemsedal24/images/hemsedalhero1text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/hemsedal24/images/hemsedalhero2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions src/hemsedal24/images/test.html

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions src/hemsedal24/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import styles from './hemsedal.module.css'

Check failure on line 1 in src/hemsedal24/index.tsx

View workflow job for this annotation

GitHub Actions / tsc

'Image' is declared but its value is never read.

Check failure on line 1 in src/hemsedal24/index.tsx

View workflow job for this annotation

GitHub Actions / tsc

'Link' is declared but its value is never read.
import { NextPage } from 'next';
import Head from 'next/head';
import Image from 'next/image';
import Link from 'next/link';

import Hero from './components/Hero'

const Hemsedal24: NextPage = () => {
return (
<div className={styles.tur}>
<Head>
<title>Hemsedal</title>
<link rel="shortcut icon" href="/favicon.ico" />
</Head>
<Hero/>
</div>
);
};

export default Hemsedal24;

0 comments on commit 75cb6ba

Please sign in to comment.