-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dcdc091
commit 8c3031f
Showing
707 changed files
with
36,094 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Portfolio | ||
My Portfolio | ||
## My Portfolio | ||
## All sites |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>3D Astronaut Model</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="icon" href="icon.png"> | ||
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="demo"> | ||
<model-viewer id="model" src="Astronaut.glb" auto-rotate camera-controls animation-name="" skybox-image="kloppenheim_02_1k.hdr" autoplay></model-viewer> | ||
</div> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
user-select: none; | ||
box-sizing: border-box; | ||
} | ||
|
||
.demo { | ||
height: 100vh; | ||
width: 100%; | ||
} | ||
|
||
.demo model-viewer { | ||
width: 100%; | ||
height: 100%; | ||
/* text-align: center; */ | ||
} | ||
|
||
.btn-container { | ||
position: absolute; | ||
bottom: 50px; | ||
width: 100%; | ||
text-align: center; | ||
overflow: hidden; | ||
opacity: 1; | ||
visibility: visible; | ||
transition: 1s; | ||
/* display: flex; */ | ||
/* justify-content: center; */ | ||
} | ||
|
||
/* .demo .btn-container button { | ||
border: none; | ||
background: #edda73; | ||
border-radius: 15px; | ||
border-color: transparent; | ||
height: 40px; | ||
width: 150px; | ||
margin: 5px 15px; | ||
cursor: pointer; | ||
font-weight: bold; | ||
font-size: 20px; | ||
outline: none; | ||
flex-wrap: wrap; | ||
} | ||
.btn-container .hide { | ||
opacity: 0; | ||
visibility: hidden; | ||
} */ | ||
|
||
/* .demo .hidenBtn { | ||
position: absolute; | ||
bottom: 10px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
border: none; | ||
background: #edda73; | ||
border-radius: 15px; | ||
border-color: transparent; | ||
height: 40px; | ||
width: 150px; | ||
cursor: pointer; | ||
font-weight: bold; | ||
font-size: 20px; | ||
outline: none; | ||
flex-wrap: wrap; | ||
transition: 1s; | ||
} */ | ||
|
||
/* @media screen and (min-width: 300px) and (max-width: 800px) { | ||
.btn-container { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 50%; | ||
flex-wrap: wrap; | ||
} | ||
} */ |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>3D Robot Model</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="icon" href="icon.png"> | ||
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> | ||
</head> | ||
<body> | ||
<div class="demo"> | ||
<model-viewer id="model" src="RobotExpressive.glb" auto-rotate camera-controls animation-name="" skybox-image="stadium_01_1k.hdr" autoplay></model-viewer> | ||
<div class="btn-container"> | ||
<button>Idle</button> | ||
<!-- <button onclick="Anim(this)">Idle</button> --> | ||
<button>Dance</button> | ||
<button>Running</button> | ||
<button>Death</button> | ||
<button>Walking</button> | ||
<button>Wave</button> | ||
<button>No</button> | ||
<button>Yes</button> | ||
<button>Jump</button> | ||
<button>Punch</button> | ||
<!-- <button>Sitting</button> --> | ||
<!-- <button>Standing</button> --> | ||
<button>ThumbsUp</button> | ||
</div> | ||
</div> | ||
<script src="mainscript.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
"use strict"; | ||
|
||
const modelViewer = document.getElementById('model'); | ||
const animBtn = document.querySelectorAll('.btn-container button'); | ||
|
||
animBtn.forEach(btns => { | ||
btns.onclick = () => { | ||
modelViewer.animationName = btns.innerHTML; | ||
} | ||
}) | ||
|
||
// hidenBtn.onclick = () => { | ||
// document.querySelector('.btn-container').classList.toggle('hide'); | ||
// if(hidenBtn.innerHTML == 'Hide') { | ||
// hidenBtn.innerHTML = 'Show'; | ||
// } | ||
// else { | ||
// hidenBtn.innerHTML = 'Hide'; | ||
// } | ||
// } | ||
|
||
// внизу два способа | ||
|
||
// function Anim(e) { | ||
// modelViewer.animationName = e.innerHTML; | ||
// } | ||
|
||
// function Idle() { | ||
// modelViewer.animationName = 'Idle'; | ||
// } | ||
|
||
// function Dance() { | ||
// modelViewer.animationName = 'Dance'; | ||
// } | ||
|
||
// function Running() { | ||
// modelViewer.animationName = 'Running'; | ||
// } | ||
|
||
// function Death() { | ||
// modelViewer.animationName = 'Death'; | ||
// } | ||
|
||
// function Jump() { | ||
// modelViewer.animationName = 'Jump'; | ||
// } | ||
|
||
// function Walking() { | ||
// modelViewer.animationName = 'Walking'; | ||
// } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
user-select: none; | ||
box-sizing: border-box; | ||
} | ||
|
||
button { | ||
outline: none; | ||
} | ||
|
||
.demo { | ||
height: 100vh; | ||
width: 100%; | ||
} | ||
|
||
.demo model-viewer { | ||
width: 100%; | ||
height: 100%; | ||
/* text-align: center; */ | ||
} | ||
|
||
.btn-container { | ||
position: absolute; | ||
bottom: 50px; | ||
width: 100%; | ||
text-align: center; | ||
overflow: hidden; | ||
opacity: 1; | ||
visibility: visible; | ||
transition: 1s; | ||
/* display: flex; */ | ||
/* justify-content: center; */ | ||
} | ||
|
||
.demo .btn-container button { | ||
border: none; | ||
background: #edda73; | ||
border-radius: 15px; | ||
border-color: transparent; | ||
height: 40px; | ||
width: 150px; | ||
margin: 5px 15px; | ||
cursor: pointer; | ||
font-weight: bold; | ||
font-size: 20px; | ||
outline: none; | ||
flex-wrap: wrap; | ||
} | ||
|
||
@media screen and (min-width: 300px) and (max-width: 800px) { | ||
.btn-container { | ||
display: flex; | ||
flex-direction: column; | ||
position: absolute; | ||
top: 50%; | ||
flex-wrap: wrap; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
/* * { | ||
box-sizing: border-box; | ||
user-select: none; | ||
margin: 0; | ||
padding: 0; | ||
outline: none; | ||
} */ | ||
|
||
/* * { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
} */ | ||
|
||
body { | ||
margin: 0; | ||
font-family: 'Bad Script', sans-serif; | ||
} | ||
|
||
@media (max-width: 640px) { | ||
.slider { | ||
height: 100vh; | ||
flex-direction: column; | ||
} | ||
|
||
.item { | ||
width: 100%; | ||
user-select: none; | ||
cursor: none; | ||
} | ||
|
||
.item:hover { | ||
flex-grow: 30%; | ||
} | ||
} |
Oops, something went wrong.