diff --git a/src/App.css b/src/App.css index 70e8f87..f1452e2 100644 --- a/src/App.css +++ b/src/App.css @@ -3,7 +3,7 @@ } .App-logo { - height: 40vmin; + height: 3cm; pointer-events: none; } @@ -19,7 +19,7 @@ flex-direction: column; align-items: center; justify-content: center; - font-size: calc(10px + 2vmin); + font-size: xx-large; color: white; } diff --git a/src/App.js b/src/App.js index 8653aec..3aa2b36 100644 --- a/src/App.js +++ b/src/App.js @@ -1,22 +1,55 @@ -import logo from './logo.svg'; -import './App.css'; +import logo from "./logo.svg"; +import "./App.css"; +import { useState } from "react"; function App() { + let [count1, setCount] = useState(0); + let [count2, badCount] = useState(0); + return (
-
- logo -

- Welcome to WED Community. +

+ logo +

+ WED Communityへようこそ

- Learn WED + WEDについて→ + + + コミュニティーページ +

{ + setCount(count1 + 1); + }} + > + 👍{count1} +

+

{ + badCount(count2 + 1); + }} + > + 👎{count2} +

+

{}} + > + ボタンを押した回数:{count1 + count2} +

); diff --git a/src/NewPage.js b/src/NewPage.js new file mode 100644 index 0000000..86c8c56 --- /dev/null +++ b/src/NewPage.js @@ -0,0 +1,11 @@ +import React from "react"; + +function NewPage() { + return ( +
+

コミュニティーページ

+ 10月のイベントについて +
+ ); +} +export default NewPage; diff --git a/src/index.js b/src/index.js index f059a20..d308bc5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,16 +1,17 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import { BrowserRouter, Route, Routes } from 'react-router-dom'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; - -const root = ReactDOM.createRoot(document.getElementById('root')); +import React from "react"; +import ReactDOM from "react-dom/client"; +import { BrowserRouter, Route, Routes } from "react-router-dom"; +import "./index.css"; +import App from "./App"; +import reportWebVitals from "./reportWebVitals"; +import NewPage from "./NewPage"; +const root = ReactDOM.createRoot(document.getElementById("root")); root.render( } /> + } /> diff --git a/tailwind.config.js b/tailwind.config.js index 7780c81..472dadc 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,16 +1,15 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: [ - "./src/**/*.{js,jsx}", - ], + content: ["./src/**/*.{js,jsx}"], theme: { colors: { - wed: '#D2D2C6', - 'wed-dark': '#6D695D', - }, - extend: { + wed: "#D2D2C6", + "wed-dark": "#6D695D", + "pastel-red": "#ff8484", + "pastel-purple": "#9966ff", + "pastel-green": "#008000", }, + extend: {}, }, plugins: [], -} - +};