Skip to content

Commit

Permalink
Merge pull request #326 from divyansh-2005/home-icon
Browse files Browse the repository at this point in the history
home button added to all pages
  • Loading branch information
SUGAM-ARORA authored Jun 19, 2024
2 parents a2bd22f + ece602c commit c2baf0f
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Components/footer_section/BlogPage/BlogPage.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.home-icon {
position: absolute;
top: 1.5rem;
left: 1.5rem;
width: 2.5rem;
cursor: pointer;
}

.blog-page {
display: flex;
flex-direction: column;
Expand Down
5 changes: 5 additions & 0 deletions src/Components/footer_section/BlogPage/BlogPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState } from 'react';
import './BlogPage.css';
import { Link } from 'react-router-dom';
import homeIcon from '../../../img/homeicon.png';

const blogs = [
{
Expand Down Expand Up @@ -48,6 +50,9 @@ const BlogPage = () => {

return (
<div className="blog-page">
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<div className="blogs">
{blogs.map((blog, index) => (
<div
Expand Down
8 changes: 8 additions & 0 deletions src/Components/footer_section/ContactUs/contact_us.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.home-icon {
position: absolute;
top: 1rem;
left: 1rem;
width: 2.5rem;
cursor: pointer;
}

.containerContact {
width: 95vw;
margin: auto;
Expand Down
5 changes: 5 additions & 0 deletions src/Components/footer_section/ContactUs/contact_us.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import './contact_us.css';
import React from 'react';
import { Link } from 'react-router-dom';
import homeIcon from '../../../img/homeicon.png';

function ContactUs() {
return (
<div className='box'>
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<div className='containerContact'>
<div className='general'>
<div className='box1'>
Expand Down
8 changes: 8 additions & 0 deletions src/Components/footer_section/FAQPage/FAQPage.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.home-icon {
position: absolute;
top: 1.5rem;
left: 1.5rem;
width: 2.5rem;
cursor: pointer;
}

.page-container {
display: flex;
flex-direction: column;
Expand Down
6 changes: 5 additions & 1 deletion src/Components/footer_section/FAQPage/FAQPage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from 'react';
import './FAQPage.css'; // Ensure the CSS file is created and imported

import { Link } from 'react-router-dom';
import homeIcon from '../../../img/homeicon.png';
const faqs = [
{
question: "What is UniCollab?",
Expand Down Expand Up @@ -53,6 +54,9 @@ const FAQPage = () => {

return (
<div className="page-container">
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<h1>FAQs</h1>
<div className="faqs">
{faqs.map((faq, index) => (
Expand Down
8 changes: 8 additions & 0 deletions src/Components/footer_section/about_us/About_us.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.home-icon {
position: absolute;
top: 1.5rem;
left: 1.5rem;
width: 2.5rem;
cursor: pointer;
}

.about-us {
display: block;
margin: auto;
Expand Down
6 changes: 6 additions & 0 deletions src/Components/footer_section/about_us/About_us.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {useState} from 'react';
import { Link } from 'react-router-dom';
import "./About_us.css";
import collaborate from '../../../img/collaboration.png';
import collaboratehover from '../../../img/collaborationhover.png';
Expand All @@ -8,6 +9,8 @@ import project from '../../../img/project.png';
import projecthover from '../../../img/projecthover.png';
import event from '../../../img/event.png';
import eventhover from '../../../img/eventhover.png';
import homeIcon from '../../../img/homeicon.png';


const AboutUs = () => {
const [collaborateHover, setCollaborateHover] = useState(false);
Expand All @@ -17,6 +20,9 @@ const AboutUs = () => {

return (
<div id='about-us' style={{display: 'flex', flexDirection: 'column', gap: '1rem', marginBottom: '3rem'}}>
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<h1 className='about-us-heading'>About Us</h1>
<div className='about-us-block'>
<div className='about-us-community' onMouseOver={()=>setCollaborateHover(true)} onMouseLeave={()=>setCollaborateHover(false)}>
Expand Down
8 changes: 8 additions & 0 deletions src/Components/footer_section/services/Services.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.home-icon {
position: absolute;
top: 1.5rem;
left: 1.5rem;
width: 2.5rem;
cursor: pointer;
}

.services {
display: flex;
flex-direction: column;
Expand Down
5 changes: 5 additions & 0 deletions src/Components/footer_section/services/Services.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { useState } from 'react';
import './Services.css';
import { Link } from 'react-router-dom';
import homeIcon from '../../../img/homeicon.png';

const service = [
{
Expand Down Expand Up @@ -48,6 +50,9 @@ const Services = () => {

return (
<div className="services">
<Link to="/">
<img src={homeIcon} alt="Home" className="home-icon" />
</Link>
<div className="service">
{service.map((service, index) => (
<div
Expand Down
Binary file added src/img/homeicon.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/img/homeicon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c2baf0f

Please sign in to comment.