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

Open
wants to merge 3 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
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
color: royalblue;
}

@keyframes App-logo-spin {
Expand Down
39 changes: 31 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,45 @@
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 [count_1, setCount_1] = 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.
<header className="App-header bg-aliceblue">
<img
src="https://www.min-nekozukan.com/data/catKind/norwegian-forest-cat/main_norwegian-forest-cat_954e6_detail.jpg"
width={300}
/>
<p className="text-royalblue" class="text-3xl">
<code>WED</code> Communityにようこそ!
</p>
<a
className="text-wed-dark underline"
className="text-royalblue underline"
href="https://wed.company/"
target="_blank"
rel="noopener noreferrer"
>
Learn WED
WEDについて
</a>
<a href="/newpage" className="text-aliceblue underline">
コミュニティページ
</a>
<p
onClick={() => {
setCount(count + 1);
}}
>
👍{count}
</p>
<p
onClick={() => {
setCount_1(count_1 + 1);
}}
>
😍{count_1}
</p>
</header>
</div>
);
Expand Down
7 changes: 7 additions & 0 deletions src/NewPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

function NewPage(){
return (

)
}
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;
16 changes: 7 additions & 9 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
/** @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",
aliceblue: "#f0f8ff",
royalblue: "#4169e1",
},
extend: {},
},
plugins: [],
}

};