Skip to content

Commit

Permalink
3D Hero Banner (#58)
Browse files Browse the repository at this point in the history
* Hide right border of last navbar item

* Added three.js dependencies

* Started integrating HeroBanner3d

* Added ocean

* Configured sun at sunset

* Configured sun at sunset

* Slower water

* Renamed OceanAndSky to Environment

* Stop animation after a few text loops

* Added config for HeroBanner3d inside docusaurus.config.js; choose 2d or 3d banner according to config

* Updated index.test.js to test for 3d hero banner

* Added unit tests for AnimatedText and Environment

* Added unit tests for HeroBanner3d and Ocean; bumped to 1.6.0
  • Loading branch information
ffeltrinelli authored Dec 18, 2022
1 parent 677a84f commit 267f9c3
Show file tree
Hide file tree
Showing 27 changed files with 1,556 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
You should update the version number in the [package.json](./package.json) according to the semantic versioning,
then run `npm install`.

## 1.6.0
- Added 3D hero banner

## 1.5.1
- Bumped to node 16, docusaurus 2.0.1, react 17.0.2

Expand Down
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ This project uses [Jest](https://jestjs.io/) for unit testing. When contributing

The naming convention for a file `foo.js` is to put the related unit tests next to it as `foo.test.js`.

Run the unit tests with:
Run all the unit tests with:

```
npm run test
```

or a specific unit test with:

```
npm run test <path to test file>
```

Unit tests for React components use [snapshot testing](https://jestjs.io/docs/snapshot-testing), please take a moment
to learn about this kind of tests and how to use them.

Expand Down
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ We would like to give a special thanks to:

* [Ishan @seefromthesky](https://unsplash.com/@seefromthesky) for the photo on Unsplash
* [Christina @ wocintechchat.com](https://unsplash.com/@wocintechchat) for the photo on Unsplash
* [three.js](https://threejs.org/) for the [Ocean](https://threejs.org/examples/webgl_shaders_ocean.html) example from which we based the `HeroBanner3d` implementation
12 changes: 10 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ limitations under the License.

const customFields = {
heroConfig: {
title: 'Powering global travel through a world-class tech platform.',
subtitle: 'Peek behind the scenes at our open source projects.'
hero2d: {
title: 'Powering global travel through a world-class tech platform.',
subtitle: 'Peek behind the scenes at our open source projects.',
imageUrl: '/img/hero.jpg'
},
hero3d: {
enabled: true,
title: 'Expedia Group',
subtitle: 'Open Source'
}
},
repositoriesConfig: {
navbarLabel: 'Projects',
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ limitations under the License.

const config = {
resetMocks: true,
setupFiles: ["<rootDir>/src/jest/helpers.js"],
transform: {
"\\.[jt]sx?$": "babel-jest",
".+\\.(css|styl|less|sass|scss)$": "jest-css-modules-transform"
Expand Down
Loading

0 comments on commit 267f9c3

Please sign in to comment.