Skip to content

Commit

Permalink
Fixed problems with projects img
Browse files Browse the repository at this point in the history
  • Loading branch information
TomixJasina committed Feb 20, 2024
1 parent dce0e8f commit 4ea3e6c
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/components/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import styles from './Home.css';
import './Home.css';
import avatar from '../assets/images/avatar.png'
import Image from 'react-bootstrap/Image';

Expand Down
66 changes: 60 additions & 6 deletions src/components/Project.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,66 @@
import React from "react";
import { useState, useEffect } from "react";
import portfolioData from "../assets/projects/projects.json";
// import { useState, useEffect } from "react";
// import portfolioData from "../assets/projects/projects.json";
import CurioCityImg from '../assets/images/curiocity.png';
import BootstrapImg from '../assets/images/bootstrap.png';
import CodeQuizImg from '../assets/images/codeQuiz.png';
import DailyPlannerImg from '../assets/images/dailyPlanner.png';
import WeatherAppImg from '../assets/images/weatherApp.png';
import PasswrodGeneratorImg from '../assets/images/passwrodGenerator.png';


function Projects() {
const [projects, setProjects] = useState([]);
useEffect(() => {
setProjects(portfolioData);
}, []);
// const [projects, setProjects] = useState([]);
// useEffect(() => {
// setProjects(portfolioData);
// }, []);


const projects = [
{
id: 1,
title: "Curio City",
live_app_url: "https://paulinasiwko.github.io/CurioCity/",
repository_url: "https://github.com/TomixJasina/CurioCity",
image: CurioCityImg
},
{
id: 2,
title: "Weather App",
live_app_url: "https://tomixjasina.github.io/Weather_dashboard/",
repository_url: "https://github.com/TomixJasina/Weather_dashboard",
image: WeatherAppImg
},
{
id: 3,
title: "Daily Planner",
live_app_url: "https://github.com/TomixJasina/Daily_Planner",
repository_url: "https://tomixjasina.github.io/Daily_Planner/",
image: DailyPlannerImg
},
{
id: 4,
title: "Coding Quiz",
live_app_url: "https://tomixjasina.github.io/Code_Quiz/index.html",
repository_url: "https://github.com/TomixJasina/Code_Quiz",
image: CodeQuizImg
},
{
id: 5,
title: "Password Generator",
live_app_url: "https://github.com/TomixJasina/Password-Generator",
repository_url: "https://tomixjasina.github.io/Password-Generator/",
image: PasswrodGeneratorImg
},
{
id: 6,
title: "Bootstrap Portfolio",
live_app_url: "https://tomixjasina.github.io/Bootstrap-Portfolio/",
repository_url: "https://github.com/TomixJasina/Bootstrap-Portfolio",
image: BootstrapImg
}

]

return (
<>
Expand Down
17 changes: 0 additions & 17 deletions src/components/ProjectGallery.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "./home"
base: "./"
})

0 comments on commit 4ea3e6c

Please sign in to comment.