Skip to content

Commit

Permalink
fix(assets): removed all images from assets
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed May 22, 2024
1 parent 7950923 commit 81737ef
Show file tree
Hide file tree
Showing 36 changed files with 276 additions and 275 deletions.
Binary file removed src/Assets/Images/alien.png
Binary file not shown.
Binary file removed src/Assets/Images/blinky.png
Binary file not shown.
Binary file removed src/Assets/Images/burger-min.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_1.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_2.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_3.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_4.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_5.png
Binary file not shown.
Binary file removed src/Assets/Images/candy_6.png
Binary file not shown.
Binary file removed src/Assets/Images/ccLogo-min.png
Binary file not shown.
Binary file removed src/Assets/Images/clyde.png
Binary file not shown.
Binary file removed src/Assets/Images/cpu-min.jpeg
Binary file not shown.
Binary file removed src/Assets/Images/cupcake_bg.jpg
Binary file not shown.
Binary file removed src/Assets/Images/inky.png
Binary file not shown.
Binary file removed src/Assets/Images/jet.png
Binary file not shown.
Binary file removed src/Assets/Images/keyboard-min.jpeg
Binary file not shown.
Binary file removed src/Assets/Images/logo-min.png
Binary file not shown.
Binary file removed src/Assets/Images/mongoose-min.png
Binary file not shown.
Binary file removed src/Assets/Images/newLogo.png
Binary file not shown.
Binary file removed src/Assets/Images/pinky.png
Binary file not shown.
Binary file removed src/Assets/Images/project-min.jpg
Binary file not shown.
Binary file removed src/Assets/Images/project1-min.jpg
Binary file not shown.
Binary file removed src/Assets/Images/projects-min.jpg
Binary file not shown.
Binary file removed src/Assets/Images/scared-ghost.png
Binary file not shown.
11 changes: 6 additions & 5 deletions src/Components/Games/Pacman/pacman.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { Button, Grid, Result } from "../common";
import { layout, legends } from "./resource";
import React, { useEffect, useState } from "react";
import styled from "styled-components";
import BlinkyImg from "../../../Assets/Images/blinky.png";
import ClydeImg from "../../../Assets/Images/clyde.png";
import InkyImg from "../../../Assets/Images/inky.png";
import PinkyImg from "../../../Assets/Images/pinky.png";
import GhostImg from "../../../Assets/Images/scared-ghost.png";
import PacmanImg from "../../../Assets/Gif/pacman.gif";


const ClydeImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/clyde.png";
const BlinkyImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/blinky.png";
const InkyImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/inky.png";
const PinkyImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/pinky.png";
const GhostImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/scared-ghost.png";
const Block = styled.div`
display: flex;
align-items: center;
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Games/SpaceInvaders/spaceinvaders.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Button, Grid, Result } from "../common";
import React, { useEffect, useState } from "react";
import styled, { css } from "styled-components";
import AlienImage from "../../../Assets/Images/alien.png";
import Jet from "../../../Assets/Images/jet.png";
import ExplosionGif from "../../../Assets/Gif/explosion.gif";
import Sound from "../../../Assets/Sounds/laser.mp3";

const Jet = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/jet.png";
const AlienImage = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/alien.png";
const Shooter = css`
background-image: url(${Jet});
background-size: cover;
Expand Down
15 changes: 8 additions & 7 deletions src/Components/Games/SweetCrush/sweetcrush.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { Button, Grid } from "../common";
import React, { useEffect, useState } from "react";
import Candy1 from "../../../Assets/Images/candy_1.png";
import Candy2 from "../../../Assets/Images/candy_2.png";
import Candy3 from "../../../Assets/Images/candy_3.png";
import Candy4 from "../../../Assets/Images/candy_4.png";
import Candy5 from "../../../Assets/Images/candy_5.png";
import Candy6 from "../../../Assets/Images/candy_6.png";
import BgImg from "../../../Assets/Images/cupcake_bg.jpg";
import Confetti from "../../../Assets/Gif/confetti.gif";
import styled, { css, keyframes } from "styled-components";


