Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addpage #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
}

.App-logo {
height: 40vmin;
height: 40vmax;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
animation: App-logo-spin infinite 0.5s ease;
}
}

Expand Down
55 changes: 48 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,63 @@
import logo from './logo.svg';
import './App.css';
import logo from "./logo.svg";
import "./App.css";
import { useState } from "react";

function App() {
let [count, setCount] = useState(0);
let comment = "いえい";

return (
<div className="App">
<header className="App-header bg-wed">
<img src={logo} className="App-logo" alt="logo" />
<p className="text-wed-dark">
Welcome to <code>WED</code> Community.
<header className="App-header bg-black">
<img
src="https://i1.wp.com/sozai-dc.com/wp-content/uploads/sozai1/map/aiti500112.png"
className="App-logo"
alt="logo"
/>
<p className="text-wed text-2xl hover:underline hover:opacity-20">
Dreams comes ture <code>WED</code>This is the wowowo heeeeey Do you
know where i can find money!?!?
</p>
<a
className="text-wed-dark underline"
href="https://wed.company/"
target="_blank"
rel="noopener noreferrer"
>
Learn WED
BECOME GOD
</a>
<a href="/newpage" className="text-wed underline hover:opacity-20">
コミュニティーページ
</a>
<p
className="text-xl p-4 m-2 bg-wed rounded-lg hover:text-2xl"
onClick={() => {
setCount(count + 1);
if (count > 100) {
comment = "すごい";
}
}}
>
拍手👏喝采
{count}
<p>{comment}</p>
</p>
<p
className="text-xl p-4 m-2 bg-wed rounded-lg hover:text-2xl"
onClick={() => {
setCount(count * count);
}}
>
盛り上げる
</p>
<p
className="text-xl p-4 m-2 bg-wed rounded-lg hover:text-2xl"
onClick={() => {
setCount((count = 0));
}}
>
CHILL
</p>
</header>
</div>
);
Expand Down
Empty file added src/NewPage.js
Empty file.
Empty file added src/Newpage.js
Empty file.
16 changes: 9 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
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 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'));
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<BrowserRouter>
<Routes>
<Route path="/" element={<App />} />
<Route path="/newpage" element={<NewPage />} />
</Routes>
</BrowserRouter>
</React.StrictMode>
Expand Down
12 changes: 12 additions & 0 deletions src/newpage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";

function NewPage() {
return (
<div className="NewPage">
<h1>コミュニティーページ</h1>
<a>10月のイベントについて</a>
</div>
);
}

export default NewPage;
17 changes: 8 additions & 9 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -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",
"wed-white": "#ffffff",
"wed-ugry": "#006400",
"black": "#252525",
},
extend: {},
},
plugins: [],
}

};