Skip to content

Commit

Permalink
added video store and video components
Browse files Browse the repository at this point in the history
  • Loading branch information
sahirgomez1 committed Jun 23, 2021
1 parent 0c91879 commit c9aa2e5
Show file tree
Hide file tree
Showing 15 changed files with 348 additions and 117 deletions.
37 changes: 9 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

## Available Scripts

In the project directory, you can run:
To install
`git clone https://github.com/sahirgomez1/ycb_objects.git`

In the project directory :
`cd ycb_objects_app`
you can run to install all dependencies
`npm install`
then run
`npm start`.

### `npm start`

Expand All @@ -27,33 +35,6 @@ Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

Expand Down
72 changes: 72 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"bootstrap": "^5.0.1",
"bootstrap-icons": "^1.5.0",
"node-sass": "^6.0.0",
"react": "^17.0.2",
"react-bootstrap": "^1.6.1",
"react-dom": "^17.0.2",
"react-player": "^2.9.0",
"react-scripts": "4.0.3",
"three": "^0.129.0",
"web-vitals": "^1.1.2",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/scss/custom.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@


@import "./variables.scss";
@import "./video_controls";
@import "./main_content.scss";
@import "./sliders.scss";
@import url("https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css");
@import "node_modules/bootstrap/scss/bootstrap";

14 changes: 13 additions & 1 deletion src/assets/scss/main_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
left: 0;
right: 0;
top: 0;
bottom: 60px;
bottom: 0;
}

.video_box {
Expand All @@ -62,6 +62,18 @@
z-index: 1;
}

.scene-tooltip {
padding-top: 5px;
transform: translate3d(50%, 0, 0);
text-align: center;
background: $primary;
color: white;
padding: 10px 10px;
border-radius: 5px;
font-size: xx-small;

}

.output {
background-color: $primary;
border-radius: 5px;
Expand Down
24 changes: 23 additions & 1 deletion src/assets/scss/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,26 @@ $h2-font-size: $font-size-base * 1.25 !default;
$h3-font-size: $font-size-base * 1.0625 !default;
$h4-font-size: $font-size-base * .9375 !default;
$h5-font-size: $font-size-base * .8125 !default;
$h6-font-size: $font-size-base * .625 !default;
$h6-font-size: $font-size-base * .625 !default;

// Navbar

$navbar-nav-link-font-size: .5rem !default;
$navbar-nav-link-font-weight: 500 !default;
$navbar-nav-link-text-transform: normal !default;
$navbar-nav-link-letter-spacing: 0 !default;



// Buttons + Forms

$input-btn-font-size-sm: .75rem !default;
$input-btn-font-size: .8rem !default;
$input-btn-font-size-lg: .85rem !default;

// Dropdown

$dropdown-bg: $white !default;
$dropdown-border-width: 0 !default;
$dropdown-border-color: rgba($black, .15) !default;
$dropdown-font-size: .75rem !default;
16 changes: 16 additions & 0 deletions src/assets/scss/video_controls.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.player-control {
&__button {
color: transparent;
padding-bottom: 0;
padding-top: 0;
}

&__speed-toggle {
color: #000;
font-family: Courier, sans-serif;
}

&__time {
font-family: Courier, sans-serif;
}
}
Loading

0 comments on commit c9aa2e5

Please sign in to comment.