1
1
import React from "react" ;
2
- import { Plus_Jakarta_Sans } from "next/font/google" ;
2
+ import { Oxygen } from "next/font/google" ;
3
+ import Link from "next/link" ;
3
4
import { Stack , Flex , Button } from "@mantine/core" ;
4
5
import styled from "styled-components" ;
5
- import { FaChevronRight } from "react-icons/fa6" ;
6
+ import { FaChevronRight , FaGithub , FaStar } from "react-icons/fa6" ;
6
7
7
- const plusJakartaSans = Plus_Jakarta_Sans ( {
8
+ const oxygen = Oxygen ( {
8
9
subsets : [ "latin-ext" ] ,
10
+ weight : [ "700" ] ,
9
11
} ) ;
10
12
11
13
const StyledHeroSection = styled . main `
@@ -56,9 +58,7 @@ const StyledHeroTitle = styled.h1`
56
58
width: fit-content;
57
59
line-height: 1.15;
58
60
max-width: 30rem;
59
- letter-spacing: -0.75px;
60
- word-spacing: 6px;
61
- font-family: ${ plusJakartaSans . style . fontFamily } ;
61
+ font-family: ${ oxygen . style . fontFamily } ;
62
62
63
63
@media only screen and (min-width: 576px) {
64
64
font-size: 3.4rem;
@@ -100,11 +100,28 @@ const StyledHeroText = styled.h2`
100
100
}
101
101
` ;
102
102
103
- export const HeroSection = ( ) => {
103
+ export const HeroSection = ( { stars = 0 } ) => {
104
104
return (
105
105
< StyledHeroSection >
106
106
< StyledHeroSectionBody >
107
107
< Stack flex = "1" miw = { 250 } mx = "auto" align = "center" >
108
+ < Link href = "https://github.com/AykutSarac/jsoncrack.com" target = "_blank" rel = "noopener" >
109
+ < Button
110
+ variant = "default"
111
+ radius = "xl"
112
+ ta = "left"
113
+ leftSection = { < FaGithub size = "18" /> }
114
+ rightSection = {
115
+ < Flex ml = "sm" c = "dimmed" align = "center" gap = "4" >
116
+ < FaStar />
117
+ { stars }
118
+ </ Flex >
119
+ }
120
+ >
121
+ GitHub
122
+ </ Button >
123
+ </ Link >
124
+
108
125
< StyledHeroTitle > Visualize JSON into interactive graphs</ StyledHeroTitle >
109
126
< StyledHeroText >
110
127
The best online JSON viewer to < strong > visualize</ strong > , < strong > format</ strong > and{ " " }
@@ -120,7 +137,7 @@ export const HeroSection = () => {
120
137
radius = "md"
121
138
rightSection = { < FaChevronRight /> }
122
139
fw = "500"
123
- mt = "lg "
140
+ mt = "sm "
124
141
>
125
142
Go to Editor
126
143
</ Button >
@@ -130,11 +147,10 @@ export const HeroSection = () => {
130
147
component = "a"
131
148
color = "#202842"
132
149
href = "/editor"
133
- size = "lg "
150
+ size = "xl "
134
151
radius = "md"
135
152
rightSection = { < FaChevronRight /> }
136
- fw = "500"
137
- mt = "lg"
153
+ mt = "sm"
138
154
>
139
155
Go to Editor
140
156
</ Button >
0 commit comments