Skip to content
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 src/assets/socialmedia/gmail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/instagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/socialmedia/telegram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/component/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const Contact = () => {
>
contactlearnwebdevelopment@gmail.com
</a>
<p className="text-xl font-semibold underline">telegram Id:</p>
<p className="text-xl font-semibold underline">Telegram</p>
<a
href={`https://t.me/codehangout`}
href={`https://telegram.me/codehangout`}
target="_blank"
rel="noreferrer"
className="hover:text-blue-500 hover:underline"
>
https://t.me/codehangout
Learn web development
</a>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/component/Home.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Banner from '../assets/Banner.jpg'
import BookList from './BookList'
import SocialMedia from './SocialMedia'

const Home = () => {
// w-[200px] h-[200px] md:w-[310px] md:h-[310px]
Expand All @@ -20,6 +21,9 @@ const Home = () => {
<div className='my-10'>
<BookList />
</div>
<div>
<SocialMedia/>
</div>
</div>
)
}
Expand Down
44 changes: 44 additions & 0 deletions src/component/SocialMedia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react'
import instagram from "../assets/socialmedia/instagram.png";
import gmail from "../assets/socialmedia/gmail.png";
import telegram from '../assets/socialmedia/telegram.png'
const SocialMedia = () => {
const SocialIcons = [
{
id: 1,
img: instagram,
url: "https://www.instagram.com/learn_web_development1/?igshid=ZmZhODViOGI%3D",
name: 'insta'
},
{
id: 2,
img: gmail,
url: "mailto:contactlearnwebdevelopment@gmail.com?subject=ask%20query",
name: 'gmail'

},
{
id: 3,
img: telegram,
url: "https://telegram.me/codehangout",
name: 'telegram'

}
];

const openUrl = (url) => {
window.open(url, "_blank", "noopener,noreferrer");
};
return (
<div className='py-2'>
<h2 className='text-center font-bold text-xl underline'>Social media</h2>
<div className='flex justify-center gap-x-2'>
{SocialIcons.map((item) => (
<div className='cursor-pointer' onClick={() => openUrl(item.url)}><img className='w-10 h-10' alt={item.name} src={item.img} /></div>
))}
</div>
</div>
)
}

export default SocialMedia