Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf6787cc

Browse files
committed
feat: /maps implemented
1 parentb62d6cc commitf6787cc

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

‎pages/index.tsx‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
importReactfrom'react';
22
importMainLayoutfrom'@/layouts/MainLayout';
3-
import{Spacer}from'@geist-ui/react';
3+
import{Button,Spacer}from'@geist-ui/react';
44
importLandingWorldMapfrom'@/components/Landing/LandingWorldMap';
55
importFeatureContainerfrom'@/components/Landing/FeatureContainer';
66
importMapShowContainerfrom'@/components/Landing/MapShowContainer';
7+
import{Globe}from'@geist-ui/react-icons';
8+
importLinkfrom'next/link';
79

810
constHome:React.FC=()=>(
911
<MainLayoutshowNav={true}>
@@ -17,6 +19,14 @@ const Home: React.FC = () => (
1719
<h1className="mx-auto">Try out These Maps!</h1>
1820
<Spacery={2}/>
1921
<MapShowContainer/>
22+
<Spacery={2}/>
23+
<divclassName="mx-auto">
24+
<Linkhref="/maps">
25+
<Buttonautotype="secondary"icon={<Globe/>}>
26+
View All Maps
27+
</Button>
28+
</Link>
29+
</div>
2030
<Spacery={10}/>
2131
</div>
2232
</MainLayout>

‎pages/maps.tsx‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
importMapShowContainerfrom'@/components/Landing/MapShowContainer';
2+
importMainLayoutfrom'@/layouts/MainLayout';
3+
import{Spacer}from'@geist-ui/react';
4+
importReactfrom'react';
5+
6+
constAllMaps=()=>(
7+
<MainLayoutshowNav={true}>
8+
<divclassName="flex flex-col">
9+
<h1className="main-heading">All Maps</h1>
10+
<divclassName="main-description">
11+
Create Beautiful Chloropeth Visualisation from over 50+ Collections of Countries&
12+
Continents
13+
</div>
14+
<Spacery={2}/>
15+
<MapShowContainer/>
16+
</div>
17+
</MainLayout>
18+
);
19+
20+
exportdefaultAllMaps;

‎styles/main.css‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ text {
4646
text {
4747
transition: none!important;
4848
}
49-
5049
/* Saves from Navbar being not Sticky */
5150
#__next {
5251
overflow-x: unset!important;
@@ -71,9 +70,6 @@ text {
7170
.cursor-move {
7271
cursor: all-scroll;
7372
}
74-
.static {
75-
cursor: not-allowed;
76-
}
7773
.draggable {
7874
cursor: move;
7975
}
@@ -94,3 +90,14 @@ input[type='number']::-webkit-outer-spin-button {
9490
appearance: none;
9591
margin:0;
9692
}
93+
/* Global Styles */
94+
.main-heading {
95+
margin:50px auto;
96+
}
97+
.main-description {
98+
max-width:500px;
99+
margin:0 auto;
100+
text-align: center;
101+
font-size:20px;
102+
opacity:0.8;
103+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp