Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 7cf6314

Browse files
committed
fixed card order
1 parent 11b2e43 commit 7cf6314

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/_pages/LandingPage/components/OtherFeaturesView/components/Cards/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Cards: React.FC<Props> = (props) => {
3939

4040
if (i - 3 >= index) {
4141
return {
42-
translateX: -width / 2 - width / 40,
42+
translateX: width / 2 + width / 40,
4343
zIndex: -1,
4444
opacity: 0,
4545
scale: 0.75,
@@ -48,7 +48,7 @@ const Cards: React.FC<Props> = (props) => {
4848

4949
if (i - 2 === index) {
5050
return {
51-
translateX: -width / 2 - width / 40,
51+
translateX: width / 2 + width / 40,
5252
zIndex: 0,
5353
opacity: windowWidth > 996 ? 1 : 0,
5454
scale: 0.75,
@@ -57,7 +57,7 @@ const Cards: React.FC<Props> = (props) => {
5757

5858
if (i - 1 === index) {
5959
return {
60-
translateX: -width / 4,
60+
translateX: width / 4,
6161
zIndex: 1,
6262
opacity: windowWidth > width + width / 2 ? 1 : 0,
6363
scale: 0.85,
@@ -75,7 +75,7 @@ const Cards: React.FC<Props> = (props) => {
7575

7676
if (i + 1 === index) {
7777
return {
78-
translateX: width / 4,
78+
translateX: -width / 4,
7979
zIndex: 1,
8080
opacity: windowWidth > width + width / 2 ? 1 : 0,
8181
scale: 0.85,
@@ -84,7 +84,7 @@ const Cards: React.FC<Props> = (props) => {
8484

8585
if (i + 2 === index) {
8686
return {
87-
translateX: width / 2 + width / 40,
87+
translateX: -width / 2 - width / 40,
8888
zIndex: 0,
8989
opacity: windowWidth > 996 ? 1 : 0,
9090
scale: 0.75,
@@ -93,7 +93,7 @@ const Cards: React.FC<Props> = (props) => {
9393

9494
if (i + 3 <= index) {
9595
return {
96-
translateX: width / 2 + width / 40,
96+
translateX: -width / 2 - width / 40,
9797
zIndex: -1,
9898
opacity: 0,
9999
scale: 0.75,

src/_pages/LandingPage/components/OtherFeaturesView/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import styles from './styles.module.css';
3-
import Spacer from '../../../../components/other/Spacer';
43
import Cards, { CardInterface } from './components/Cards';
54

65
const cards: CardInterface[] = [

src/_pages/LandingPage/components/StraightforwardView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const myState = useAgile(MY_STATE);
4141
code: `
4242
const App = new Agile();
4343
const MY_COLLECTION = App.createState();
44-
MY_COLLECTION.collect({id: 1, name: "Jeff"})
44+
MY_COLLECTION.collect({id: 1, name: "Jeff"});
4545
`,
4646
codeWithComment: `
4747
// Create set of States

0 commit comments

Comments
 (0)