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

Bey #9

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
33 changes: 33 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"command": "yarn install",
"name": "Install Dependencies"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"start": {
"name": "start",
"command": "yarn start",
"runAtStart": true
},
"build": {
"name": "build",
"command": "yarn build",
"runAtStart": false
},
"test": {
"name": "test",
"command": "yarn test",
"runAtStart": false
},
"eject": {
"name": "eject",
"command": "yarn eject",
"runAtStart": false
}
}
}
6 changes: 5 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
}

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

.App-logo span {
color: paleturquoise;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
Expand Down
51 changes: 39 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,49 @@
import logo from './logo.svg';
import './App.css';
import logo from "./logo.svg";
import "./App.css";
import { useState } from "react";

function App() {
let [fine, setfine] = useState(0);
let [ill, setill] = useState(0);

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.
</p>
<div className="App-header bg-light-pink">
<header className="App-header bg-lightpink">
<img
src="https://w7.pngwing.com/pngs/806/733/png-transparent-big-hero-6-baymax-illustration-baymax-tadashi-hamada-hiro-hamada-groot-the-walt-disney-company-others-white-mammal-carnivoran-thumbnail.png "
className="App-logo"
alt="logo"
/>
<p className="text-white text-3xl">Baymax Clinic</p>
<a
className="text-wed-dark underline"
href="https://wed.company/"
target="_blank"
className="text-lightpink underline hover:text-yellow"
href="https://www.disney.co.jp/fc/bighero6"
rel="noopener noreferrer"
>
Learn WED
Which is your physical condition?
</a>

<a href="/newpage" class="text-pastel-red" underline>
コミュニティぺージ
</a>

<p
className="text-pastel-purple text-2xl bg-yellow p-1 m-2 rouded-lg hover:text-4xl"
onClick={() => {
setfine(fine + 1);
}}
>
😊{fine}
</p>
<p
className="text-pastel-purple text-2xl bg-yellow p-1 m-2 rouded-lg hover:text-4xl"
onClick={() => {
setill(ill + 1);
document.write("bless you...");
}}
>
😥{ill}
</p>
</header>
</div>
);
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;
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
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",
"light-pink": "#ffb6c1",
yellow: "#ffff00",
white: "#ffffff",
},
extend: {},
},
plugins: [],
}

};