1
0
This commit is contained in:
syui 2024-04-27 17:42:31 +09:00
parent 81a43ce8e5
commit 8422a8802f
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
11 changed files with 368 additions and 361 deletions

View File

@ -5,6 +5,7 @@
</div>
{{ partial "particles.html" . }}
{{ partial "footer.html" . }}
</body>

View File

@ -1 +1,2 @@
<footer id="footer">© <a href="https://syui.ai">syui</a></footer>

View File

@ -1,16 +1,9 @@
<body>
<div class="containerx">
{{ $s := path.Dir (.Permalink | relURL) }}
{{ $t := index (split $s "/") 2 }}
{{ $o := index (split $s "/") 1 }}
<header id="header">
<!--
{{ partial "particles.html" . }}
-->
<div class="logo">
{{ partial "svg.html" . }}
{{ if eq $o "" }}

View File

@ -1,5 +1,4 @@
<link rel="stylesheet" href="/pkg/particles/particles.css" />
<div id="particles-js"></div>
<script src="/pkg/particles/particles.min.js"></script>
<script src="/pkg/particles/stats.min.js"></script>
<script src="/pkg/particles/config.js"></script>
<link rel="stylesheet" href="/pkg/particles/particles.css" />

View File

@ -46,7 +46,7 @@ article {
}
footer#footer {
margin-top:100px;
/* margin-top:100px; */
text-align: center;
height:60px;
padding-top:100px;

View File

@ -438,14 +438,6 @@ body {
span {
font-size: 15px;
}
#particles-js {
position: absolute;
width: 98%;
}
#particles-js-no {
position: absolute;
width: 98%;
}
#icon-github:hover,
i.icon.ion-close-circled:hover,
@ -506,8 +498,6 @@ i.icon.ion-minus-circled{display:none}
@media screen and (max-width:400px){body{padding-top:0px;width:auto;}
#title-left{left:50%;}
/*article{padding:10px 10px;}*/
#particles-js{width:auto;}
#particles-js-no{width:auto;}
i.icon.ion-minus-circled{display:none}
i.icon.ion-plus-circled{display:none}
}

View File

@ -1,5 +0,0 @@
{
"dependencies": {
"hotkeys-js": "^3.13.7"
}
}

View File

@ -0,0 +1 @@
particlesJS("particles-js", {"particles":{"number":{"value":91,"density":{"enable":true,"value_area":881.8766334760375}},"color":{"value":"#fff700"},"shape":{"type":"circle","stroke":{"width":2,"color":"#fff700"},"polygon":{"nb_sides":6},"image":{"src":"","width":100,"height":100}},"opacity":{"value":0.48102361825965684,"random":true,"anim":{"enable":true,"speed":1.0556403676876611,"opacity_min":0.11368434728944043,"sync":true}},"size":{"value":3,"random":true,"anim":{"enable":true,"speed":2,"size_min":0,"sync":true}},"line_linked":{"enable":false,"distance":849.808392258727,"color":"#fff700","opacity":0.44093831673801875,"width":6.894671861721749},"move":{"enable":true,"speed":0.1,"direction":"none","random":true,"straight":false,"out_mode":"out","bounce":false,"attract":{"enable":true,"rotateX":1000,"rotateY":5000}}},"interactivity":{"detect_on":"canvas","events":{"onhover":{"enable":false,"mode":"repulse"},"onclick":{"enable":true,"mode":"remove"},"resize":true},"modes":{"grab":{"distance":523.7600285834934,"line_linked":{"opacity":0.46067027525048987}},"bubble":{"distance":400,"size":40,"duration":2,"opacity":8,"speed":3},"repulse":{"distance":200,"duration":0.4},"push":{"particles_nb":4},"remove":{"particles_nb":2}}},"retina_detect":true});var count_particles, update; count_particles = document.querySelector('.js-count-particles'); update = function() { if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { } requestAnimationFrame(update); }; requestAnimationFrame(update);;

View File

@ -0,0 +1,17 @@
canvas{
display: block;
vertical-align: bottom;
}
#particles-js{
/* position:absolute; */
position:static;
width: 100%;
height: 100%;
background-color: #313131;
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
.count-particles{
border-radius: 0 0 3px 3px;
}

View File

@ -0,0 +1 @@
{"particles":{"number":{"value":380,"density":{"enable":true,"value_area":2084.43567912518}},"color":{"value":"#fff700"},"shape":{"type":"circle","stroke":{"width":3,"color":"#fff700"},"polygon":{"nb_sides":5},"image":{"src":"img/github.svg","width":100,"height":100}},"opacity":{"value":0.32068241217310456,"random":true,"anim":{"enable":false,"speed":1,"opacity_min":0.1,"sync":false}},"size":{"value":4.008530152163807,"random":true,"anim":{"enable":true,"speed":4.87218631240459,"size_min":2.4360931562022947,"sync":false}},"line_linked":{"enable":false,"distance":641.3648243462092,"color":"#fff700","opacity":0.09620472365193136,"width":0.16034120608655228},"move":{"enable":true,"speed":1,"direction":"none","random":true,"straight":true,"out_mode":"out","bounce":false,"attract":{"enable":true,"rotateX":1000,"rotateY":5000}}},"interactivity":{"detect_on":"canvas","events":{"onhover":{"enable":false,"mode":"grab"},"onclick":{"enable":true,"mode":"push"},"resize":true},"modes":{"grab":{"distance":400,"line_linked":{"opacity":1}},"bubble":{"distance":400,"size":40,"duration":2,"opacity":8,"speed":3},"repulse":{"distance":200,"duration":0.4},"push":{"particles_nb":4},"remove":{"particles_nb":2}}},"retina_detect":true}

9
static/pkg/particles/particles.min.js vendored Normal file

File diff suppressed because one or more lines are too long