Skip to content

Commit

Permalink
final version
Browse files Browse the repository at this point in the history
  • Loading branch information
MunteanuAndrei237 committed Nov 2, 2023
1 parent be08f54 commit a92abc4
Show file tree
Hide file tree
Showing 25 changed files with 269 additions and 227 deletions.
Binary file added public/2023-10-02 13-28-26.mp4
Binary file not shown.
Binary file added public/2023-10-21_20-49-17 - Trim.mp4
Binary file not shown.
Binary file added public/c++Icon.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 public/copyLinkIcon.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 public/csharpIcon.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 public/cssIcon.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 removed public/favicon.ico
Binary file not shown.
Binary file added public/haskellIcon.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 public/htmlIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React Project</title>
<title>Munteanu Andrei</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
Binary file added public/javaIcon.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 public/javascriptIcon.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 public/linkedinIcon.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 public/pythonIcon.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 public/reactIcon.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 public/sqlIcon.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/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import PopUp from "./PopUp";
import React, { useState } from "react";

function Body() {
const [popUpprops, setpopUpprops] = useState(0);
const [popUpProps, setpopUpProps] = useState(0);
function renderPopUp(text) {
document.getElementById("popUp").style.display = "flex";
setpopUpprops(text);
setpopUpProps(text);
}

return (
<div id="body">
<PopUp props={popUpprops} />
<PopUp props={popUpProps} />
<div className="bodySection" id="aboutMe">
<h1>About me</h1>
<p>
Expand Down
4 changes: 2 additions & 2 deletions src/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function animateMenu(mi, mc, mo) {
}

function Header() {
var menuopened = false;
var menuOpened = false;
var menuContainer = (
<div id="menuContainer">
<a id="jumpToAbout" className="menuItem" href="#aboutMe">
Expand All @@ -39,7 +39,7 @@ function Header() {
id="menuIcon"
alt="Media not avalabile"
onClick={() => {
menuopened = animateMenu("menuIcon", "menuContainer", menuopened);
menuOpened = animateMenu("menuIcon", "menuContainer", menuOpened);
}}
></img>
);
Expand Down
152 changes: 79 additions & 73 deletions src/PopUp.css
Original file line number Diff line number Diff line change
@@ -1,87 +1,93 @@
#popUp{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(0,0,0,0.6);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
display: none;
#popUp {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0, 0.6);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
display: none;
}
#popUpBoxCode{
background-color: white;
width: 90%;
height: 90%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;

#popUpBoxCode {
background-color: white;
width: 90%;
height: 90%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#popUpBoxLink{
background-color: rgb(255,255,255,0.75);
width: 50%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;

#popUpBoxLink {
background-color: rgb(255, 255, 255, 0.75);
width: 50%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

#popUpText{
padding-left: 40px;
overflow: auto;
width: 100%;
height: 100%;
#popUpText {
padding-left: 40px;
overflow: auto;
width: 100%;
height: 100%;
}

.codep{
display: block;
margin-block-start: 0px;
margin-block-end: 0px;
margin-inline-start: 0px;
margin-inline-end: 0px;
.codep {
display: block;
margin-block-start: 0px;
margin-block-end: 0px;
margin-inline-start: 0px;
margin-inline-end: 0px;
}

#copyLinkIcon{
width: 30px;
width:30px;
transition: 0.3s ease-in-out;
#copyLinkIcon {
width: 30px;
width: 30px;
transition: 0.3s ease-in-out;
}
#copyLinkIcon:hover{
transform: scale(1.22);
cursor:pointer;

#copyLinkIcon:hover {
transform: scale(1.22);
cursor: pointer;
}

#popUpText::-webkit-scrollbar {
display: block;
width: 10px;
position: absolute;
right: 0px;
height: 100%;
}

#popUpText::-webkit-scrollbar-track {
background: #f1f1f1;
}

#popUpText::-webkit-scrollbar-thumb {
background: #888;
}

#popUpText::-webkit-scrollbar-thumb:hover {
background: #555;
display: block;
width: 10px;
position: absolute;
right: 0px;
height: 100%;
}

