Skip to content

Commit b3e3d24

Browse files
committed
tailwind cleanup
1 parent 3b5e96e commit b3e3d24

3 files changed

Lines changed: 4 additions & 159 deletions

File tree

components/Buttons/BackToTopButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ const BackToTopButton: React.FC = () => {
4242
return isVisible ? (
4343
<button
4444
onClick={scrollToTop}
45-
className="back-to-top-button fixed bottom-8 right-8 w-12 h-12 rounded-full border-none font-semibold flex items-center justify-center cursor-pointer overflow-hidden z-50 outline-none transition-all duration-300 ease-in-out transform hover:scale-95 active:scale-90"
45+
className="group fixed bottom-8 right-8 w-12 h-12 rounded-full border-none font-semibold flex items-center justify-center cursor-pointer overflow-hidden z-50 outline-none transition-all duration-300 ease-in-out transform hover:scale-95 active:scale-90 bg-[rgb(20,20,20)] shadow-[0px_0px_0px_4px_rgba(180,160,255,0.253)] hover:w-[140px] hover:rounded-[50px] hover:bg-[rgb(181,160,255)]"
4646
aria-label="Back to top"
4747
>
4848
<Arrows
49-
className="back-to-top-icon w-3 h-3 transition-all duration-300 ease-in-out"
49+
className="w-3 h-3 transition-all duration-300 ease-in-out group-hover:-translate-y-[200%] group-hover:opacity-0"
5050
direction="up"
5151
fill="white"
5252
/>
53-
<span className="back-to-top-text absolute text-white text-xs opacity-0 whitespace-nowrap transition-all duration-300 ease-in-out">
53+
<span className="absolute text-white text-xs opacity-0 whitespace-nowrap transition-all duration-300 ease-in-out group-hover:text-[13px] group-hover:opacity-100">
5454
Back to Top
5555
</span>
5656
</button>

components/Dropdown/dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Dropdown<T>({
5353
<div className="w-full">
5454
<button
5555
type="button"
56-
className={`flex justify-between text-white p-4 w-full gap-x-1.5 shadow-sm card-bg hover:bg-gray-50 gradient-bg no-border rounded-md cursor-pointer`}
56+
className={`flex justify-between text-white p-4 w-full gap-x-1.5 shadow-sm card-bg hover:bg-gray-50 gradient-bg border-none rounded-md cursor-pointer`}
5757
id="menu-button"
5858
aria-expanded={show}
5959
aria-haspopup="true"

styles/globals.css

Lines changed: 0 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ body {
1616
background: #1b1130;
1717
}
1818

19-
/* Social media icon tooltip */
2019
.social-wrapper .icon .tooltip {
2120
position: absolute;
2221
top: 0;
@@ -101,30 +100,13 @@ body {
101100
}
102101
}
103102

104-
/* .container{
105-
max-width: 1400px;
106-
} */
107-
108103
@media (max-width: 992px) {
109104
.container {
110105
padding-left: 1rem;
111106
padding-right: 1rem;
112107
}
113108
}
114109

115-
.slick-slide {
116-
margin-left: 20px;
117-
margin-right: 20px;
118-
}
119-
.slick-track {
120-
display: flex !important;
121-
}
122-
123-
.slick-dots {
124-
position: relative !important;
125-
bottom: 0 !important;
126-
}
127-
128110
.gradient-bg {
129111
background-image: linear-gradient(
130112
225deg,
@@ -174,26 +156,7 @@ body {
174156
mix-blend-mode: normal;
175157
}
176158

177-
.dropDown {
178-
box-shadow:
179-
0px 59px 100px rgba(0, 0, 0, 0.25),
180-
0px 44px 94px rgba(0, 0, 0, 0.15);
181-
}
182-
183-
.no-border {
184-
border: none !important;
185-
}
186-
187-
.header-bg {
188-
background: linear-gradient(320deg, #2db4fd 10.35%, #410854 88.41%);
189-
}
190-
191159
.card-bg {
192-
/* background: linear-gradient(119.66deg, rgba(255, 255, 255, 0.18) 6.74%, rgba(255, 255, 255, 0.06) 98.36%);
193-
border: 2px solid rgba(255, 255, 255, 0.64); */
194-
/* box-shadow: 0px 40px 20px rgba(0, 0, 0, 0.05);
195-
backdrop-filter: blur(10px); */
196-
/* Note: backdrop-filter has minimal browser support */
197160
background-position: center;
198161
background-size: cover;
199162
background-color: rgba(228, 228, 228, 0.046);
@@ -210,7 +173,6 @@ backdrop-filter: blur(10px); */
210173
border: 2px solid rgba(255, 255, 255, 0.64);
211174
box-shadow: 0px 40px 20px rgba(0, 0, 0, 0.05);
212175
backdrop-filter: blur(10px);
213-
/* Note: backdrop-filter has minimal browser support */
214176
border-radius: 8px;
215177
}
216178

@@ -224,120 +186,3 @@ backdrop-filter: blur(10px); */
224186
backdrop-filter: blur(8.30696px);
225187
mix-blend-mode: lighten;
226188
}
227-
228-
.color-effect {
229-
position: absolute;
230-
width: 100vw;
231-
max-width: none;
232-
233-
bottom: 500px;
234-
will-change: transform;
235-
transform: translate3d(0%, 9.9964%, 0px) scale3d(1, 1, 1) rotateX(0deg)
236-
rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
237-
transform-style: preserve-3d;
238-
vertical-align: middle;
239-
display: inline-block;
240-
z-index: 0;
241-
}
242-
243-
@media (max-width: 780px) {
244-
.color-effect {
245-
bottom: 900px;
246-
opacity: 0.7;
247-
}
248-
}
249-
250-
/* title styles */
251-
.home-title span {
252-
position: relative;
253-
overflow: hidden;
254-
display: block;
255-
line-height: 1.2;
256-
}
257-
258-
.home-title span::after {
259-
content: '';
260-
position: absolute;
261-
top: 0;
262-
right: 0;
263-
width: 100%;
264-
height: 100%;
265-
background: #b31fe4;
266-
animation: a-ltr-after 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
267-
transform: translateX(-101%);
268-
}
269-
270-
.home-title span::before {
271-
content: '';
272-
position: absolute;
273-
color: white;
274-
top: 0;
275-
right: 0;
276-
width: 100%;
277-
height: 100%;
278-
background: var(--bg-color);
279-
animation: a-ltr-before 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
280-
transform: translateX(0);
281-
}
282-
283-
.home-title span:nth-of-type(1)::before,
284-
.home-title span:nth-of-type(1)::after {
285-
animation-delay: 1s;
286-
}
287-
288-
.home-title span:nth-of-type(2)::before,
289-
.home-title span:nth-of-type(2)::after {
290-
animation-delay: 1.5s;
291-
}
292-
293-
@keyframes a-ltr-after {
294-
0% {
295-
transform: translateX(-100%);
296-
}
297-
100% {
298-
transform: translateX(101%);
299-
}
300-
}
301-
302-
@keyframes a-ltr-before {
303-
0% {
304-
transform: translateX(0);
305-
}
306-
100% {
307-
transform: translateX(200%);
308-
}
309-
}
310-
311-
.hoverEffect {
312-
transition: transform 0.3s ease-in-out; /* Add a smooth transition effect */
313-
}
314-
315-
.card-opacity:hover {
316-
opacity: 100;
317-
}
318-
319-
.hoverEffect:hover {
320-
transform: scale(1.1); /* Scale the image by 10% on hover */
321-
}
322-
323-
/* Back to Top Button Styles - Custom animations not handled by Tailwind */
324-
.back-to-top-button {
325-
background-color: rgb(20, 20, 20);
326-
box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
327-
}
328-
329-
.back-to-top-button:hover {
330-
width: 140px;
331-
border-radius: 50px;
332-
background-color: rgb(181, 160, 255);
333-
}
334-
335-
.back-to-top-button:hover .back-to-top-icon {
336-
transform: translateY(-200%);
337-
opacity: 0;
338-
}
339-
340-
.back-to-top-button:hover .back-to-top-text {
341-
font-size: 13px;
342-
opacity: 1;
343-
}

0 commit comments

Comments
 (0)