mirror of
https://github.com/ManInDark/ReactHolidays.git
synced 2026-01-21 06:34:29 +01:00
Compare commits
5 Commits
v1.0.0
...
44b2d27f18
| Author | SHA1 | Date | |
|---|---|---|---|
|
44b2d27f18
|
|||
|
6fc69ae0ff
|
|||
|
fc349959ac
|
|||
|
78602ea22d
|
|||
| c6252680f3 |
@@ -2,7 +2,7 @@
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
|
||||
{
|
||||
"name": "React",
|
||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
||||
"image": "mcr.microsoft.com/devcontainers/typescript-node:2-22-bookworm",
|
||||
|
||||
"features": {
|
||||
},
|
||||
|
||||
7
README.md
Normal file
7
README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# ReactHolidays
|
||||
|
||||

|
||||
|
||||
This is a testing project to try and gauge the capabilities of react, vite and tailwind.
|
||||
|
||||
The project uses the [date.nager.at API](https://date.nager.at/Api) to get a list of holidays and then visualizes it.
|
||||
@@ -10,6 +10,15 @@
|
||||
<meta property="og:locale" content="de_DE" />
|
||||
<meta property="og:site_name" content="Holidays" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta name="application-name" content="Holidays" />
|
||||
<meta name="application-title" content="Holidays" />
|
||||
<meta name="description" content="This website shows holidays of the current as well as other years." />
|
||||
<meta name="author" content="ManInDark" />
|
||||
<meta name="generator" content="Vite" />
|
||||
<meta name="keywords" content="holidays,react,calendar,germany,deutschland,DE" />
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<meta name="theme-color" content="#111827" />
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
</head>
|
||||
<body class="dark:bg-gray-900 dark:text-white flex justify-center">
|
||||
<div class="container " id="root"></div>
|
||||
|
||||
2037
package-lock.json
generated
2037
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev": "vite --host",
|
||||
"build": "tsc -b && vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
|
||||
11
public/robots.txt
Normal file
11
public/robots.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
|
||||
User-agent: Googlebot
|
||||
User-agent: Googlebot-Mobile
|
||||
User-agent: Googlebot-News
|
||||
User-agent: Googlebot-Video
|
||||
User-agent: Storebot-Google
|
||||
User-agent: Mediapartners-Google
|
||||
User-agent: AdsBot-Google
|
||||
Disallow:
|
||||
@@ -55,7 +55,7 @@ function ListHolidays() {
|
||||
</div>
|
||||
<div className="flex justify-center">
|
||||
<ArrowLeftIcon className='icon' onClick={() => addYear(-1)} />
|
||||
<input className="text-black text-right border-black border-2" type="number" value={year} onChange={(e) => { setYear(e.target.value) }} />
|
||||
<input className="text-black bg-white text-right border-black border-2" type="number" value={year} name="year" onChange={(e) => { setYear(e.target.value) }} />
|
||||
<ArrowPathIcon className='icon' onClick={() => setSatYear(year)} />
|
||||
<ArrowRightIcon className='icon' onClick={() => addYear(1)} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user