+
+
+
+
Custom Size (200px)
+
+
+
+
+
+
+
Small Size (100px)
+
+
+
+
+
+ {{! Test pig_cuddly.riv }}
+
+
Test pig_cuddly.riv
+
+
+
+
+
+ {{! Test capy_walking.riv }}
+
+
Test capy_walking.riv
+
+
+
+
+
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index cbf9d0f7b..1ebdeca1e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,6 +10,7 @@
"license": "MIT",
"dependencies": {
"@rails/actioncable": "^8.0.200",
+ "@rive-app/canvas": "^2.27.0",
"@stripe/stripe-js": "^5.5.0",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.16",
@@ -8394,6 +8395,12 @@
"integrity": "sha512-EDqWyxck22BHmv1e+mD8Kl6GmtNkhEPdRfGFT7kvsv1yoXd9iYrqHDVAaR8bKmU/syC5eEZ2I5aWWxtB73ukMw==",
"license": "MIT"
},
+ "node_modules/@rive-app/canvas": {
+ "version": "2.27.0",
+ "resolved": "https://registry.npmjs.org/@rive-app/canvas/-/canvas-2.27.0.tgz",
+ "integrity": "sha512-wXGYCjXO+UpqesRPVSy7YmTnKSelhJVEu6kCWNWzwFD5IfwaM7rF9oG6WsubZ/D2Aacl9snaJUWjos7Em8mUSg==",
+ "license": "MIT"
+ },
"node_modules/@ro0gr/ceibo": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ro0gr/ceibo/-/ceibo-2.2.0.tgz",
diff --git a/package.json b/package.json
index 346717c72..23590ab08 100644
--- a/package.json
+++ b/package.json
@@ -202,6 +202,7 @@
},
"dependencies": {
"@rails/actioncable": "^8.0.200",
+ "@rive-app/canvas": "^2.27.0",
"@stripe/stripe-js": "^5.5.0",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.16",
diff --git a/public/assets/animations/capy_walking.riv b/public/assets/animations/capy_walking.riv
new file mode 100644
index 000000000..d447da1ca
Binary files /dev/null and b/public/assets/animations/capy_walking.riv differ
diff --git a/public/assets/animations/gleam_logo_animation.riv b/public/assets/animations/gleam_logo_animation.riv
new file mode 100644
index 000000000..0583b7458
Binary files /dev/null and b/public/assets/animations/gleam_logo_animation.riv differ
diff --git a/public/assets/animations/pig_cuddly.riv b/public/assets/animations/pig_cuddly.riv
new file mode 100644
index 000000000..9fd36967a
Binary files /dev/null and b/public/assets/animations/pig_cuddly.riv differ
diff --git a/tests/integration/components/rive-animation-test.js b/tests/integration/components/rive-animation-test.js
new file mode 100644
index 000000000..64509a738
--- /dev/null
+++ b/tests/integration/components/rive-animation-test.js
@@ -0,0 +1,111 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'codecrafters-frontend/tests/helpers';
+import { render, settled, waitUntil } from '@ember/test-helpers';
+import { hbs } from 'ember-cli-htmlbars';
+
+module('Integration | Component | rive-animation', function (hooks) {
+ setupRenderingTest(hooks);
+
+ test('it renders and initializes correctly', async function (assert) {
+ await render(hbs`
+