Skip to content
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
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"howler": "^2.2.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-scripts": "5.0.1"
},
"scripts": {
"predeploy": "npm run build",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is this inserted by github pages? Seems a bit inefficient to me :D

"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build"
},
Expand Down
7 changes: 6 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
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>Rocket Bootcamp Project</title>
<title>Scales for Dummies Like Me</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css?family=Heebo"
rel="stylesheet"
/>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
226 changes: 219 additions & 7 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,231 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

.App {
font-family: "Heebo";
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
background-color: #f5d6ba;
color: black;
}

.App-logo {
height: 40vmin;
pointer-events: none;
p {
margin-bottom: 20px;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
.container {
display: flex;
flex-direction: column;
align-items: center;
padding-left: 10%;
padding-right: 10%;
height: 100vh;
color: white;
width: 100vw;
}

.wrapper {
margin-top: 20vh;
font-size: 1.5rem;
line-height: 1;
}

.home-title-1 {
font-size: 1.5rem;
margin-bottom: 2vh;
}

.home-title-2 {
font-size: 3.5rem;
font-weight: 700;
}

.button-1-wrapper {
display: flex;
justify-content: center;
margin-top: 30%;
}

.button-1 {
display: flex;
justify-content: center;
font-size: calc(10px + 2vmin);
align-items: center;
background-color: #a9caba;
color: #4c6a5e;
border: solid;
padding: 5px;
border-radius: 100%;
font-size: 1.5rem;
margin-left: 10px;
margin-right: 10px;
}

.button-1:active {
background-color: #4c6a5e;
color: white;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

.about-button-wrapper {
display: flex;
justify-content: center;
position: absolute;
inset: auto 0% 5%;
}

.about-button {
background-color: transparent;
border-style: solid;
border-width: 2px;
border-color: white;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 700;
color: white;
padding: 9px 15px;
}

.about-button:active {
background-color: white;
color: #172121;
border-color: #172121;
}

.about-button:active::after {
color: #172121;
border-color: #172121;
}

.padding-container {
padding-left: 5%;
padding-right: 5%;
margin-bottom: 10vh;
}

.container-flex {
display: flex;
flex-direction: column;
align-items: center;
}

.align-center {
width: 100vw;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}

.title {
font-size: 3rem;
line-height: 1;
font-weight: bold;
text-align: center;
margin-bottom: 2vh;
}

#text-align-left {
margin-left: auto;
margin-right: auto;
padding-left: 5%;
text-align: left;
}

.separation-line {
width: 80%;
height: 1.2px;
background-color: #d7bca3;
margin-bottom: 3vh;
}

.back-to-top-button-wrapper {
display: flex;
justify-content: center;
inset: auto 0% 5%;
padding-bottom: 5vh;
color: #7b6b5d;
}

.back-to-top-button {
background-color: transparent;
border-style: solid;
border-width: 3px;
border-color: #c8af98;
border-radius: 100%;
font-size: 0.9rem;
font-weight: 700;
padding: 5px;
color: black;
text-decoration: none;
}

.back-to-top-button:active {
background-color: #b8a18c;
color: black;
border-color: #d7bca3;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.circle-pointers {
width: 80%;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
}

#homepage-section {
background-color: #81b29a;
box-shadow: 0px 0px 20px 12px rgba(0, 0, 0, 0.5);
margin-bottom: 10vh;
}

#basics-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #202124;
height: 100vh;
}

#intervals-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

#major-scales-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

#minor-scales-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

#circle-of-fifths-section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
31 changes: 17 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import React from "react";
import logo from "./logo.png";
import "./App.css";
import HomePage from "./homepage";
import Basics from "./basics";
import Intervals from "./intervals";
import MajorScales from "./major-scales";
import MinorScales from "./minor-scales";
import CircleOfFifths from "./circle-of-fifths";

class App extends React.Component {
render() {
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>
</header>
</div>
);
}
function App() {
return (
<div className="App">
<HomePage id="Home" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

HomePage seems odd naming to me for a single-page application! Maybe something like Hero, Heading, or something along these lines would fit better, depending on what the section actually contains.

<Basics />
<Intervals />
<MajorScales />
<MinorScales />
<CircleOfFifths />
</div>
);
}

export default App;
Binary file added src/assets/Artboard 6@0.5x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Artboard 7@0.5x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Artboard 8@0.5x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/arrow-left-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/arrow-right-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading