Skip to content

Commit c7a7330

Browse files
committed
style: Back to Home
1 parent fdf1968 commit c7a7330

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

src/pages/AboutPage.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ const AboutPage = () => {
120120
return (
121121
<div className="py-8 sm:py-16">
122122
<div className="mx-auto max-w-7xl px-6 lg:px-8 text-gray-300">
123-
<Link
124-
to="/"
125-
className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4"
126-
>
127-
<ArrowLeftIcon className="text-xl" /> Back to Home
123+
<Link to="/" className="group text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4" >
124+
<ArrowLeftIcon className="text-xl transition-transform group-hover:-translate-x-1" /> Back to Home
128125
</Link>
129126
<div className="border border-gray-700 p-8 rounded-lg shadow-xl flex">
130127
<div className="w-1 bg-gray-600 mr-1 hidden sm:block"></div>

src/pages/CommandsPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function CommandsPage() {
3636
return (
3737
<div className="py-16 sm:py-24">
3838
<div className="mx-auto max-w-7xl px-6 lg:px-8">
39-
<Link to="/" className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4">
40-
<ArrowLeftIcon size={24} /> Back to Home
39+
<Link to="/" className="group text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4" >
40+
<ArrowLeftIcon className="text-xl transition-transform group-hover:-translate-x-1" /> Back to Home
4141
</Link>
4242
<div className="mx-auto max-w-2xl text-center">
4343
<h1 className="text-4xl font-semibold tracking-tight text-white sm:text-6xl flex items-center justify-center">

src/pages/SettingsPage.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Link } from 'react-router-dom';
3-
import { ArrowLeft } from '@phosphor-icons/react';
3+
import {ArrowLeft, ArrowLeftIcon} from '@phosphor-icons/react';
44
import { useAnimation } from '../context/AnimationContext';
55
import colors from '../config/colors';
66
import CustomToggle from '../components/CustomToggle';
@@ -72,11 +72,8 @@ const SettingsPage = () => {
7272
return (
7373
<div className="py-16 sm:py-24">
7474
<div className="mx-auto max-w-7xl px-6 lg:px-8">
75-
<Link
76-
to="/"
77-
className="text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4"
78-
>
79-
<ArrowLeft size={24} /> Back to Home
75+
<Link to="/" className="group text-primary-400 hover:underline flex items-center justify-center gap-2 text-lg mb-4" >
76+
<ArrowLeftIcon className="text-xl transition-transform group-hover:-translate-x-1" /> Back to Home
8077
</Link>
8178
<div className="mx-auto max-w-2xl text-center">
8279
<h1 className="text-4xl font-semibold tracking-tight text-white sm:text-6xl">

0 commit comments

Comments
 (0)