#popUpText::-webkit-scrollbar-track {
background: #f1f1f1;
}

#popUpText::-webkit-scrollbar-thumb {
background: #888;
}

#popUpText::-webkit-scrollbar-thumb:hover {
background: #555;
}

video {
width: 640px;
height: 360px;
}

@media only screen and (max-width: 700px) {
video {
width: 100%;
}

video{
width: 640px;
height: 360px;
#popUpBoxLink {
width: 90%;
}
@media only screen and (max-width: 700px){
video{
width: 100%;
}
#popUpBoxLink{
width: 90%;
}
}
}
45 changes: 22 additions & 23 deletions src/PopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ function stopPropagation(e) {
e.stopPropagation();
}

function PopUp(props) {
var hreff;
if (props.props === "MinesweeperBotLink")
hreff = "https://github.com/MunteanuAndrei237/minesweeperBot";
else if (props.props === "ChessBotLink")
hreff = "https://github.com/MunteanuAndrei237/chess_bot";
function PopUp(args) {
var myHref;
if (args.props === "MinesweeperBotLink")
myHref = "https://github.com/MunteanuAndrei237/minesweeperBot";
else if (args.props === "ChessBotLink")
myHref = "https://github.com/MunteanuAndrei237/chess_bot";

const [data, setData] = useState([["wait please.."], ["wait please.."]]);

Expand All @@ -35,11 +35,10 @@ function PopUp(props) {

return (
<div id="popUp" onClick={hidePopUp}>
{props.props === "MinesweeperBotCode" ||
props.props === "ChessBotCode" ? (
{args.props === "MinesweeperBotCode" || args.props === "ChessBotCode" ? (
<div id="popUpBoxCode" onClick={stopPropagation}>
<div id="popUpText">
{props.props === "MinesweeperBotCode"
{args.props === "MinesweeperBotCode"
? data[0].map((item, index) => (
<p
className="codep"
Expand All @@ -49,7 +48,7 @@ function PopUp(props) {
{item}
</p>
))
: props.props === "ChessBotCode"
: args.props === "ChessBotCode"
? data[1].map((item, index) => (
<p
className="codep"
Expand All @@ -62,37 +61,37 @@ function PopUp(props) {
: null}
</div>
</div>
) : props.props === "ChessBotLink" ||
props.props === "MinesweeperBotLink" ? (
) : args.props === "ChessBotLink" ||
args.props === "MinesweeperBotLink" ? (
<div id="popUpBoxLink" onClick={stopPropagation}>
<p>The full code is at the following link:</p>

{props.props === "MinesweeperBotLink" ||
props.props === "ChessBotLink" ? (
<a style={{ color: "black" }} href={hreff}>
{hreff}
{args.props === "MinesweeperBotLink" ||
args.props === "ChessBotLink" ? (
<a style={{ color: "black" }} href={myHref}>
{myHref}
</a>
) : null}
{props.props === "MinesweeperBotLink" ||
props.props === "ChessBotLink" ? (
{args.props === "MinesweeperBotLink" ||
args.props === "ChessBotLink" ? (
<img
src="copyLinkIcon.png"
id="copyLinkIcon"
onClick={copyToClipboard(hreff)}
onClick={copyToClipboard(myHref)}
alt="Media not avalabile"
></img>
) : null}
</div>
) : props.props === "ChessBotVideo" ||
props.props === "MinesweeperBotVideo" ? (
) : args.props === "ChessBotVideo" ||
args.props === "MinesweeperBotVideo" ? (
<div id="popUpBoxVideo" onClick={stopPropagation}>
{props.props === "ChessBotVideo" && (
{args.props === "ChessBotVideo" && (
<video id="ChessBotVideo" controls muted>
<source src="2023-10-21_20-49-17 - Trim.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
)}
{props.props === "MinesweeperBotVideo" && (
{args.props === "MinesweeperBotVideo" && (
<video id="minesweeperVideo" controls>
<source src="2023-10-02 13-28-26.mp4" type="video/mp4" />
Your browser does not support the video tag.
Expand Down
Loading

0 comments on commit a92abc4

Please sign in to comment.