From cdcdf0c7de864374c092ffbc9b4ced28c8259841 Mon Sep 17 00:00:00 2001 From: sam-shervin Date: Sun, 31 Mar 2024 04:05:01 +0530 Subject: [PATCH] improvements in responsiveness --- .github/workflows/automatedpr.yml | 24 ------------------------ pnpm-lock.yaml | 1 - src/components/countdown.tsx | 16 ++++++++-------- src/components/footer.tsx | 2 +- src/components/header.tsx | 13 +++++-------- src/components/pages/FAQ.tsx | 10 ++++------ src/components/pages/about.tsx | 4 ++-- src/components/pages/timeline.tsx | 16 +++++++++------- src/pages/index.tsx | 2 +- 9 files changed, 30 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/automatedpr.yml delete mode 100644 pnpm-lock.yaml diff --git a/.github/workflows/automatedpr.yml b/.github/workflows/automatedpr.yml deleted file mode 100644 index 2a5fedc..0000000 --- a/.github/workflows/automatedpr.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Push to Forked Repository - -on: - push: - branches: - - sam-patch - -jobs: - push_to_forked_repo: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Push to Forked Repository - run: | - git config --global user.email "samshervin.sebastian@gmail.com" - git config --global user.name "sam-shervin" - git checkout sam-patch - git config pull.rebase false - git remote add hackhub-24-testdeploy https://github.com/sam-shervin/hackhub-24-testdeploy - git pull hackhub-24-testdeploy master --allow-unrelated-histories - git push hackhub-24-testdeploy sam-patch:master diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index d3190d7..0000000 --- a/pnpm-lock.yaml +++ /dev/null @@ -1 +0,0 @@ -#delete this before you work next time \ No newline at end of file diff --git a/src/components/countdown.tsx b/src/components/countdown.tsx index 127f565..27e57f8 100644 --- a/src/components/countdown.tsx +++ b/src/components/countdown.tsx @@ -64,27 +64,27 @@ export default function Countdown({
-

{timeLeft.days}

-

+

{timeLeft.days}

+

days

-

{timeLeft.hours}

-

+

{timeLeft.hours}

+

hours

-

{timeLeft.minutes}

-

+

{timeLeft.minutes}

+

minutes

-

{timeLeft.seconds}

-

+

{timeLeft.seconds}

+

seconds

diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 337a52b..a2d122a 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -11,7 +11,7 @@ import devto from "../assets/socialmedia/devto.png"; const Footer = () => { return ( -
+
{ const [currentButton, setCurrentButton] = useState(buttons[0]); // Set the first button as initially highlighted const buttonRefs = React.useRef<{ [key: string]: HTMLElement | null }>({}); - const [isDesktop, setDesktop] = useState(false); const [isRadialNavbarOpen, setRadialNavbarOpen] = useState(false); const openRadialNavbar = () => { @@ -85,7 +82,7 @@ const Navbar = ({ buttons }: { buttons: string[] }): JSX.Element => { @@ -115,7 +112,7 @@ const Navbar = ({ buttons }: { buttons: string[] }): JSX.Element => { > {buttons.map((button) => { return ( - +
{ > {button}
- +
); })} diff --git a/src/components/pages/FAQ.tsx b/src/components/pages/FAQ.tsx index 07da525..e11b6ea 100644 --- a/src/components/pages/FAQ.tsx +++ b/src/components/pages/FAQ.tsx @@ -56,15 +56,14 @@ export default function FAQ(): JSX.Element { <> -
+
FAQs
{faqs.map((faq, index) => ( -
toggleTopic(index)} >
{faq.topic}
@@ -87,7 +86,6 @@ export default function FAQ(): JSX.Element { />
{selectedTopic === index && ( -

{faq.description}

diff --git a/src/components/pages/about.tsx b/src/components/pages/about.tsx index bf51111..ee66444 100644 --- a/src/components/pages/about.tsx +++ b/src/components/pages/about.tsx @@ -17,7 +17,7 @@ export default function About(): JSX.Element { <>
About @@ -31,7 +31,7 @@ export default function About(): JSX.Element {
Welcome to IEEE Computer Society VIT Chennai, where innovation meets impact. This event is a vibrant arena for budding technologists, diff --git a/src/components/pages/timeline.tsx b/src/components/pages/timeline.tsx index 0c64299..1a6f17e 100644 --- a/src/components/pages/timeline.tsx +++ b/src/components/pages/timeline.tsx @@ -50,7 +50,7 @@ export default function Timeline(): JSX.Element {
-
+
Timeline
@@ -59,24 +59,26 @@ export default function Timeline(): JSX.Element { >
{times.map((time, index) => ( -
+
{time.topic}
-
+
{time.description}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 6eb0307..278a480 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -146,7 +146,7 @@ export default function Home() { delay: 2, ease: "easeInOut", }} - className={`${roboto.className} absolute left-[6rem] top-[-19rem] text-[20rem] z-1 gradient-border`} + className={`${roboto.className} sm:hidden absolute left-[6rem] top-[-19rem] text-[20rem] z-1 gradient-border`} > ×