Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added scroll up button to 3 components #21

Merged
merged 2 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/up-arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import style from "./page.module.css";
import { Russo_One } from "next/font/google";
import { useEffect, useState } from "react";
import axios from "axios";
import Image from "next/image";

const antonFont = Russo_One({ subsets: ["latin"], weight: "400" });

Expand Down Expand Up @@ -93,6 +94,18 @@ export default function Home() {
</div>
</div>
</div>
<div className=" h-[0px] bg-[#3366ff] flex justify-end">
<a href="#">
<Image
className="md:w-[70px] w-[40px] h-[40px] md:h-[70px] fixed right-[30px] bottom-[30px] md:bottom-[50px] md:right-[90px]"
src="/up-arrow.png"
alt="image here"
width={100}
height={100}
/>
</a>
</div>

<div id="section2">
<Second />
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Fifth/fifth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import Image from 'next/image'
export const Fifth = () => {
return (
<>
<div className='bg-[#3366ff] w-[100vw] h-[800px] flex items-center'>
<div className='w-[90%] h-[80%] bg-[#ffffff] m-auto border-2 border-black rounded-3xl flex item-center ' style={{boxShadow:"20px 20px 0px black"}}>
<div className=' flex-col w-[80%] h-[90%] m-auto sm:w-[60%]'>
Expand All @@ -12,7 +13,7 @@ export const Fifth = () => {
<Image className=' hidden xl:block relative right-[160px] bottom-[160px]' src="/arrow.png" alt="image" height={150} width={150}/>
</div>
<div className='justify-around flex item-center w-[100%] h-[25%] py-[10px] sm:pt-[20px]'>
<div className='w-[20%] h-[40%] bg-[#D8FF40] border-black border-2 rounded-3xl text-xs text-center pt-[13px] cursor-pointer sm:font-medium sm:pt-[13px]'>General</div>
<div className='w-[20%] h-[40%] bg-[#D8FF40] border-black border-2 rounded-3xl text-xs text-center pt-[13px] cursor-pointer sm:font-medium sm:pt-[13px]'><a href="#">General</a></div>
<div className='w-[20%] h-[40%] bg-[#F7FFD9] border-black border-2 rounded-3xl text-xs text-center pt-[13px] cursor-pointer sm:font-medium sm:pt-[13px]'>Services</div>
<div className='w-[20%] h-[40%] bg-[#F7FFD9] border-black border-2 rounded-3xl text-xs text-center pt-[13px] cursor-pointer sm:font-medium sm:pt-[13px]'>Business</div>
<div className='w-[20%] h-[40%] bg-[#F7FFD9] border-black border-2 rounded-3xl text-xs text-center pt-[13px] cursor-pointer sm:font-medium sm:pt-[13px]'>Account</div>
Expand All @@ -39,9 +40,12 @@ export const Fifth = () => {
</div>

</div>



</div>

</>
)
}

Expand Down
2 changes: 2 additions & 0 deletions src/components/Second/second.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export const Second = () => {
</div>
</div>
</div>


</div>
);
};
1 change: 1 addition & 0 deletions src/components/Third/third.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const Third = () => {
</div>
</div>
</div>

</div>
);
};
Loading