Skip to content

Commit

Permalink
Merge branch 'trekking-page' of https://github.com/IkkiOcean/Uttarakh…
Browse files Browse the repository at this point in the history
…and-Culture-NewUI into trekking-page
  • Loading branch information
IkkiOcean committed Oct 23, 2024
2 parents 08ca8d2 + 5971132 commit fc090e9
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 75 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 23 additions & 14 deletions src/app/map/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useRef } from 'react';
import {useRef} from 'react';
import map from "/public/mapUk.svg";
import styles from "./page.module.css";
import Image from "next/image";
Expand Down Expand Up @@ -56,21 +56,30 @@ const Map = () => {
};

return (
<div>
<div className={styles["uttarakhand-map"]}>
<h1 className={styles["uttarakhand-map-heading"]}>Map of Uttarakhand</h1>
<p>Detailed map of Uttarakhand</p>
<div ref={mapBoxHeightRef} className={styles["uttarakhand-map-container"]}>
<Image className={styles["map-image"]} ref={mapImageRef} src={map} alt="Important Map of Uttarakhand" decoding="async" />
<>
{/*<div>*/}
{/* <Image src={"/mapClick.svg"} alt={""} width={100} height={100} />*/}
{/*</div>*/}

<div>
<div className={styles["uttarakhand-map"]}>
<h1 className={styles["uttarakhand-map-heading"]}>Map of Uttarakhand</h1>
<p>Detailed map of Uttarakhand</p>
<div ref={mapBoxHeightRef} className={styles["uttarakhand-map-container"]}>
<Image className={styles["map-image"]} ref={mapImageRef} src={map}
alt="Important Map of Uttarakhand"
decoding="async"/>
</div>
<div className={styles["zoom-button-container"]}>
<p onClick={handleZoomIn} className={styles["zoom-level-button"]}>+</p>
<p onClick={handleZoomOut} className={styles["zoom-level-button"]}>-</p>
</div>
<p>Zoom to view Map</p>
</div>
<div className={styles["zoom-button-container"]}>
<p onClick={handleZoomIn} className={styles["zoom-level-button"]}>+</p>
<p onClick={handleZoomOut} className={styles["zoom-level-button"]}>-</p>
</div>
<p>Zoom to view Map</p>
</div>
</div>
);
</>
)
;
};

export default Map;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/about/About.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import "./About.css";
import "./About.module.css";

const AboutUs: React.FC = () => {
return (
Expand Down
112 changes: 56 additions & 56 deletions src/components/ui/Faq.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,122 +4,122 @@
min-width: 100%;
height: auto;
margin-top: 5rem;
}
.faqContainer h1 {
font-size: 48px;
}

.faqContainer h1 {
font-size: 48px;
line-height: 1.2;
margin-bottom: 20px;
margin-top: 20px;
}

@media (max-width: 1024px) {
.faqContainer h1 {
font-size: 40px;
margin-top: 20px;
font-size: 40px;
margin-top: 20px;
}
}

@media (max-width: 768px) {
.faqContainer h1 {
font-size: 35px;
margin-top: 30px;
font-size: 35px;
margin-top: 30px;
}
}

@media (max-width: 600px) {
.faqContainer h1 {
font-size: 28px;
margin-top: 50px;
font-size: 28px;
margin-top: 50px;
}
}

@media (max-width: 499px) {
.faqContainer h1 {
font-size: 28px;
margin-top: 50px;
font-size: 28px;
margin-top: 50px;
}
}

.faqIcon {
margin-top: 10px;
}
.faqTitle {
margin-top: 10px;
.faqIcon {
margin-top: 10px;
}

.faqTitle {
margin-top: 10px;
font-weight: normal;
font-size: 18px;
}
.faqs {
font-size: 18px;
}

.faqs {
width: 100%;
max-width: 768px;
margin: 0 auto;
padding: 15px;
text-align: left;
}
.faq {
text-align: left;
}

.faq {
margin: 15px 0;
padding: 15px;
background: #f2f2f2;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.2s ease;
}
.faq:hover {
}

.faq:hover {
background-color: #e2e2e2;
}
.faqQuestion {
}

.faqQuestion {
position: relative;
font-size: 20px;
padding-right: 30px;
transition: all 0.2s ease;
text-align: left;
}
.faqQuestion::after {
}

.faqQuestion::after {
content: "+";
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
font-size: 20px;
transition: all 0.2s ease;
}
.faq.open .faqQuestion::after {
}

.faq.open .faqQuestion::after {
content: "-";
}
.faqAnswer {
}

.faqAnswer {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: all 0.2s ease-in-out;
text-align: left;
}
.faq.open .faqAnswer {
}

.faq.open .faqAnswer {
opacity: 1;
max-height: 500px;
margin-top: 10px;
}
.contactButton {
max-height: 500px;
margin-top: 10px;
}

.contactButton {
font-size: 14px;
color: white;
background-color: var(--black);
padding: 10px 20px;
margin: 20px;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 .7px .7px -.6px #00000026,
0 1.8px 1.8px -1.2px #00000025,
0 3.6px 3.6px -1.9px #00000023,
0 6.9px 6.9px -2.5px #00000020,
0 13.6px 13.6px -3.1px #0000001b,
0 30px 30px -3.8px #0000000d;
}
box-shadow: 0 .7px .7px -.6px #00000026,
0 1.8px 1.8px -1.2px #00000025,
0 3.6px 3.6px -1.9px #00000023,
0 6.9px 6.9px -2.5px #00000020,
0 13.6px 13.6px -3.1px #0000001b,
0 30px 30px -3.8px #0000000d;
}
2 changes: 1 addition & 1 deletion src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* These routes do not require authentication
* @type {string[]}
*/
export const publicRoutes: string[] = ["/", "/explore", "/language", "/trekking", "/map"];
export const publicRoutes: string[] = ["/", "/explore", "/language", "/trekking", "/map", "/about"];

/**
* An array of routes that are used for authentication
Expand Down

0 comments on commit fc090e9

Please sign in to comment.