Skip to content

Commit 28bbb6e

Browse files
authored
adjusted overflowing layout, navigation dropdown alignment (#502)
1 parent c9d2ee8 commit 28bbb6e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/components/AboutUs/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ const HeroSection = () => {
106106
animate="visible"
107107
transition={{ delay: 0.5, duration: 0.8 }}
108108
>
109+
A{' '}
109110
<motion.span
110111
className="relative inline-block"
111112
variants={heroAnimations.hoverText}
112113
whileHover="hover"
113114
>
114-
A
115115
<span className="text-rose-500 dark:text-rose-400 font-semibold">
116116
{' '}
117117
Community

src/components/Info.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ const Info: React.FC = () => {
228228
{/* Card on Top Left */}
229229
{windowWidth >= 270 && (
230230
<motion.div
231-
className="absolute top-2 left-2 bg-black/60
231+
className="absolute top-1 left-2 bg-black/60
232232
backdrop-blur-sm rounded-lg sm:rounded-xl p-2.5 sm:p-4 md:p-6 shadow-lg
233233
max-w-[180px] sm:max-w-[220px] md:max-w-xs transform hover:scale-105
234234
transition-all duration-300 ease-out z-10 border border-white/50"
235-
whileHover={{ scale: 1.05 }}
235+
whileHover={{ scale: 1 }}
236236
>
237237
{windowWidth >= 355 && (
238238
<>
@@ -257,11 +257,11 @@ const Info: React.FC = () => {
257257
{/* Card on Bottom Right */}
258258
{windowWidth >= 270 && (
259259
<motion.div
260-
className="absolute bottom-2 right-2 bg-black/60
260+
className="absolute bottom-1 right-2 bg-black/60
261261
backdrop-blur-sm rounded-lg sm:rounded-xl p-2.5 sm:p-4 md:p-6 shadow-lg
262262
max-w-[180px] sm:max-w-[220px] md:max-w-xs transform hover:scale-105
263263
transition-all duration-300 ease-out z-10 border border-white/50"
264-
whileHover={{ scale: 1.05 }}
264+
whileHover={{ scale: 1 }}
265265
>
266266
{windowWidth >= 355 && (
267267
<>

src/sections/NavDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const NavDropdown: React.FC<NavDropdownProps> = ({
5454
animate={{ opacity: 1, y: 0 }}
5555
exit={{ opacity: 0, y: 10 }}
5656
transition={{ duration: 0.2 }}
57-
className="absolute left-0 mt-2 w-56 rounded-xl bg-white dark:bg-gray-800 shadow-xl ring-1 ring-black dark:ring-white ring-opacity-5 dark:ring-opacity-10 overflow-hidden"
57+
className="absolute left-0 mt-[0.074rem] w-56 rounded-xl bg-white dark:bg-gray-800 shadow-xl ring-1 ring-black dark:ring-white ring-opacity-5 dark:ring-opacity-10 overflow-hidden"
5858
>
5959
<div className="py-2">
6060
{items.map((item) => (

src/styles/Animations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export const item = {
322322
y: 0,
323323
opacity: 1,
324324
transition: {
325-
duration: 0.8,
325+
duration: 0.1,
326326
ease: easeOut,
327327
},
328328
},

0 commit comments

Comments
 (0)