11import 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" ;
34import { Stack , Flex , Button } from "@mantine/core" ;
45import styled from "styled-components" ;
5- import { FaChevronRight } from "react-icons/fa6" ;
6+ import { FaChevronRight , FaGithub , FaStar } from "react-icons/fa6" ;
67
7- const plusJakartaSans = Plus_Jakarta_Sans ( {
8+ const oxygen = Oxygen ( {
89 subsets : [ "latin-ext" ] ,
10+ weight : [ "700" ] ,
911} ) ;
1012
1113const StyledHeroSection = styled . main `
@@ -56,9 +58,7 @@ const StyledHeroTitle = styled.h1`
5658 width: fit-content;
5759 line-height: 1.15;
5860 max-width: 30rem;
59- letter-spacing: -0.75px;
60- word-spacing: 6px;
61- font-family: ${ plusJakartaSans . style . fontFamily } ;
61+ font-family: ${ oxygen . style . fontFamily } ;
6262
6363 @media only screen and (min-width: 576px) {
6464 font-size: 3.4rem;
@@ -100,11 +100,28 @@ const StyledHeroText = styled.h2`
100100 }
101101` ;
102102
103- export const HeroSection = ( ) => {
103+ export const HeroSection = ( { stars = 0 } ) => {
104104 return (
105105 < StyledHeroSection >
106106 < StyledHeroSectionBody >
107107 < 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+
108125 < StyledHeroTitle > Visualize JSON into interactive graphs</ StyledHeroTitle >
109126 < StyledHeroText >
110127 The best online JSON viewer to < strong > visualize</ strong > , < strong > format</ strong > and{ " " }
@@ -120,7 +137,7 @@ export const HeroSection = () => {
120137 radius = "md"
121138 rightSection = { < FaChevronRight /> }
122139 fw = "500"
123- mt = "lg "
140+ mt = "sm "
124141 >
125142 Go to Editor
126143 </ Button >
@@ -130,11 +147,10 @@ export const HeroSection = () => {
130147 component = "a"
131148 color = "#202842"
132149 href = "/editor"
133- size = "lg "
150+ size = "xl "
134151 radius = "md"
135152 rightSection = { < FaChevronRight /> }
136- fw = "500"
137- mt = "lg"
153+ mt = "sm"
138154 >
139155 Go to Editor
140156 </ Button >
0 commit comments