Skip to content

Commit

Permalink
Merge pull request #2376 from sailaja-adapa/homepage
Browse files Browse the repository at this point in the history
Fixed Mobile view of Homepage
  • Loading branch information
panwar8279 authored Aug 3, 2024
2 parents 4822096 + 95a5fc3 commit 205bf9d
Show file tree
Hide file tree
Showing 39 changed files with 97 additions and 102 deletions.
1 change: 0 additions & 1 deletion frontend/src/Component/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState, useEffect } from "react";
import "../style/About.css";
import Pagination from "./Pagination";
import { getPaginationData, changePage } from "../utils/paginationData";

const FOUNDER = "HimanshuNarware";
const LINKEDIN_URL = "https://www.linkedin.com/in/HimanshuNarware";
const CARDS_PER_PAGE = 12;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/BackToTopButton.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState, useEffect } from 'react';
import '../style/BackToTopButton.css';
import { MdKeyboardDoubleArrowUp } from "react-icons/md";

function BackToTopButton() {
const [isVisible, setIsVisible] = useState(false);
const [scrollProgress, setScrollProgress] = useState(0);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/BookMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import toast from "react-hot-toast";
function BookMark() {
const sourceData = useSelector((state) => state.SourceReducer.sourceData);
const dispatch = useDispatch();

const [currentPage, setCurrentPage] = useState(1);
const [postPerPage] = useState(8); // Number of bookmarks per page

Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { Bounce, ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import animationData from "../lottie/contact.json";
import "../style/Contact.css";

const Contact = () => {
const [email, setEmail] = useState("");
const [isValid, setIsValid] = useState(true);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
import { MdOutlineArrowDropDown } from "react-icons/md";
import data from "./accordion";
import "react-accessible-accordion/dist/fancy-example.css";

export default function Faq() {
let [index, setIndex] = useState(0);
const [className, setClassName] = useState(null);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
} from "react-icons/ai";
import { BsYoutube, BsFillPersonLinesFill, BsCodeSlash } from "react-icons/bs";
import { Link } from "react-router-dom";

function Footer() {
const today = new Date();
const year = today.getFullYear();
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function Home(props) {
localStorage.getItem("filter") || ""
);
const ref = useRef(null);

useEffect(() => {
if (props.searchQuery !== "") {
ref.current?.scrollIntoView({
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function Modal({ isOpen, onClose, children }) {
if (!isOpen) {
return null;
}

return (
<div className="modal-overlay">
<div className="modal-content">
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/Component/Navbar/NavbarCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function NavbarCenter( ) {
<div className="bookmarkTag">
<FontAwesomeIcon icon={faBookmark} /> Bookmark <span className="totBook">{totalBookmarks}</span>
</div>
}
}
to="/bookmark"
/>
</li>
Expand Down Expand Up @@ -125,5 +125,4 @@ function NavbarCenter( ) {
</nav>
);
}

export default NavbarCenter;
1 change: 0 additions & 1 deletion frontend/src/Component/Navbar/NavbarItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { Link } from "react-router-dom";

function NavbarItem({ description, to }) {
return (
<Link to={to} className="Link nav-link active" aria-current="page">
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Component/Navbar/NavbarLeft.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function NavbarLeft(props, showSideNav) {
e.preventDefault();
props.setShowSideNav(!props.showSideNav);
}

function handleItemClick() {
props.setShowSideNav(false);
}
Expand All @@ -46,5 +45,4 @@ function NavbarLeft(props, showSideNav) {
</span>
);
}

export default NavbarLeft;
1 change: 0 additions & 1 deletion frontend/src/Component/Navbar/NavbarRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function NavbarRight({ setSearchQuery }) {
const handleInputChange = (e) => {
setLocalSearchQuery(e.target.value); // Update the search query when input changes
};

const handleSearch = (e) => {
e.preventDefault();
setSearchQuery(searchQuery); // Pass the search query to the parent component (App)
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function NotFound() {
</div>
);
}

export default NotFound;


1 change: 0 additions & 1 deletion frontend/src/Component/OpenSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import ReactPaginate from "react-paginate";
import axios from "axios";
import ClipLoader from "react-spinners/ClipLoader";
import jsonProjects from "../DB/openSource.json";

const BACKEND = process.env.REACT_APP_BACKEND;

const OpenSource = () => {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const Pagination = ({
<div className="page-index">
Showing {firstCardIndex + 1}-{lastCardIndex} from {dataLength} results
</div>

<ul className="pagination_about_us">
{(currentPage > 1) &&
<li className="page-item">
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Component/Preloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ function Preloader() {
},2000)
},[])
return (


loading ?
<div className='pre'>
<Lottie className="preloader" animationData={pre}/>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/Component/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function Profile() {
website: ""
});
const [isSubmitted, setIsSubmitted] = useState(false);

// Le data from localStorage when the component mounts
const [isLoggedIn, setIsLoggedIn] = useState(false);
const [showLogin, setShowLogin] = useState(true); // Toggle between login and signup
const [formData, setFormData] = useState({
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Rate.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from 'react'
import { FaStar } from 'react-icons/fa'
import "./Rate.css"

const Rate = () => {
const [rating, setRating] = useState(null);
const [hover, setHover] = useState(null);
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/Component/Rateus.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ export default function Rate({ rating, setRating }) {
</div>
);
}


1 change: 0 additions & 1 deletion frontend/src/Component/Review.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function Review() {
.catch((error) => {
return error.response;
});

setProcessingMail(false);
if (response.data.success) toast.success("Mail Sent Successfully!!");
else if (response.data && response.data.errors) {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/Component/ScrollToTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ function ScrollToTop() {
window.scrollTo(0,0);
},[pathname])
return null;

}

export default ScrollToTop;
1 change: 0 additions & 1 deletion frontend/src/Component/Sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,4 @@ function Sidebar({ showSideNav }) {
</div>
);
}

export default Sidebar;
1 change: 0 additions & 1 deletion frontend/src/Component/Sidebar/SidebarContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";

function SidebarContent({name,description,active}) {

function handleSidebarClick(prop) {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/Component/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function Signup() {

const handleSubmit = async (event) => {
event.preventDefault();

try {
const response = await fetch('http://localhost:8000/users/signup', {
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Component/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ const data = [
"To contribute, go to the GitHub repository, create a new repository, clone the project, and start contributing",
},
];
export default data;
export default data;
1 change: 0 additions & 1 deletion frontend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Darkmode from "darkmode-js";
import { BrowserRouter } from "react-router-dom";

const root = ReactDOM.createRoot(document.getElementById("root"));

const options = {
bottom: "unset",
left: "15px",
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/AI.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
padding: 0;
background-color: #f4f4f4;
}

.container {
max-width: 1200px;
margin: 0 auto;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
margin-top: 6rem;
width: 100%;
}

.about__founder-container,
.about__buttons-container {
display: flex;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/Animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from { opacity: 0; }
to { opacity: 1; }
}

.fade-in {
animation: fadeIn 1s ease-in-out;
}
1 change: 0 additions & 1 deletion frontend/src/style/BackToTopButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
display: block;
opacity: 1;
}

.back-to-top-button:not(.visible) {
opacity: 0;
transform: translateY(20px);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/BackendTools.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
padding: 0;
background-color: #f4f4f4;
}

.frontend-tools {
text-align: center;
padding: 80px 20px;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/BookMark.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
align-items: center;
width: 100vw;
}

.bookmark__container {
margin-top: 8rem;
display: grid;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/CodingPlatform.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
padding: 0;
background-color: #f4f4f4;
}

.coding-platform {
text-align: center;
padding: 80px 20px;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/style/Collaboration.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
padding: 0;
background-color: #f0f0f0;
}

.container {
max-width: 1200px;
margin: 0 auto;
Expand Down
Loading

0 comments on commit 205bf9d

Please sign in to comment.