-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
959aec7
commit 0fa91e4
Showing
11 changed files
with
158 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-transform-react-jsx", | ||
{ | ||
"runtime": "automatic" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,11 @@ | ||
import React, { useState } from 'react'; | ||
import logo from '../public/cloudflare.svg' | ||
import { Header } from "./components/Header/Header"; | ||
import { Footer } from "./components/Footer/Footer"; | ||
import * as React from "react"; | ||
import { NextUIProvider } from "@nextui-org/react"; | ||
import { Home } from "./pages/Home"; | ||
|
||
export const App = () => { | ||
const [count, setCount] = useState(0); | ||
const tester = "Victor E"; | ||
|
||
return ( | ||
<div className="container"> | ||
<Header /> | ||
<div className="row"> | ||
<div className="col-12"> | ||
<div> | ||
<div> | ||
<img src={logo} width="300"/> | ||
</div> | ||
</div> | ||
<h1>Hello, Cloudflare Workers!</h1> | ||
<h3>This is a basic React page deployed on Cloudflare Workers.</h3> | ||
<p> | ||
<strong>Your name:</strong> { tester } | ||
</p> | ||
<pre>{ tester }</pre> | ||
|
||
<p>Count: { count }</p> | ||
<button type="button" onClick={ () => setCount(count + 1) }>Increase</button> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
<NextUIProvider> | ||
<Home /> | ||
</NextUIProvider> | ||
); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React, { useState } from 'react'; | ||
import logo from '../../public/cloudflare.svg' | ||
import { Header } from "../components/Header/Header"; | ||
import { Footer } from "../components/Footer/Footer"; | ||
import {Button} from "@nextui-org/react"; | ||
|
||
export const Home = () => { | ||
const [count, setCount] = useState(0); | ||
const tester = "Victor E"; | ||
|
||
return ( | ||
<div className="container"> | ||
<Header /> | ||
<div className="row"> | ||
<div className="col-12"> | ||
<div> | ||
<div> | ||
<img src={logo} width="300"/> | ||
</div> | ||
</div> | ||
<h1>Hello, Cloudflare Workers!</h1> | ||
<h3>This is a basic React page deployed on Cloudflare Workers.</h3> | ||
<p> | ||
<strong>Your name:</strong> { tester } | ||
</p> | ||
<pre>{ tester }</pre> | ||
|
||
<p>Count: { count }</p> | ||
<Button | ||
color="primary" | ||
|
||
onClick={ () => setCount(count + 1) } | ||
> | ||
Increase | ||
</Button> | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
const { nextui } = require("@nextui-org/react"); | ||
|
||
module.exports = { | ||
content: [ | ||
"./src/components/**/*.{html,js,jsx}", | ||
"./src/pages/**/*.{html,js,jsx}", | ||
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", | ||
], | ||
theme: { | ||
extend: {}, | ||
}, | ||
darkMode: "class", | ||
plugins: [nextui()], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters