From 8a5ba84e4cb3659a9a5225300b194de32e190c84 Mon Sep 17 00:00:00 2001 From: helemork Date: Wed, 10 Apr 2019 16:45:19 +0200 Subject: [PATCH 1/5] =?UTF-8?q?fikset=20bilde-objektet=20=C3=B8verst=20p?= =?UTF-8?q?=C3=A5=20siden=20s=C3=A5=20den=20toggler=20mellom=20to=20klasse?= =?UTF-8?q?r=20p=C3=A5=20transparang=20fremfor=20inline=20kode,=20pluss=20?= =?UTF-8?q?fikset=20litt=20snedige=20sm=C3=A5bugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kodetre/Kodeliste/KodeVindu.js | 3 +-- src/Kodetre/Kodeliste/Kodekort.js | 38 +++++++++--------------------- src/style/Sidebar.css | 20 ++++++++++++++++ 3 files changed, 32 insertions(+), 29 deletions(-) diff --git a/src/Kodetre/Kodeliste/KodeVindu.js b/src/Kodetre/Kodeliste/KodeVindu.js index b5f9ad1a1..6df2dd9c6 100644 --- a/src/Kodetre/Kodeliste/KodeVindu.js +++ b/src/Kodetre/Kodeliste/KodeVindu.js @@ -70,8 +70,7 @@ const KodeVindu = ({ square="false" elevation={4} style={{ - position: "relative", - top: -72 + position: "relative" }} > - +
+ Header her? Midlertidig. +
- {/* - // for fremtidig oppgradering om vi ønsker det, isåfal må vi detektere transparang bakgrunn på et vis
- */} Date: Thu, 11 Apr 2019 14:06:19 +0200 Subject: [PATCH 2/5] =?UTF-8?q?har=20container=20og=20style=20for=20top=20?= =?UTF-8?q?header,=20men=20den=20er=20midlertidig=20skjult=20inntil=20vi?= =?UTF-8?q?=20er=20enige=20om=20bruk.=20bildene=20er=20fine=20n=C3=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kodetre/Kodeliste/Kodekort.js | 4 +--- src/style/App.css | 15 --------------- src/style/Sidebar.css | 22 ++++++++++++---------- 3 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/Kodetre/Kodeliste/Kodekort.js b/src/Kodetre/Kodeliste/Kodekort.js index 7d338d354..2d9b65d70 100644 --- a/src/Kodetre/Kodeliste/Kodekort.js +++ b/src/Kodetre/Kodeliste/Kodekort.js @@ -45,9 +45,7 @@ class Kodekort extends React.Component { square={false} className="sidebar_top_area sidebar_background_element" > -
- Header her? Midlertidig. -
+
Date: Thu, 11 Apr 2019 14:39:23 +0200 Subject: [PATCH 3/5] plassert alt av kategorier inn i sidebar, fikset lenker --- src/MainDrawer/MainDrawer.js | 81 ++++++++++++++++++++++++++++-------- 1 file changed, 63 insertions(+), 18 deletions(-) diff --git a/src/MainDrawer/MainDrawer.js b/src/MainDrawer/MainDrawer.js index ac51f38ee..19364cdb9 100644 --- a/src/MainDrawer/MainDrawer.js +++ b/src/MainDrawer/MainDrawer.js @@ -15,9 +15,14 @@ import { CloudUpload, CloudDownload, Comment, - Waves, Panorama, - Info + Info, + Pets, + Landscape, + BubbleChart, + Layers, + Healing, + AssignmentInd } from "@material-ui/icons"; import React, { Component } from "react"; import { withRouter } from "react-router-dom"; @@ -71,20 +76,58 @@ class MainDrawer extends Component { /> } + icon={} primary="Landskap" /> + } + primary="Fylke" + /> + } + primary="Naturvernområde" + /> + } + primary="Truet art/natur" + /> + } + primary="Art" + /> + } primary="Informasjon" onClick={this.handleClickInfoTab} /> + Datagrunnlag } primary="Last ned data" onClick={this.handleClickLastNed} /> + } + primary="Levere data" + /> + + } + primary="Datakilder" + /> + } + primary="Kildekode" + /> - Bidra + Kontakt } primary="Tilbakemeldinger" /> - } - primary="Kildekode" - /> - } - primary="Levere data" - /> - - Driftes av +
- +
@@ -135,7 +167,7 @@ class MainDrawer extends Component { handleClickLastNed = () => window.open("https://data.artsdatabanken.no/"); handleClickLastOpp = () => window.open( - "https://github.com/Artsdatabanken/nin-kart-frontend/blob/master/docs/BidraMedData.md" + "https://github.com/Artsdatabanken/nin-kart-frontend/wiki/%C3%98nsker-du-%C3%A5-bidra-med-data%3F" ); handleClickLogo = () => window.open("https://artsdatabanken.no"); handleClickMap = () => this.props.history.push("/"); @@ -145,6 +177,19 @@ class MainDrawer extends Component { handleClickLandskap = () => this.props.history.push("/Natur_i_Norge/Landskap/"); handleClickStat = () => this.props.history.push("/Natur_i_Norge/Stats/"); + + handleClickFylke = () => this.props.history.push("/Fylke/"); + handleClickNaturvernområde = () => + this.props.history.push("/Naturvernområde/"); + handleClickTruet_art_natur = () => + this.props.history.push("/Truet_art_natur/"); + handleClickArt = () => this.props.history.push("/Biota/"); + handleClickDatakilde = () => this.props.history.push("/Datakilde/"); + handleClickNaturvernområde = () => + this.props.history.push("/Naturvernområde/"); + handleClickNaturvernområde = () => + this.props.history.push("/Naturvernområde/"); + handleNavigate = url => this.props.history.push(url); } From 9dd5dc963e86b1cd6c3be57815d91a1e48bf5dae Mon Sep 17 00:00:00 2001 From: helemork Date: Thu, 11 Apr 2019 15:14:24 +0200 Subject: [PATCH 4/5] =?UTF-8?q?korrigerte=20bildelenken=20til=20=C3=A5=20h?= =?UTF-8?q?ente=20ut=20riktige=20bilder=20fra=20json,=20og=20skjuler=20bil?= =?UTF-8?q?de-elementet=20n=C3=A5r=20det=20ikke=20finnes=20noen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kodetre/Kodeliste/KodeVindu.js | 1 + src/Kodetre/Kodeliste/Kodekort.js | 16 +++++++++++++--- src/style/Sidebar.css | 2 ++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Kodetre/Kodeliste/KodeVindu.js b/src/Kodetre/Kodeliste/KodeVindu.js index 6df2dd9c6..f3282f814 100644 --- a/src/Kodetre/Kodeliste/KodeVindu.js +++ b/src/Kodetre/Kodeliste/KodeVindu.js @@ -86,6 +86,7 @@ const KodeVindu = ({ erAktivert={erAktivert} onFitBounds={onFitBounds} onToggleLayer={onToggleLayer} + bilde={meta.foto} /> {kode === "NN-LA-TI" && ( diff --git a/src/style/Sidebar.css b/src/style/Sidebar.css index 4e0ad69d5..e226218ca 100644 --- a/src/style/Sidebar.css +++ b/src/style/Sidebar.css @@ -124,12 +124,14 @@ .sidebar_top_image { height: 250px; + background: #b7d3d8; background-size: cover; background-position: center; } .sidebar_top_image.trasparent_image { filter: drop-shadow(rgba(0, 0, 0, 0.5) 5px 5px 4px); + background: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; From 3e218f7d79f2d3903bc3dbf4b406cac451b90ce7 Mon Sep 17 00:00:00 2001 From: helemork Date: Thu, 11 Apr 2019 15:25:30 +0200 Subject: [PATCH 5/5] removing unused items --- src/Kodetre/Kodeliste/Kodekort.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Kodetre/Kodeliste/Kodekort.js b/src/Kodetre/Kodeliste/Kodekort.js index c05dd0238..419f6d761 100644 --- a/src/Kodetre/Kodeliste/Kodekort.js +++ b/src/Kodetre/Kodeliste/Kodekort.js @@ -1,6 +1,4 @@ -import { CardMedia } from "@material-ui/core"; import React from "react"; -import config from "../../config"; import språk from "../../språk"; import Tittelblokk from "./Tittelblokk"; import tinycolor from "tinycolor2";