mirror of
https://github.com/ManInDark/ReactHolidays.git
synced 2026-01-21 06:34:29 +01:00
added meta tags
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en" prefix="og: https://ogp.me/ns/website#">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Holiday List</title>
|
<title>Holiday List</title>
|
||||||
|
<meta property="og:title" content="Holidays" />
|
||||||
|
<meta property="og:description" content="This website shows holidays of the current as well as other years." />
|
||||||
|
<meta property="og:url" content="https://holidays.own.manindark.me" />
|
||||||
|
<meta property="og:locale" content="de_DE" />
|
||||||
|
<meta property="og:site_name" content="Holidays" />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
</head>
|
</head>
|
||||||
<body class="dark:bg-gray-900 dark:text-white flex justify-center">
|
<body class="dark:bg-gray-900 dark:text-white flex justify-center">
|
||||||
<div class="container " id="root"></div>
|
<div class="container " id="root"></div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
|
|||||||
type Holiday = { "date": string, "localName": string, "countryCode": string, "fixed": string, "global": string, "types": string[] }
|
type Holiday = { "date": string, "localName": string, "countryCode": string, "fixed": string, "global": string, "types": string[] }
|
||||||
|
|
||||||
async function getText(satYear: string): Promise<Holiday[]> {
|
async function getText(satYear: string): Promise<Holiday[]> {
|
||||||
return JSON.parse(await (await fetch("https://date.nager.at/api/v3/publicholidays/" + satYear + "/DE")).text());
|
return await (await fetch("https://date.nager.at/api/v3/publicholidays/" + satYear + "/DE")).json();
|
||||||
}
|
}
|
||||||
|
|
||||||
function ListHolidays() {
|
function ListHolidays() {
|
||||||
|
|||||||
Reference in New Issue
Block a user