Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 08bb1be according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Dec 25, 2024
1 parent 08bb1be commit f939645
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/components/stateless/HorizontalScroll/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Card = ({ card }) => {
backgroundPosition: 'center',
}}
className="absolute inset-0 z-0 transition-transform duration-300 group-hover:scale-110"
></div>
/>
<div className="absolute inset-0 z-10 grid place-content-center">
<p className="p-8 text-6xl font-black text-white uppercase bg-gradient-to-br from-white/20 to-white/0 backdrop-blur-lg">
{card.title}
Expand Down
39 changes: 18 additions & 21 deletions src/pages/motion/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const easeNames = [
]

const randomSort = (arr) => {
let newArr = []
const newArr = []
const len = arr.length
for (let i = 0; i < len; i++) {
const random = Math.floor(Math.random() * arr.length)
Expand Down Expand Up @@ -158,9 +158,9 @@ const ParallaxVert = () => {
backgroundColor: '#aaa',
borderRadius: '3px',
// scaleX: scrollYProgress,
scaleX: scaleX,
scaleX,
}}
></motion.div>
/>
<motion.div

Check notice on line 164 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
style={{
width: 100,
Expand All @@ -184,7 +184,7 @@ const ParallaxVert = () => {
rotate: 45, // 旋转45度
opacity: 0.5, // 不透明度设置为0.5
}}
></motion.div>
/>
<motion.div

Check notice on line 188 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
transformTemplate={template}
animate={{ rotate: 360 }}
Expand All @@ -196,7 +196,7 @@ const ParallaxVert = () => {
rotate: 0,
x: '200px',
}}
></motion.div>
/>

<motion.div

Check notice on line 201 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
style={{
Expand All @@ -209,9 +209,9 @@ const ParallaxVert = () => {
duration: 2,
}}
variants={animations}
initial={'hidden'}
animate={'show'}
></motion.div>
initial="hidden"
animate="show"
/>
<motion.ul

Check notice on line 215 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.ul
initial="hidden"
animate="visible"
Expand Down Expand Up @@ -262,7 +262,7 @@ const ParallaxVert = () => {
onClick={() => {
setRotate(!isRotated)
}}
></motion.div>
/>
</div>

<div
Expand Down Expand Up @@ -290,7 +290,7 @@ const ParallaxVert = () => {
duration: 1,
repeat: Infinity,
}}
></motion.div>
/>
</div>

<motion.div

Check notice on line 296 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
Expand Down Expand Up @@ -342,13 +342,10 @@ const ParallaxVert = () => {
onDragStart={(event, info) => console.log(info.point.x, info.point.y)}
onDragEnd={(event, info) => console.log(info.point.x, info.point.y)}
onDirectionLock={(axis) => console.log('axis', axis)}
dragSnapToOrigin={true}
dragSnapToOrigin
// dragConstraints={{ left: 0, right: 300 }}
dragConstraints={constraintsRef}
// dragElastic={false}
// dragElastic={0.8}
// dragPropagation={false}
></motion.div>
/>
<div
style={{
display: 'flex',
Expand Down Expand Up @@ -425,7 +422,7 @@ const ParallaxVert = () => {
setIsAnimation(false)
console.log('Completed animating', definition)
}}
></motion.div>
/>
<div
style={{
display: 'flex',
Expand Down Expand Up @@ -561,7 +558,7 @@ const ParallaxVert = () => {
backgroundColor: 'white',
borderRadius: 60,
}}
></motion.div>
/>
</motion.div>

<section style={{ fontSize: 30 }}>scrollDirection: {scrollDirection}</section>
Expand All @@ -575,7 +572,7 @@ const ParallaxVert = () => {
x,
rotate,
}}
></motion.div>
/>
<motion.div

Check notice on line 576 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
style={{
width: 200,
Expand All @@ -584,7 +581,7 @@ const ParallaxVert = () => {
borderRadius: '20px',
scaleX,
}}
></motion.div>
/>

<div
style={{
Expand Down Expand Up @@ -697,7 +694,7 @@ const ParallaxVert = () => {
backgroundColor: '#fff',
borderRadius: 10,
}}
></motion.div>
/>
<motion.div

Check notice on line 698 in src/pages/motion/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
layout
style={{
Expand All @@ -706,7 +703,7 @@ const ParallaxVert = () => {
backgroundColor: '#fff',
borderRadius: 10,
}}
></motion.div>
/>
</LayoutGroup>
</motion.div>
</div>
Expand Down

0 comments on commit f939645

Please sign in to comment.