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

made changes in the "TheProgrammingClubBetaComponent.js" file, and added a new file "style.css" to add hover states to the buttons and links #10

Closed
wants to merge 8 commits into from
Closed
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
16 changes: 8 additions & 8 deletions frontend/React Components/TheProgrammingClubBetaComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,41 +30,41 @@ const TheProgrammingClubFinalComponent = props => (
d="M-4,0S147.906,157.909,136.474,453.721-4,1075.355-4,1075.355Z"
transform="translate(4)"
/>
<image
<image class="story"
width={50}
height={50}
transform="translate(35 351)"
xlinkHref="ComponentTMP_0-image.png"
xlinkHref="ComponentTMP_0-image6.png"
/>
<image
<image class="story"
width={50}
height={50}
transform="translate(35 679)"
xlinkHref="ComponentTMP_0-image2.png"
/>
<image
<image class="story"
width={50}
height={50}
transform="translate(35 597)"
xlinkHref="ComponentTMP_0-image3.png"
/>
<image
<image class="story"
width={50}
height={50}
transform="translate(35 433)"
xlinkHref="ComponentTMP_0-image4.png"
/>
<image
<image class="story"
width={50}
height={50}
transform="translate(35 515)"
xlinkHref="ComponentTMP_0-image5.png"
/>
<image
<image
width={777}
height={583}
transform="translate(169 238)"
xlinkHref="ComponentTMP_0-image6.png"
xlinkHref="ComponentTMP_0-image.png"
/>
<text className="c" transform="translate(139 240)">
<tspan x={0} y={0}>
Expand Down
50 changes: 8 additions & 42 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body style="margin:0px;">
<div id="root"></div>
<script src="indexs.js"></script>
</body>
</html>
18 changes: 18 additions & 0 deletions frontend/public/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.e:hover
{
opacity:0.5;
font-weight: bold;
}
.i:hover,.k:hover
{
opacity:0.5;
font-weight: bold;
}
.story
{
opacity:0.4;
}
.story:hover
{
opacity:1;
}
34 changes: 11 additions & 23 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
import logo from './logo.svg';
import './App.css';
import React from "react"
import ReactDOM from "react-dom"
import TheProgrammingClubFinalComponent from ".React Components/TheProgrammingClubBetaComponent.js"

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
function App()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a blank line between imports and function

{
return(
<div>
<TheProgrammingClubFinalComponent/>
</div>
)
}

export default App;
export default App
21 changes: 4 additions & 17 deletions frontend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
import React from "react"
import ReactDOM from "react-dom"
import App from "./App.js"
ReactDOM.render(<App/>,document.getElementById("root"))