Skip to content

Commit db0dd6f

Browse files
fix(ui): align newsroom slider arrows, add roadmap top spacing, make scroll-to-top theme aware (fix #4522)
1 parent 8eae87d commit db0dd6f

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

components/buttons/ScrollButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useEffect, useState } from 'react';
2+
23
import IconArrowUp from '../icons/Scroll-up-arrow';
34

45
/**
@@ -7,7 +8,6 @@ import IconArrowUp from '../icons/Scroll-up-arrow';
78
*/
89
function ScrollButton() {
910
const [backToTopButton, setBackToTopButton] = useState(false);
10-
const scrollImage = '/img/loaders/scroll.svg';
1111

1212
useEffect(() => {
1313
window.addEventListener('scroll', () => {
@@ -33,7 +33,7 @@ function ScrollButton() {
3333
className='rounded-full bg-white shadow-xl transition-all duration-200 ease-linear hover:scale-110 hover:bg-[#8851FB]'
3434
onClick={scrollUp}
3535
>
36-
<IconArrowUp className="w-12 h-12 px-2 py-2 text-gray-900 hover:text-white" />
36+
<IconArrowUp className='w-12 h-12 px-2 py-2 text-gray-900 hover:text-white' />
3737
</button>
3838
)}
3939
</div>

components/icons/Scroll-up-arrow.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ export default function ArrowUp({ className = '' }) {
77
return (
88
<svg
99
className={className || 'inline-block'}
10-
fill="currentColor"
11-
viewBox="0 0 20 20"
12-
xmlns="http://www.w3.org/2000/svg"
10+
fill='currentColor'
11+
viewBox='0 0 20 20'
12+
xmlns='http://www.w3.org/2000/svg'
1313
>
1414
<path
15-
fillRule="evenodd"
16-
d="M10 3a1 1 0 01.707.293l4 4a1 1 0 01-1.414 1.414L11 6.414V17a1 1 0 11-2 0V6.414L6.707 8.707A1 1 0 015.293 7.293l4-4A1 1 0 0110 3z"
17-
clipRule="evenodd"
15+
fillRule='evenodd'
16+
d='M10 3a1 1 0 01.707.293l4 4a1 1 0 01-1.414 1.414L11 6.414V17a1 1 0 11-2 0V6.414L6.707 8.707A1 1 0 015.293 7.293l4-4A1 1 0 0110 3z'
17+
clipRule='evenodd'
1818
/>
1919
</svg>
2020
);

next-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
/// <reference path="./.next/types/routes.d.ts" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)