Skip to content

Commit

Permalink
[edit] server domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniij committed Jan 30, 2024
1 parent 04895f5 commit 8ecb403
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 5 deletions.
32 changes: 32 additions & 0 deletions deploy/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,38 @@ div #birds2 {
display: none;
}

#loading{
display: none;

position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: #222 ;
color: #fff;
font-weight: 400;
font-size: 2vw;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
text-transform: uppercase;
font-family: "Khula", sans-serif;
box-sizing: border-box;
letter-spacing: 6px;
margin: 0;
line-height: 100%;
z-index: 9999;
} #loading span {
display: inline-block;
}





@font-face {
font-family: 'KBO-Dia-Gothic_bold';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/KBO-Dia-Gothic_bold.woff') format('woff');
Expand Down
38 changes: 38 additions & 0 deletions deploy/assets/js/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Letterize from "https://cdn.skypack.dev/[email protected]";
import anime from "https://cdn.skypack.dev/[email protected]";

window.addEventListener("load", async function() {

var load = document.getElementById("loading");


const test = new Letterize({
targets: ".animate-me"
});

const animation = anime.timeline({
targets: test.listAll,
delay: anime.stagger(100, {
grid: [test.list[0].length, test.list.length],
from: "center"
}),
loop: true
});

animation
.add({
scale: 0.5
})
.add({
letterSpacing: "10px"
})
.add({
scale: 1
})
.add({
letterSpacing: "6px"
});
setTimeout(function() {
load.style.display = "none";
}, 7000);
});
2 changes: 1 addition & 1 deletion deploy/assets/js/visitors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let url = 'https://portfolio.chomanki.com/visitors/portfolio-ga4';
let url = 'https://server.portfolio.chomanki.com/visitors/portfolio-ga4';

let today = new Date();
let dd = String(today.getDate()).padStart(2, '0');
Expand Down
5 changes: 1 addition & 4 deletions deploy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


<!-- Google tag (gtag.js) -->
<script type="module" src="assets/js/test.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-RMK304M5PQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand Down Expand Up @@ -183,12 +184,8 @@ <h3>Social</h3>
<script src="assets/js/main.js"></script>
<script src="assets/js/contentMD.js"></script>
<script src="assets/js/visitors.js"></script>
<script src="assets/js/gaapi.js"></script>
<script src="assets/js/vanta.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r121/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.birds.min.js"></script>
<script>
var check = $("input[type='checkbox']");
check.click(function(){
Expand Down
33 changes: 33 additions & 0 deletions test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<html>
<head>
<title>Back-end Portfolio Web, CMK</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no"
/>
<link rel="stylesheet" href="main.css"/>
<script type="module" src="test.js"></script>
</head>
<body>

<div id="loading">
<div>
<div class="animate-me">cmk's web.portfolio</div>
<div class="animate-me">portfolio.cmk's web</div>
<div class="animate-me">cmk's web.portfolio</div>
<div class="animate-me">portfolio.cmk's web</div>
<div class="animate-me">cmk's web.portfolio</div>
<div class="animate-me">portfolio.cmk's web</div>
<div class="animate-me">cmk's web.portfolio</div>
<div class="animate-me">portfolio.cmk's web</div>
<div class="animate-me">cmk's web.portfolio</div>
<div class="animate-me">portfolio.cmk's web</div>
</div>
</div>

<div>asdasdasd22222</div>


</body>
</html>
24 changes: 24 additions & 0 deletions test/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#loading{
background-color: #222;
color: #fff;
font-weight: 400;
font-size: 2vw;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
text-transform: uppercase;
font-family: "Khula", sans-serif;
height: 100%;
box-sizing: border-box;
letter-spacing: 6px;
margin: 0;
line-height: 100%;
z-index: 999;
} #loading span {
display: inline-block;
}




39 changes: 39 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import Letterize from "https://cdn.skypack.dev/[email protected]";
import anime from "https://cdn.skypack.dev/[email protected]";


window.addEventListener("load", function() {
var loading = document.getElementById("loading");

const test = new Letterize({
targets: ".animate-me"
});

const animation = anime.timeline({
targets: test.listAll,
delay: anime.stagger(100, {
grid: [test.list[0].length, test.list.length],
from: "center"
}),
loop: true,
duratiom: 3000
});

animation
.add({
scale: 0.5
})
.add({
letterSpacing: "10px"
})
.add({
scale: 1
})
.add({
letterSpacing: "6px"
});

setTimeout(function() {
loading.style.display = "none"; // 3초 후에 애니메이션 정지
}, 10000);
});

0 comments on commit 8ecb403

Please sign in to comment.