Skip to content

Commit

Permalink
Update Color dan Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yakubhariana70 committed Nov 17, 2023
1 parent e4eca49 commit fa67bee
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 32 deletions.
Binary file modified src/assets/jakarta-home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/pages/DirectionMap/DirectionMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ const DirectionMap = () => {
visibility: "visible",
},
paint: {
"fill-color": "#009B98",
"fill-opacity": 0.15,
"fill-outline-color": "white",
"fill-color": "rgba(204,52,51,0.15)",
"fill-opacity": 1,
"fill-outline-color": "black",
},
});

Expand All @@ -131,7 +131,7 @@ const DirectionMap = () => {
"line-cap": "round",
},
paint: {
"line-color": "blue",
"line-color": "#cc3433",
"line-width": 2,
},
});
Expand All @@ -155,7 +155,7 @@ const DirectionMap = () => {
"line-cap": "round",
},
paint: {
"line-color": "red",
"line-color": "#1A1D40",
"line-width": 2,
},
});
Expand All @@ -179,7 +179,7 @@ const DirectionMap = () => {
"line-cap": "round",
},
paint: {
"line-color": "#877b59",
"line-color": "#C2FE46",
"line-width": 2,
},
});
Expand Down
58 changes: 40 additions & 18 deletions src/pages/Home/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,69 @@ header {
}

.home-picture {
/* height: 40vh; */
flex: 1 1 50vh;
border: 1px solid gray;
background-image: url("../../assets/jakarta-home.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
/* height: 40vh; */
flex: 1 1 50vh;
border: 1px solid gray;
background-image: url("../../assets/jakarta-home.jpg");
background-size: cover;
background-position: top;
background-repeat: no-repeat;
}

.home-content {
flex: 1 1 50vh;
position: relative;
display: flex;
padding: 4rem 4rem ;
padding: 4rem 4rem;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}


.hero-section{
.hero-section {
width: 40vw;
}

.hero-section h1{
.hero-section h1 {
font-size: calc(26px + 0.312vw);
font-weight: bold;
margin-bottom: 1rem;
text-transform: uppercase;
}
.hero-section sub {
font-size: calc(14px + 0.312vw);
text-transform: uppercase;
font-weight: bold;
margin-bottom: 2rem;
color: lightslategray;
}

.hero-section p{
font-size: large;
.hero-section p {
margin-top: 2rem;
font-size: calc(14px + 0.312vw);
text-align: justify;
margin-bottom: 3rem;
}

.hero-section .btn{
margin-top: 1.5rem;
.hero-section .btn-hero {
background-color: #1A1D40;
text-decoration: none;
font-weight: bold;
color: white;
padding: 1rem;
padding-inline: 2rem;
text-align: center;
border-radius: 3rem;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* PHONE */
@media (max-height: 576px), screen and (orientation: portrait) {
.home-content{
.home-content {
padding: 3rem 2rem;
}
.hero-section{
.hero-section {
width: 100%;
}
.home-picture{
background-position: center;
}
}
16 changes: 8 additions & 8 deletions src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import NavigationBar from "../../components/NavigationBar";
import {Link} from "react-router-dom";
import { Link } from "react-router-dom";

// CSS
import "./Home.css";
Expand All @@ -16,15 +16,15 @@ const Home = () => {
<div className="home-picture"></div>
<div className="home-content">
<div className="hero-section">
<h1>Jelajahi Pesona Budaya dan Wisata Jakarta Bersama Kami</h1>
<h1>Selamat Datang di Paryatana Bhumi Jakarta!</h1>
<sub>Jelajahi Keindahan Bertamasya di Kota Jakarta.</sub>
<p>
Terbenam dalam pesona Jakarta, kota yang tak hanya menawarkan
kehidupan perkotaan yang berdenyut, tetapi juga mempersembahkan
warisan budaya yang tak ternilai. Mulailah petualangan Anda dan
temukan cerita di setiap sudutnya
Temukan warisan sejarah dan keindahan yang menggugah jiwa kota ini.
Dapatkan pengalaman unik dengan peta interaktif hasil karya Dipo
Journey. Saksikan Jakarta dari perspektif tiga dimensi &#40;3D&#41;.
</p>
<Link to="/direction-map" className="btn btn-success">
Jelajahi Pariwisata Jakarta
<Link to="/storytelling" className="btn-hero">
Mulai Petualanganmu!
</Link>
</div>
</div>
Expand Down
12 changes: 12 additions & 0 deletions src/pages/Storytelling/Storytelling.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@
/* height: 100px; */
border-radius: calc(15px + 0.312vw);
}
.chapter .btn-hero {
background-color: #1A1D40;
text-decoration: none;
font-weight: bold;
color: white;
padding: 1rem;
padding-inline: 2rem;
text-align: center;
border-radius: 3rem;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

/* PHONE */
@media (max-width: 576px), screen and (orientation: portrait) {
Expand Down
4 changes: 4 additions & 0 deletions src/pages/Storytelling/Storytelling.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useRef, useState } from "react";
import mapboxgl from "mapbox-gl";
import { useInView } from "react-intersection-observer";
import { Link } from "react-router-dom";

import NavigationBar from "../../components/NavigationBar";
import TourismStory from "./TourismStory";
Expand Down Expand Up @@ -354,6 +355,9 @@ const Storytelling = () => {
</section>
<section className="chapter" ref={sectionThirteen}>
<TourismStory story={config.chapters[12]} />
<Link to="/direction-map" className="btn-hero">
Tourism Map
</Link>
</section>
</main>
</section>
Expand Down

0 comments on commit fa67bee

Please sign in to comment.