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 #16

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
}
}
}
18 changes: 11 additions & 7 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: 30vmin;
pointer-events: none;
}

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

Expand All @@ -19,15 +19,19 @@
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
font-size: calc(20px + 2vmin);
color: white;
font-family: serif;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
0% {
transform: scale(0.3) rotate(0deg);
}
to {
transform: rotate(360deg);
50% {
transform: scale(3) rotate(180deg);
}
100% {
transform: scale(0.3) rotate(360deg);
}
}
41 changes: 35 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,51 @@
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(1);
return (
<div className="App">
<header className="App-header bg-wed">
<img src={logo} className="App-logo" alt="logo" />
<img
src="https://hiyokoyarou.com/wp-content/uploads/2022/12/kamesan.png"
className="App-logo"
alt="logo"
/>
<p className="text-wed-dark">
Welcome to <code>WED</code> Community.
iiWelcome to <code>WED</code> Community!!
</p>
<a
className="text-wed-dark underline"
className="text-wed-hello underline"
//font-family="fantasy"
href="https://wed.company/"
target="_blank"
rel="noopener noreferrer"
>
Learn WED
WED
</a>
<a href="/newpage" className="text-wed-hello underline">
コミュニティページ
</a>
<p
className="bg-wed-red p-1 m-2 rounded-lg hover:text-4xl"
onClick={() => {
setCount(count * 2);
}}
>
</p>
<p className="text-wed-lin text-2xl p-1 m-2 rounded-lg hover:text-4xl">
{count}
</p>
<p
className="bg-wed-blue p-1 m-2 rounded-lg hover:text-4xl"
onClick={() => {
setCount(count / 2);
}}
>
×
</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;
6 changes: 3 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
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
18 changes: 9 additions & 9 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx}",
],
content: ["./src/**/*.{js,jsx}"],
theme: {
colors: {
wed: '#D2D2C6',
'wed-dark': '#6D695D',
},
extend: {
wed: "#FFDDFF",
"wed-dark": "#009000",
"wed-lin": "#555500",
"wed-hello": "#FF8000",
"wed-red": "#FF0000",
"wed-blue": "#0000FF",
},
extend: {},
},
plugins: [],
}

};