const Candy1 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_1.png";
const Candy2 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_2.png";
const Candy3 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_3.png";
const Candy4 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_4.png";
const Candy5 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_5.png";
const Candy6 = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/candy_6.png";
const BgImg = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/cupcake_bg.jpg";
const ShakeAnim = keyframes`
0% { transform: translateX(0px) }
10% { transform: translateX(2px) }
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Loading/ProLoader.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import './ProLoader.css';
import logo from '../../Assets/Images/newLogo.png';

const ProLoader = () => {
const logo = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/newLogo.png";
return (
<div class="loading-screen">
<div class="loading-animation">
Expand Down
6 changes: 4 additions & 2 deletions src/Components/NavBar/NavBar.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, {useReducer, useContext, useEffect } from "react";
import axios from "axios";
import "./NavBar.css";
import burger from '../../Assets/Images/burger-min.png';
import Logo from '../../Assets/Images/logo-min.png';
import { Link } from "react-router-dom";
import { GlobalState } from '../../GlobalState';
import { StyledHeaderNav } from '../../Layout/Container/styledContainer'
Expand All @@ -12,6 +10,10 @@ import { useCookies } from "react-cookie";
import { useLocation } from "react-router-dom";

const NavBar = () => {
const Logo =
"https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/logo-min.png";
const burger =
' const logo = "https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/burger-min.png';
const [cookies, setCookie, removeCookie] = useCookies(["cookie-name"]);
const location = useLocation();
const currentPath = location.pathname;
Expand Down
5 changes: 3 additions & 2 deletions src/Components/NavBar/SideBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import { ArticleHr } from "../../Layout/Hr/styledHr";
import { HiOutlinePencilAlt } from "react-icons/hi";
import { BsHouseDoor, BsBell, BsBellFill } from "react-icons/bs";
import { MdBookmarkBorder, MdBookmark } from "react-icons/md";
import logo from "../../Assets/Images/newLogo.png";
import { Link } from "react-router-dom";
import { GlobalState } from "../../GlobalState";
import { useParams } from "react-router-dom";
import axios from "axios";

const SideBar = (props) => {
const logo =
"https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/newLogo.png";
const [savedArticleState, setSavedArticleState] = useState(
props.user.savedArticles.includes(props.article._id)
);
Expand All @@ -42,7 +43,7 @@ const SideBar = (props) => {
await axios.put(`/api/user/${props.user._id}`, {
savedArticles: [props.article._id],
});
setSavedArticleState(!savedArticleState)
setSavedArticleState(!savedArticleState);
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Technologies/Technologies.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
rgba(119, 119, 119, 0.6),
rgba(119, 119, 119, 0.6)
),
url("../../Assets/Images/keyboard-min.jpeg");
url("https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/keyboard-min.jpeg");
background-size: cover;
background-position: top;
background-repeat: no-repeat;
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Articles/Articles.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
rgba(119, 119, 119, 0.6),
rgba(119, 119, 119, 0.6)
),
url("../../Assets/Images/project1-min.jpg");
url("https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/project1-min.jpg");
background-size: cover;
background-position: bottom;
background-repeat: no-repeat;
Expand Down
11 changes: 6 additions & 5 deletions src/Pages/Auth/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { Link } from "react-router-dom";
import { GlobalState } from "../../GlobalState";

import "./auth.css";
import Logo from "../../Assets/Images/newLogo.png";
import { useCookies } from "react-cookie";

const Login = () => {
const logo =
"https://hoseacodes-blog.s3.amazonaws.com/Assets/Images/newLogo.png";
const state = useContext(GlobalState);
const [user, setUser] = state.userAPI.user;
const [isLoggedIn, setIsLoggedIn] = state.userAPI.isLoggedIn;
Expand All @@ -19,17 +20,17 @@ const Login = () => {
const [rememberMe, setRememberMe] = useState(false);
const [cookies, setCookie, removeCookie] = useCookies(["cookie-name"]);

const onChangeInput = e => {
const onChangeInput = (e) => {
const { name, value } = e.target;
setUser({ ...user, [name]: value });
};

const loginSubmit = async e => {
const loginSubmit = async (e) => {
e.preventDefault();
try {
const login = await axios.post("/api/user/login", {
...user,
rememberMe
rememberMe,
});
await handleSubmittion(login);
} catch (err) {
Expand All @@ -38,7 +39,7 @@ const Login = () => {
}
};

const handleSubmittion = async login => {
const handleSubmittion = async (login) => {
try {
if (!cookies.accesstoken && login.data)
setCookie("accesstoken", login.data.accesstoken);
Expand Down
Loading

0 comments on commit 81737ef

Please sign in to comment.