Skip to content

Commit

Permalink
Merge pull request #28 from solimer/bugfix/fix-homepage-title-font
Browse files Browse the repository at this point in the history
Add Secular One font family
  • Loading branch information
rafpaz committed Jun 1, 2023
2 parents 30d05ee + e010ee4 commit 6490dd3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 84 deletions.
65 changes: 0 additions & 65 deletions src/components/Post/TopButton.tsx

This file was deleted.

15 changes: 6 additions & 9 deletions src/components/Shared/Contact/Map.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import React from "react";

import { compose, withStateHandlers } from "recompose";
import { KeyTextField, LinkField, NumberField } from "@prismicio/types";
import {
withScriptjs,
withGoogleMap,
GoogleMap,
Marker,
InfoWindow,
Marker,
withGoogleMap,
withScriptjs,
} from "react-google-maps";
import { KeyTextField, LinkField, NumberField } from "@prismicio/types";
import { compose, withStateHandlers } from "recompose";

const coordinates = {
lat: 32.0723871,
Expand All @@ -29,9 +28,7 @@ const MapLabel: React.FC<
target="_blank"
rel="noopener noreferrer"
>
<h4 id="firstHeading" className="firstHeading">
{map_label_text}
</h4>
<h4 id="firstHeading">{map_label_text}</h4>
</a>
</div>
);
Expand Down
5 changes: 3 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { repositoryName } from "../../prismicio";
import "../styles/styles.scss";
import { AppProps } from "next/app";

import { montserrat, openSans } from "../styles/fontLoad";
import cn from "../lib/utils/cn";
import { montserrat, openSans, secularOne } from "../styles/fontLoad";

const App = ({ Component, pageProps }: AppProps) => {
return (
Expand All @@ -25,7 +26,7 @@ const App = ({ Component, pageProps }: AppProps) => {
>
<ThemeProvider theme={{}}>
<PrismicPreview repositoryName={repositoryName}>
<main className={montserrat.className}>
<main className={cn(montserrat.className, secularOne.variable)}>
<Component {...pageProps} />
</main>
</PrismicPreview>
Expand Down
8 changes: 7 additions & 1 deletion src/styles/fontLoad.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Montserrat, Open_Sans } from "next/font/google";
import { Montserrat, Open_Sans, Secular_One } from "next/font/google";

export const montserrat = Montserrat({
subsets: ["latin"],
Expand All @@ -9,3 +9,9 @@ export const openSans = Open_Sans({
subsets: ["hebrew"],
variable: "--font-sans",
});

export const secularOne = Secular_One({
subsets: ["latin"],
variable: "--font-secular",
weight: "400",
});
6 changes: 0 additions & 6 deletions src/styles/homepage/global.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@charset "utf-8";

@import url("https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700|Roboto:300,400|Athiti:300,400|Indie+Flower");

@import url("https://fonts.googleapis.com/css?family=Indie+Flower|Secular+One|Assistant");

@import url("//fonts.googleapis.com/earlyaccess/opensanshebrew.css");

@import "react-lite-youtube-embed/dist/LiteYouTubeEmbed.css";

* {
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
},
fontFamily: {
serif: "'Libre Baskerville', sans-serif",
secular: "'Secular One', sans-serif",
secular: "var(--font-secular), 'Secular One', sans-serif",
montserrat: "var(--font-montserrat), Montserrat, sans-serif",
hebrew: "Open Sans Hebrew, sans-serif",
sans: ["var(--font-sans)", ...fontFamily.sans],
Expand Down

1 comment on commit 6490dd3

@vercel
Copy link

@vercel vercel bot commented on 6490dd3 Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.