ソースを参照

journey begins...

hossainemruz 5 年 前
コミット
370a30f745

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+.vscode/

+ 20 - 0
toha/LICENSE

@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2020 YOUR_NAME_HERE
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 2 - 0
toha/archetypes/default.md

@@ -0,0 +1,2 @@
++++
++++

+ 0 - 0
toha/layouts/404.html


+ 11 - 0
toha/layouts/_default/baseof.html

@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+    {{- partial "head.html" . -}}
+    <body>
+        {{- partial "header.html" . -}}
+        <div id="content">
+        {{- block "main" . }}{{- end }}
+        </div>
+        {{- partial "footer.html" . -}}
+    </body>
+</html>

+ 0 - 0
toha/layouts/_default/list.html


+ 0 - 0
toha/layouts/_default/single.html


+ 0 - 0
toha/layouts/index.html


+ 0 - 0
toha/layouts/partials/footer.html


+ 0 - 0
toha/layouts/partials/head.html


+ 0 - 0
toha/layouts/partials/header.html


+ 367 - 0
toha/static/css/about.css

@@ -0,0 +1,367 @@
+.social-link {
+  list-style: none;
+  padding: 0.2rem;
+}
+
+.social-link a {
+  font-size: 1.5rem;
+  color: #3c4858;
+  padding: 0.5rem;
+}
+
+.social-link a:hover {
+  color: #248aaa;
+  transition: all 0.3s ease-in;
+}
+
+.circular-progress {
+  width: 150px;
+  height: 150px;
+  line-height: 150px;
+  background: none;
+  margin: 0 auto;
+  box-shadow: none;
+  position: relative;
+}
+
+.circular-progress:after {
+  content: "";
+  width: 100%;
+  height: 100%;
+  border-radius: 50%;
+  border: 12px solid #f9fafc;
+  position: absolute;
+  top: 0;
+  left: 0;
+}
+
+.circular-progress > span {
+  width: 50%;
+  height: 100%;
+  overflow: hidden;
+  position: absolute;
+  top: 0;
+  z-index: 1;
+}
+
+.circular-progress .circular-progress-left {
+  left: 0;
+}
+
+.circular-progress .circular-progress-bar {
+  width: 100%;
+  height: 100%;
+  background: none;
+  border-width: 12px;
+  border-style: solid;
+  position: absolute;
+  top: 0;
+}
+
+.circular-progress .circular-progress-left .circular-progress-bar {
+  left: 100%;
+  border-top-right-radius: 80px;
+  border-bottom-right-radius: 80px;
+  border-left: 0;
+  -webkit-transform-origin: center left;
+  transform-origin: center left;
+}
+
+.circular-progress .circular-progress-right {
+  right: 0;
+}
+
+.circular-progress .circular-progress-right .circular-progress-bar {
+  left: -100%;
+  border-top-left-radius: 80px;
+  border-bottom-left-radius: 80px;
+  border-right: 0;
+  -webkit-transform-origin: center right;
+  transform-origin: center right;
+  animation: circular-loading-1 1.8s linear forwards;
+}
+
+.circular-progress .circular-progress-value {
+  width: 90%;
+  height: 90%;
+  border-radius: 50%;
+  background: #3c4858;
+  font-size: 1rem;
+  color: #f9fafc;
+  line-height: 135px;
+  text-align: center;
+  position: absolute;
+  top: 5%;
+  left: 5%;
+}
+
+.circular-progress.blue .circular-progress-bar {
+  border-color: #048dff;
+}
+
+.circular-progress.yellow .circular-progress-bar {
+  border-color: #ffc212;
+}
+
+.circular-progress.pink .circular-progress-bar {
+  border-color: #ed63d2;
+}
+
+.circular-progress.green .circular-progress-bar {
+  border-color: #2dca73;
+}
+
+.circular-progress-percentage-50 {
+  animation: circular-loading-50 0s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-55 {
+  animation: circular-loading-55 0.18s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-60 {
+  animation: circular-loading-60 0.36s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-65 {
+  animation: circular-loading-65 0.54s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-70 {
+  animation: circular-loading-70 0.72s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-75 {
+  animation: circular-loading-75 0.9s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-80 {
+  animation: circular-loading-80 1.08s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-85 {
+  animation: circular-loading-85 1.26s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-90 {
+  animation: circular-loading-90 1.44s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-95 {
+  animation: circular-loading-95 1.62s linear forwards 1.8s;
+}
+
+.circular-progress-percentage-100 {
+  animation: circular-loading-100 1.8s linear forwards 1.8s;
+}
+
+@keyframes circular-loading-50 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+}
+
+@keyframes circular-loading-55 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(18deg);
+    transform: rotate(18deg);
+  }
+}
+
+@keyframes circular-loading-60 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(36deg);
+    transform: rotate(36deg);
+  }
+}
+
+@keyframes circular-loading-65 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(54deg);
+    transform: rotate(54deg);
+  }
+}
+
+@keyframes circular-loading-70 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(72deg);
+    transform: rotate(72deg);
+  }
+}
+
+@keyframes circular-loading-75 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(90deg);
+    transform: rotate(90deg);
+  }
+}
+
+@keyframes circular-loading-80 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(108deg);
+    transform: rotate(108deg);
+  }
+}
+
+@keyframes circular-loading-85 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(126deg);
+    transform: rotate(126deg);
+  }
+}
+
+@keyframes circular-loading-90 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(144deg);
+    transform: rotate(144deg);
+  }
+}
+
+@keyframes circular-loading-95 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(162deg);
+    transform: rotate(162deg);
+  }
+}
+
+@keyframes circular-loading-100 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(180deg);
+    transform: rotate(180deg);
+  }
+}
+
+@keyframes circular-loading-1 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(180deg);
+    transform: rotate(180deg);
+  }
+}
+
+@keyframes circular-loading-2 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(144deg);
+    transform: rotate(144deg);
+  }
+}
+
+@keyframes circular-loading-3 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(90deg);
+    transform: rotate(90deg);
+  }
+}
+
+@keyframes circular-loading-4 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(36deg);
+    transform: rotate(36deg);
+  }
+}
+
+@keyframes circular-loading-5 {
+  0% {
+    -webkit-transform: rotate(0deg);
+    transform: rotate(0deg);
+  }
+  100% {
+    -webkit-transform: rotate(126deg);
+    transform: rotate(126deg);
+  }
+}
+
+@media only screen and (max-width: 990px) {
+  .circular-progress {
+    margin-bottom: 20px;
+  }
+}
+
+/* ============= Device specific fixes ======= */
+
+/* Extra small devices (portrait phones, less than 576px) */
+
+/* No media query for `xs` since this is the default in Bootstrap */
+
+/* Extra large devices (large desktops, 1200px and up) */
+
+@media (max-width: 1400px) {
+}
+
+@media (max-width: 1200px) {
+}
+
+/*  Large devices (desktops, 992px and up) */
+
+@media (max-width: 992px) {
+}
+
+/* Medium devices (tablets, 768px and up) */
+
+@media only screen and (max-width: 768px) {
+}
+
+/* Small devices (landscape phones, 576px and up) */
+
+@media only screen and (max-width: 576px) {
+}

+ 112 - 0
toha/static/css/achievements.css

@@ -0,0 +1,112 @@
+#gallery .achievement-entry {
+  cursor: pointer;
+  margin-top: 5px;
+  margin-bottom: 5px;
+  margin-left: 7px;
+  margin-right: 7px;
+  z-index: 1;
+  opacity: 1;
+  background-size: cover;
+  background-repeat: no-repeat;
+  background-position: center;
+  position: relative;
+  overflow: hidden;
+}
+
+#gallery .achievement-entry:hover {
+  cursor: pointer;
+  z-index: 1;
+  opacity: 0.95;
+  transition: opacity 0.3s ease-out;
+}
+
+#gallery .achievement-details {
+  cursor: pointer;
+  z-index: 1;
+  opacity: 1 !important;
+  transition: none !important;
+}
+
+#gallery .img-type-1 {
+  height: 300px;
+}
+#gallery .img-type-2 {
+  height: 146px;
+  margin-bottom: 8px;
+}
+
+#gallery i {
+  color: #8392a5;
+  background-color: rgba(0, 0, 0, 0.7);
+  padding: 10px;
+  font-size: 0rem;
+  opacity: 0;
+  position: absolute;
+}
+
+#gallery .achievement-entry:hover i {
+  opacity: 1;
+  font-size: 1rem;
+  transition: all 0.3s ease-out;
+  --webkit-transition: all 0.3s ease-out;
+}
+
+#gallery .img-type-1 i {
+  margin-top: 140px;
+}
+#gallery .img-type-2 i {
+  margin-top: 65px;
+}
+
+#gallery .achievement-details.img-type-1 i,
+.achievement-details.img-type-2 i {
+  right: 5px !important;
+  margin-top: 5px !important;
+  transition: none !important;
+}
+
+#gallery .achievement-entry .title {
+  color: #e5e9f2;
+  background-color: rgba(0, 0, 0, 0.7);
+  opacity: 0;
+  padding: 5px;
+  position: absolute;
+  bottom: 0px;
+  width: 100%;
+  margin-bottom: 0px;
+  bottom: -5px;
+}
+
+#gallery .achievement-entry:hover .title {
+  opacity: 1;
+  bottom: 0px;
+  transition: bottom 0.3s ease-out;
+}
+
+#gallery .caption {
+  background-color: rgba(0, 0, 0, 0.7);
+  bottom: 1rem;
+  left: 1rem;
+  color: #e5e9f2;
+  padding: 15px;
+  position: absolute;
+  transition: all 0.3s ease-out;
+}
+
+#gallery .caption h3 {
+  color: #e5e9f2;
+}
+
+#gallery .caption p {
+  font-size: 16px;
+  font-weight: 300;
+  color: #e5e9f2;
+}
+
+.hidden {
+  display: none !important;
+}
+
+#gallery .achievement-details {
+  height: 75vh !important;
+}

+ 352 - 0
toha/static/css/blog.css

@@ -0,0 +1,352 @@
+.wrapper {
+  display: flex;
+  padding: 0;
+  margin: 0;
+  width: 100%;
+  overflow: hidden;
+}
+
+.sidebar {
+  width: 400px;
+  background: #f9fafc;
+  min-height: 100vh;
+  overflow: auto;
+  transition: all ease-in-out 0.3s;
+}
+
+.sidebar.hide {
+  position: relative;
+  width: 0;
+  transition: all ease-in-out 0.3s;
+  z-index: -1001;
+}
+
+#search-box {
+  width: 250px;
+  height: 35px;
+  padding-left: 15px;
+  margin-top: 30px;
+  border-radius: 5px;
+  background-color: #e5e9f2;
+  transition: all 0.3s ease-out;
+  border: 1px solid #c0ccda;
+}
+
+#search-box:focus {
+  border: 1pt solid #248aaa;
+  outline: none;
+}
+
+.sidebar-tree {
+  margin-left: 2rem;
+  margin-top: 2.5rem;
+  position: fixed;
+}
+
+.tree,
+.tree ul {
+  margin: 0;
+  margin-top: 10px;
+  padding: 0;
+  list-style: none;
+}
+
+.tree ul {
+  margin-left: 1em;
+  position: relative;
+}
+
+.tree ul ul {
+  margin-left: 0.5em;
+}
+
+.tree ul:before {
+  content: "";
+  display: block;
+  width: 0;
+  position: absolute;
+  top: -17px;
+  left: -3px;
+  bottom: 16px;
+  border-left: 1px solid;
+}
+
+.tree li {
+  margin: 0;
+  padding: 0 1em;
+  line-height: 2em;
+  color: #3c4858;
+  font-weight: 700;
+  position: relative;
+}
+
+.tree ul li:before {
+  content: "";
+  display: block;
+  width: 16px;
+  height: 0;
+  border-top: 1px solid;
+  margin-top: -1px;
+  position: absolute;
+  top: 18px;
+  left: -3px;
+}
+
+.tree ul li:last-child:before {
+  background: #f9fafc;
+  height: auto;
+  top: 1em;
+  bottom: 0;
+}
+
+.tree li a {
+  text-decoration: none;
+  color: #131313;
+  transition: all 0.3s ease-out;
+}
+.tree li a:hover {
+  margin-left: 3px;
+  color: #2098d1;
+  transition: all 0.3s ease-out;
+}
+
+.tree i {
+  color: #3c4858;
+  font-size: 12px;
+  margin-right: 5px;
+}
+
+.tree .shift-right {
+  margin-left: 5px;
+}
+
+.tree ul {
+  display: none;
+}
+
+.tree .expand,
+.tree .expand > ul {
+  display: block;
+}
+
+a.focused {
+  color: #2098d1 !important;
+}
+
+.content {
+  width: 100%;
+  background: #e5e9f2;
+  padding: 0;
+  position: relative;
+}
+
+.content-cards {
+  padding-top: 30px;
+  width: 100%;
+  padding-left: 28px;
+  padding-bottom: 20px;
+}
+
+.post-cards {
+  margin: 32px;
+}
+
+.post-cards .filtr-item {
+  width: 23rem !important;
+}
+
+.post-cards .card {
+  margin: 5px;
+  position: relative;
+}
+
+.post-cards .card .card-footer span {
+  font-size: 10pt;
+  color: #6c757d !important;
+  padding-top: 5px;
+}
+
+.post-cards .card .card-footer {
+  background: #fff;
+}
+
+.post-summery {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  max-height: 144px;
+  /* fallback */
+  -webkit-line-clamp: 5;
+  /* number of lines to show */
+  -webkit-box-orient: vertical;
+}
+
+.navbar-toggler {
+  display: none;
+}
+
+/*-------------- Media Queries ---------- */
+
+@media (max-width: 1200px) {
+  .sidebar-tree {
+    margin-left: 1rem;
+  }
+  .content-cards {
+    padding-left: 0px;
+  }
+  .post-cards {
+    margin-left: 15px;
+  }
+  .post-cards .filtr-item {
+    width: 22rem !important;
+    padding: 3px;
+  }
+}
+
+@media only screen and (max-width: 768px) {
+  .content {
+    width: 100vw;
+    padding-left: 15px;
+  }
+  .content.overley {
+    width: 60vw;
+    padding-left: 3px;
+    /* margin-left: -50vw; */
+  }
+  .navbar-toggler {
+    display: block;
+  }
+
+  .sidebar {
+    width: 0;
+  }
+  .sidebar nav {
+    display: none;
+    transition: all ease-in-out 0.3s;
+  }
+  .sidebar.hide {
+    position: relative;
+    z-index: 1001;
+    width: 40vw;
+  }
+
+  .sidebar-tree {
+    margin-left: 1.5rem;
+  }
+
+  .content-cards {
+    padding-top: 20px;
+    width: 100%;
+    padding-left: 0px;
+  }
+
+  .post-cards {
+    margin: 0;
+    margin-top: 32px;
+  }
+
+  .post-cards .filtr-item {
+    margin: 10px;
+    width: 47vw !important;
+  }
+
+  .post-cards .card {
+    max-width: 47vw !important;
+  }
+
+  .content.overley .post-cards .filtr-item {
+    margin: 10px;
+    width: 55vw !important;
+  }
+
+  .content.overley .post-cards .card {
+    max-width: 55vw !important;
+  }
+}
+@media only screen and (max-width: 576px) {
+  .wrapper {
+    display: block;
+  }
+
+  #search-box {
+    width: 85vw;
+    height: 35px;
+    padding-left: 5px;
+    margin-top: 30px;
+  }
+  .content {
+    width: 100vw;
+    left: 0;
+    display: block;
+    padding-left: 2vw;
+  }
+
+  .content.overley {
+    width: 100vw;
+    left: 0;
+    padding-left: 2vw;
+  }
+
+  .sidebar {
+    position: relative;
+    max-height: 0;
+    width: 100vw;
+    min-height: 0;
+    overflow: hidden;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .sidebar-tree {
+    position: relative;
+  }
+
+  .sidebar.hide {
+    position: relative;
+    z-index: 1001;
+    width: 100vw;
+    max-height: 100vh;
+    overflow: hidden;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .content-cards {
+    padding-top: 20px;
+    padding-left: 0px;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .content.overley .content-cards {
+    padding-top: 0px;
+    padding-left: 0px;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .post-cards {
+    margin: 0;
+    margin-top: 32px;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .content.overley .post-cards {
+    margin: 0;
+    transition: all ease-in-out 0.5s;
+  }
+
+  .post-cards .filtr-item {
+    margin: 10px;
+    width: 90vw !important;
+  }
+
+  .post-cards .card {
+    max-width: 90vw !important;
+  }
+
+  .content.overley .post-cards .filtr-item {
+    margin: 10px;
+    width: 90vw !important;
+  }
+
+  .content.overley .post-cards .card {
+    max-width: 90vw !important;
+  }
+}

ファイルの差分が大きいため隠しています
+ 5 - 0
toha/static/css/bootstrap.min.css


+ 119 - 0
toha/static/css/experiences.css

@@ -0,0 +1,119 @@
+.experiences {
+  padding-bottom: 1rem;
+}
+
+.text-muted {
+  color: #e5e9f2;
+}
+
+.experiences ul {
+  padding-left: 1rem;
+}
+
+.experiences ul > li {
+  margin-left: 0;
+  color: #3c4858;
+}
+
+.experience-entry-heading h5 {
+  font-weight: 600;
+}
+
+.circle {
+  padding: 13px 20px;
+  border-radius: 50%;
+  background-color: #248aaa;
+  color: #f9fafc;
+  max-height: 50px;
+  z-index: 2;
+}
+
+.timeline .vertical-line {
+  align-self: stretch;
+}
+
+.timeline .vertical-line::after {
+  content: "";
+  position: absolute;
+  border-left: 3px solid #248aaa;
+  z-index: 1;
+  height: 100%;
+  left: 50%;
+}
+
+.vertical-line-left-adjustment::after {
+  left: calc(50% - 3px) !important;
+}
+
+.timeline .horizontal-line div {
+  padding: 0;
+  height: 40px;
+}
+
+.timeline .horizontal-line hr {
+  border-top: 3px solid #248aaa;
+  margin: 0;
+  top: 17px;
+  position: relative;
+}
+
+.timeline .horizontal-line .timeline-side-div {
+  display: flex;
+  overflow: hidden;
+}
+
+.timeline .horizontal-line .corner {
+  border: 3px solid #248aaa;
+  width: 100%;
+  position: relative;
+  border-radius: 15px;
+}
+
+.top-left {
+  left: -50%;
+  top: -50%;
+}
+
+.top-right {
+  left: 50%;
+  top: -50%;
+}
+
+.bottom-left {
+  left: -50%;
+  top: calc(50% - 3px);
+}
+
+.bottom-right {
+  left: 50%;
+  top: calc(50% - 3px);
+}
+
+/* ============= Device specific fixes ======= */
+
+/* Extra small devices (portrait phones, less than 576px) */
+
+/* No media query for `xs` since this is the default in Bootstrap */
+
+/* Extra large devices (large desktops, 1200px and up) */
+
+@media (max-width: 1400px) {
+}
+
+@media (max-width: 1200px) {
+}
+
+/*  Large devices (desktops, 992px and up) */
+
+@media (max-width: 992px) {
+}
+
+/* Medium devices (tablets, 768px and up) */
+
+@media only screen and (max-width: 768px) {
+}
+
+/* Small devices (landscape phones, 576px and up) */
+
+@media only screen and (max-width: 576px) {
+}

ファイルの差分が大きいため隠しています
+ 4 - 0
toha/static/css/fontawesome.all.min.css


+ 72 - 0
toha/static/css/home.css

@@ -0,0 +1,72 @@
+.home {
+  height: 100vh;
+  padding: 0;
+  margin: 0;
+  color: #f9fafc;
+  overflow: hidden;
+}
+
+.background {
+  height: 100%;
+  width: 100%;
+  padding: 0;
+  margin: 0;
+  background-image: url("/assets/img/background/flower.jpg");
+  background-attachment: fixed;
+  transform: scale(1.1);
+  filter: blur(3px);
+  -webkit-filter: blur(3px);
+  background-size: cover;
+}
+
+.content {
+  position: relative;
+  top: -80%;
+  height: 75%;
+}
+
+.home img {
+  width: 160px;
+  max-width: 50%;
+  height: auto;
+}
+
+.home .greeting {
+  color: #f9fafc;
+}
+
+.home .typing-carousel {
+  font-size: 14pt;
+  color: #f0f0f0;
+}
+
+#typing-carousel-data {
+  display: none;
+}
+
+.arrow {
+  position: absolute;
+  color: #f9fafc;
+  font-size: 1.5rem;
+  bottom: 0;
+}
+
+.bounce {
+  animation: bounce 2s infinite;
+}
+
+@keyframes bounce {
+  0%,
+  20%,
+  50%,
+  80%,
+  100% {
+    transform: translateY(0);
+  }
+  40% {
+    transform: translateY(-30px);
+  }
+  60% {
+    transform: translateY(-15px);
+  }
+}

+ 186 - 0
toha/static/css/navbar.css

@@ -0,0 +1,186 @@
+.top-navbar {
+  position: fixed;
+  left: 0;
+  top: 0;
+  width: 100%;
+  height: 50px;
+  z-index: 99999;
+  -webkit-transition: all 0.4s ease-out;
+  transition: all 0.4s ease-out;
+  margin: 0;
+  padding-top: 0.1rem;
+  text-align: center;
+}
+
+/* --- initial state start ------ */
+
+.initial-navbar {
+  background-color: none;
+}
+
+.initial-navbar .navbar-brand {
+  color: #C0CCDA;
+  font-weight: 800;
+}
+
+.initial-navbar li a {
+  color: #C0CCDA;
+}
+
+.initial-navbar .navbar-nav .active,
+.initial-navbar li a:hover {
+  color: #F9FAFC;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.navbar-collapse.show,
+.navbar-collapse.collapsing {
+  background-color: #f9fafc;
+  padding-left: 1rem;
+}
+
+/* --- initial state end ------ */
+
+/* --- state after scroll start --- */
+
+.final-navbar {
+  background-color: #f9fafc;
+  color: #1C2D41;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.final-navbar .navbar-brand {
+  color: #1C2D41;
+  font-weight: 800;
+}
+
+.final-navbar li a {
+  color: #1C2D41;
+  font-weight: 500;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+  border-bottom: 2px solid#F9FAFC;
+}
+
+.final-navbar .navbar-nav .active,
+.final-navbar li a:hover {
+  color: #2098d1;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+  border-bottom: 2px solid #2098d1;
+  background: rgb(2, 0, 36);
+  background: linear-gradient(
+    90deg,
+    rgba(2, 0, 36, 1) 0%,
+    rgba(34, 136, 168, 0.1) 0%
+  );
+}
+
+.navbar-collapse.show li a,
+.navbar-collapse.collapsing li a {
+  color: #1C2D41;
+  font-weight: 500;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.navbar-collapse.show .navbar-nav .active,
+.navbar-collapse.show .navbar-nav a:hover {
+  color: #2098d1;
+  /* -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out; */
+}
+
+#top-navbar-divider {
+  margin-top: 10px;
+}
+
+/* --- state after scroll end --- */
+
+#top-navbar-divider {
+  background: rgba(192, 204, 218, 0.8);
+  height: 20px;
+  width: 2px;
+}
+.final-navbar #top-navbar-divider {
+  background: rgba(0, 0, 0, 0.6);
+  height: 20px;
+  width: 2px;
+}
+
+/*------ navbar on blog page start ----*/
+
+.final-navbar .navbar-toggler {
+  padding: 2px !important;
+}
+
+.blog-navbar .navbar-brand {
+  color: #1C2D41;
+  font-weight: 800;
+}
+
+.blog-navbar li a {
+  color: #1C2D41;
+  font-weight: 500;
+  -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.blog-navbar .navbar-nav .active,
+.blog-navbar li a:hover {
+  color: #2098d1;
+  /* -webkit-transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out; */
+}
+
+/* ============= Device specific fixes ======= */
+
+/* Extra small devices (portrait phones, less than 576px) */
+
+/* No media query for `xs` since this is the default in Bootstrap */
+
+/* Extra large devices (large desktops, 1200px and up) */
+
+@media (max-width: 1400px) {
+}
+
+@media (max-width: 1200px) {
+}
+
+/*  Large devices (desktops, 992px and up) */
+
+@media (max-width: 992px) {
+}
+
+/* Medium devices (tablets, 768px and up) */
+
+@media only screen and (max-width: 768px) {
+  .final-navbar .navbar-nav .active,
+  .final-navbar li a:hover {
+    color: #2098d1;
+    -webkit-transition: none;
+    transition: none;
+    border-bottom: none;
+    background: transparent;
+  }
+
+  .final-navbar li a {
+    border-bottom: none;
+  }
+
+  .navbar-collapse.show {
+    box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
+    transition: all 0.3s ease-out;
+  }
+
+  .dropdown-divider {
+    border-top: 1px solid #c0ccda;
+  }
+}
+
+/* Small devices (landscape phones, 576px and up) */
+
+@media only screen and (max-width: 576px) {
+}

+ 30 - 0
toha/static/css/projects.css

@@ -0,0 +1,30 @@
+.projects .card .card-header {
+  padding: 10px;
+}
+
+.projects .card .card-img-xs {
+  margin-top: 0px;
+  margin-left: 0px;
+  margin-bottom: 5px;
+  margin-right: 10px;
+}
+
+.card .card-header .sub-title span:nth-child(1) {
+  float: left;
+}
+.card .card-header .sub-title span:nth-child(2) {
+  float: right;
+}
+
+.projects .card .card-header {
+  background-color: #f9fafc;
+}
+
+.projects .card .card-header .sub-title {
+  color: #8392a5;
+  margin-top: 5px;
+}
+
+.filtr-projects {
+  padding: 15px !important;
+}

+ 186 - 0
toha/static/css/read.css

@@ -0,0 +1,186 @@
+.read-area {
+  background-color: #f9fafc;
+}
+
+.hero-area {
+  margin-top: 50px;
+  width: 100%;
+  height: 400px;
+  background-image: url(/assets/img/bg.jpg);
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: cover;
+}
+
+.content {
+  width: 100%;
+  position: relative;
+  top: -60px;
+  padding: 5px;
+}
+
+.author-profile {
+  position: relative;
+  align-content: center;
+  text-align: center;
+}
+
+.author-profile img {
+  height: 120px;
+  width: 120px;
+}
+.author-profile p {
+  color: #8392a5;
+}
+
+.title {
+  text-align: center;
+}
+
+.post-content {
+  padding: 10px;
+}
+
+table {
+  border-radius: 20px;
+  background: #e5e9f2;
+  border: 1px solid #c0ccda;
+}
+
+table tr {
+  height: 40px !important;
+}
+
+table thead tr {
+  background: #248aaa;
+  color: #e5e9f2;
+}
+
+tbody tr:nth-child(odd) {
+  background-color: #e5e9f2;
+}
+
+tbody tr:hover {
+  background: #c0ccda;
+}
+
+figure {
+  border: 1px solid #c0ccda;
+  height: fit-content;
+  width: fit-content;
+  align-self: center;
+  margin: auto;
+}
+
+img {
+  max-width: 100%;
+}
+
+caption,
+figcaption {
+  caption-side: bottom;
+  text-align: center;
+  color: #8392a5;
+}
+
+pre {
+  margin: 5px;
+}
+
+code {
+  padding: 10px !important;
+}
+
+.navbar-toggler {
+  display: none;
+}
+
+.next-prev-navigator {
+  padding-left: 10px;
+  padding-right: 10px;
+}
+
+.next-prev-navigator a {
+  color: #3c4858;
+  transition: all 0.3s ease-out;
+}
+
+.next-prev-navigator a:hover {
+  color: #2098d1;
+  transition: all 0.3 ease-out;
+}
+
+.next-prev-navigator .next-article {
+  text-align: right;
+}
+
+.next-prev-navigator .next-article a {
+  transition: all 0.3s ease-out;
+}
+
+.next-prev-navigator .previous-article a {
+  transition: all 0.3s ease-out;
+}
+
+.next-prev-navigator .btn-outline-info {
+  color: #3c4858 !important;
+  border-color: #e5e9f2 !important;
+  background-color: #e5e9f2 !important;
+  transition: all 0.3s ease-out;
+}
+
+.next-prev-navigator .btn-outline-info:hover {
+  color: #f9fafc !important;
+  background-color: #248aaa !important;
+  transition: all 0.3s ease-out;
+}
+
+.disquss {
+  padding: 10px;
+}
+
+@media only screen and (max-width: 768px) {
+  .wrapper {
+    padding-left: 0px;
+    padding-right: 0px;
+    overflow: hidden;
+  }
+  .container {
+    max-width: 100%;
+  }
+  .container {
+    padding: 10px;
+  }
+}
+@media only screen and (max-width: 576px) {
+  .wrapper {
+    padding: 0px;
+  }
+
+  .hero-area {
+    height: 200px;
+  }
+
+  .content {
+    padding: 0px;
+  }
+
+  pre {
+    margin: 0px;
+  }
+  code {
+    padding: 0px;
+  }
+  .next-prev-navigator .previous-article {
+    text-align: center;
+    margin: 5px;
+  }
+  .next-prev-navigator .next-article {
+    text-align: center;
+    margin: 5px;
+  }
+  .previous-article a,
+  .next-article a {
+    width: 100%;
+  }
+}

+ 19 - 0
toha/static/css/recent-posts.css

@@ -0,0 +1,19 @@
+.recent-posts .card .card-footer span {
+  font-size: 10pt;
+  color: #6c757d !important;
+  padding-top: 5px;
+}
+
+.recent-posts .card .card-footer {
+  background: #fff;
+}
+
+.post-summery {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  /* line-height: 24px;     fallback */
+  max-height: 144px; /* fallback */
+  -webkit-line-clamp: 5; /* number of lines to show */
+  -webkit-box-orient: vertical;
+}

+ 49 - 0
toha/static/css/skills.css

@@ -0,0 +1,49 @@
+.skills .card .card-head img {
+  margin: 10px;
+}
+
+.skills .card {
+  margin-top: 10px;
+  margin-bottom: 10px;
+}
+
+.skills .card .card-body {
+  padding-top: 0;
+}
+
+.skills .card .card-head {
+  height: fit-content;
+}
+
+.skills .card .card-head h4 {
+  margin-top: 0.8rem;
+}
+
+/* ============= Device specific fixes ======= */
+
+/* Extra small devices (portrait phones, less than 576px) */
+
+/* No media query for `xs` since this is the default in Bootstrap */
+
+/* Extra large devices (large desktops, 1200px and up) */
+
+@media (max-width: 1400px) {
+}
+
+@media (max-width: 1200px) {
+}
+
+/*  Large devices (desktops, 992px and up) */
+
+@media (max-width: 992px) {
+}
+
+/* Medium devices (tablets, 768px and up) */
+
+@media only screen and (max-width: 768px) {
+}
+
+/* Small devices (landscape phones, 576px and up) */
+
+@media only screen and (max-width: 576px) {
+}

+ 222 - 0
toha/static/css/style.css

@@ -0,0 +1,222 @@
+/* ========= Colors ============
+Heading:     #1C2D41
+Paragraph:   #3C4858
+Iconography: #8392A5
+Secondary:   #C0CCDA
+Dirty Snow:  #E5E9F2
+Snow:        #F9FAFC
+
+Magenta: #7551E9
+Orange:  #FF7D51
+Pink:    #ED63D2
+Green:   #2DCA73
+Yellow:  #FFC212
+*/
+
+body {
+  background-color: #f9fafc;
+  font-family: "Muli";
+}
+
+h1,
+h2,
+h3,
+h4,
+h5 {
+  color: #1c2d41;
+}
+
+p {
+  color: #3c4858;
+}
+
+a {
+  color: #248aaa;
+}
+
+a:hover {
+  color: #207089;
+}
+
+.btn-dark {
+  background-color: #3c4858;
+  border-color: #3c4858;
+  color: #e5e9f2;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.btn-dark:hover,
+.btn-dark:focus {
+  background-color: #248aaa;
+  border-color: #248aaa;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.btn-outline-info {
+  color: #2098d1 !important;
+  border-color: #2098d1 !important;
+}
+
+.btn-outline-info:hover {
+  background-color: #2098d1 !important;
+  color: #e5e9f2 !important;
+}
+
+.btn-info {
+  background-color: #248aaa !important;
+  color: #e5e9f2 !important;
+}
+
+.btn-info:hover {
+  background-color: #2098d1 !important;
+  color: #e5e9f2 !important;
+}
+
+.bg-white {
+  background-color: #f9fafc !important;
+}
+
+.bg-dimmed {
+  background-color: #e5e9f2;
+}
+
+.anchor {
+  padding-top: 3rem;
+}
+
+.card {
+  box-shadow: none;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+  overflow: hidden;
+}
+
+.card-img-sm {
+  width: 32px;
+  height: 32px;
+}
+
+.card-img-xs {
+  width: 24px;
+  height: 24px;
+}
+
+.card:hover,
+.card:focus {
+  box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
+  border: 1px solid #fff;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.card .card-head {
+  height: 172px;
+  object-fit: cover;
+  overflow: hidden;
+}
+
+.card:hover .card-head .card-img-top,
+.card:hover .card-head .card-img-top {
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+  transform: scale(1.2);
+}
+
+.card-title {
+  font-weight: 600;
+}
+
+.card-body {
+  text-align: justify;
+}
+
+.sub-title {
+  color: #c0ccda;
+  font-size: 10pt;
+}
+
+/* --- FOOTER START --- */
+
+.footer {
+  color: #8392a5 !important;
+  background-color: #1c2d41;
+  position: relative;
+  z-index: 9999;
+}
+
+.footer h5 {
+  color: #c0ccda;
+}
+.footer a {
+  color: #8392a5;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.footer a:hover {
+  margin-left: 5px;
+  transition: all 0.3s ease-out;
+  transition: all 0.3s ease-out;
+}
+
+.footer ul {
+  list-style: none;
+  padding-left: 0;
+}
+
+.footer li {
+  margin-top: 5px;
+}
+
+.footer hr {
+  background-color: #8392a5;
+}
+
+.footer p:first-child {
+  color: #c0ccda;
+}
+
+.footer input {
+  background-color: #c0ccda;
+}
+
+.footer input:focus {
+  background-color: #e5e9f2;
+}
+
+.footer #theme {
+  color: #c0ccda;
+}
+
+/* --- FOOTER END ---- */
+
+/* ============= Device specific fixes ======= */
+
+/* Extra small devices (portrait phones, less than 576px) */
+
+/* No media query for `xs` since this is the default in Bootstrap */
+
+/* Extra large devices (large desktops, 1200px and up) */
+
+@media (max-width: 1400px) {
+}
+
+@media (max-width: 1200px) {
+}
+
+/*  Large devices (desktops, 992px and up) */
+
+@media (max-width: 992px) {
+}
+
+/* Medium devices (tablets, 768px and up) */
+
+@media only screen and (max-width: 768px) {
+}
+
+/* Small devices (landscape phones, 576px and up) */
+
+@media only screen and (max-width: 576px) {
+}

+ 107 - 0
toha/static/js/blog.js

@@ -0,0 +1,107 @@
+"use strict";
+
+var filterizd;
+
+var isMobile = false, isTablet = false, isLaptop = false;
+(function ($) {
+  jQuery(document).ready(function () {
+    function detectDevice() {
+      if (window.innerWidth <= 425) {
+        isMobile = true;
+        isTablet = false;
+        isLaptop = false;
+      } else if (window.innerWidth <= 768) {
+        isMobile = false;
+        isTablet = true;
+        isLaptop = false;
+      } else {
+        isMobile = false;
+        isTablet = false;
+        isLaptop = true;
+      }
+    }
+    detectDevice();
+    console.log(isMobile);
+
+    // ======= Adjust height of the post cards =============
+    function adjustPostCardsHeight() {
+      if (!isMobile) { // no need to adjust height for mobile devices
+        let el = document.getElementById("post-cards").children;
+        let maxHeight = 0;
+        for (let i = 0; i < el.length; i++) {
+          if (el[i].children[0].clientHeight > maxHeight) {
+            maxHeight = el[i].children[0].clientHeight;
+          }
+        }
+        for (let i = 0; i < el.length; i++) {
+          el[i].children[0].setAttribute("style", "min-height: " + maxHeight + "px;")
+        }
+      }
+    }
+    adjustPostCardsHeight();
+
+    // ============= Sidebar Tre ================
+    function buildSidebarMenu() {
+      var openedClass = "fa-minus-circle";
+      var closedClass = "fa-plus-circle";
+      // initialize top level
+      var tree = $("#tree");
+      // add expand icon to those li who has ul as children
+      tree.find("li").has("ul").each(function () {
+        var branch = $(this);
+        branch.prepend('<i class="fas ' + closedClass + '"></i>');
+        branch.on('click', function (e) {
+          if (this.children[1] == e.target) {
+            // toggle "expand" class and icon
+            branch.toggleClass("expand");
+            var icon = $(this).children('i:first');
+            icon.toggleClass(openedClass + " " + closedClass);
+          }
+        });
+      });
+
+      // remove "expnad" class from siblings of the clicked item
+      tree.find("li").on("click", function () {
+        var item = $(this);
+        var shiblings = item.siblings().each(function () {
+          var sibling = $(this);
+          if (sibling.hasClass("expand")) {
+            sibling.removeClass("expand");
+            var icon = sibling.children('i:first');
+            icon.toggleClass(openedClass + " " + closedClass);
+          }
+        });
+      });
+
+      // focus the cliked item
+      tree.find("a").on("click", function () {
+        // clear other focused link
+        tree.find("a.focused").each(function () {
+          $(this).removeClass("focused");
+        });
+        // focus cliked link
+        $(this).addClass("focused");
+      });
+    }
+
+    buildSidebarMenu();
+    // initialize filterizr
+    filterizd = $(".filtr-container").filterizr({ layout: 'sameWidth' });
+  });
+})(jQuery);
+
+// toggle sidebar on click
+function toggleSidebar() {
+  document.getElementById("sidebar").classList.toggle("hide");
+  document.getElementById("content").classList.toggle("overley");
+
+  // if it is mobile device. then scroll to top.
+  if (isMobile && $("#sidebar").hasClass("hide")) {
+    document.body.scrollTop = 0;
+    document.documentElement.scrollTop = 0;
+  }
+
+  setTimeout(function () {
+    filterizd.filterizr('sort');
+  }, 300);
+}

ファイルの差分が大きいため隠しています
+ 5 - 0
toha/static/js/bootstrap.min.js


ファイルの差分が大きいため隠しています
+ 4 - 0
toha/static/js/fontawesome.all.min.js


+ 286 - 0
toha/static/js/github-button.js

@@ -0,0 +1,286 @@
+function renderGithubButton() {
+    "use strict";
+    var e = window.document,
+        t = e.location,
+        o = window.Math,
+        r = window.HTMLElement,
+        n = window.XMLHttpRequest,
+        a = "https://buttons.github.io/buttons.html",
+        i = n && n.prototype && "withCredentials" in n.prototype,
+        l = i && r && r.prototype.attachShadow && !r.prototype.attachShadow.prototype,
+        c = function (e, t, o, r) {
+            null == t && (t = "&"), null == o && (o = "="), null == r && (r = window.decodeURIComponent);
+            for (var n = {}, a = e.split(t), i = 0, l = a.length; i < l; ++i) {
+                var c = a[i];
+                if ("" !== c) {
+                    var d = c.split(o);
+                    n[r(d[0])] = null != d[1] ? r(d.slice(1).join(o)) : void 0
+                }
+            }
+            return n
+        },
+        d = function (e, t, o) {
+            e.addEventListener ? e.addEventListener(t, o, !1) : e.attachEvent("on" + t, o)
+        },
+        s = function (e, t, o) {
+            e.removeEventListener ? e.removeEventListener(t, o, !1) : e.detachEvent("on" + t, o)
+        },
+        f = function (e, t, o) {
+            var r = function (n) {
+                return s(e, t, r), o(n)
+            };
+            d(e, t, r)
+        },
+        u = function (e, t, o) {
+            var r = function (n) {
+                if (t.test(e.readyState)) return s(e, "readystatechange", r), o(n)
+            };
+            d(e, "readystatechange", r)
+        },
+        h = function (e) {
+            return function (t, o, r) {
+                var n = e.createElement(t);
+                if (o)
+                    for (var a in o) {
+                        var i = o[a];
+                        null != i && (null != n[a] ? n[a] = i : n.setAttribute(a, i))
+                    }
+                if (r)
+                    for (var l = 0, c = r.length; l < c; l++) {
+                        var d = r[l];
+                        n.appendChild("string" == typeof d ? e.createTextNode(d) : d)
+                    }
+                return n
+            }
+        },
+        g = h(e),
+        p = function (e) {
+            var t;
+            return function () {
+                t || (t = 1, e.apply(this, arguments))
+            }
+        },
+        b = function (e, t) {
+            return {}.hasOwnProperty.call(e, t)
+        },
+        m = {
+            light: ".btn{color:#24292e;background-color:#eff3f6;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23fafbfc'/%3e%3cstop offset='90%25' stop-color='%23eff3f6'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:linear-gradient(180deg, #fafbfc, #eff3f6 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5');border-color:#cdcfd1;border-color:rgba(27,31,35,.2)}:root .btn{filter:none}.btn:focus,.btn:hover{background-color:#e6ebf1;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%23f0f3f6'/%3e%3cstop offset='90%25' stop-color='%23e6ebf1'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:linear-gradient(180deg, #f0f3f6, #e6ebf1 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0');background-position:-0.5em;border-color:#acaeb0;border-color:rgba(27,31,35,.35)}:root .btn:focus,:root .btn:hover{filter:none}.btn:active{background-color:#e9ecef;background-image:none;border-color:#acaeb0;border-color:rgba(27,31,35,.35);box-shadow:inset 0 .15em .3em rgba(27,31,35,.15);filter:none}.social-count{color:#24292e;background-color:#fff;border-color:#d1d2d3;border-color:rgba(27,31,35,.2)}.social-count:focus,.social-count:hover{color:#0366d6}.octicon-heart{color:#ea4aaa}",
+            dark: ".btn{color:#fafbfc;background-color:#202428;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%232f363d'/%3e%3cstop offset='90%25' stop-color='%23202428'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2f363d, #202428 90%);background-image:linear-gradient(180deg, #2f363d, #202428 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2F363D', endColorstr='#FF1E2226');border-color:#2b3138;border-color:rgba(27,31,35,.2)}:root .btn{filter:none}.btn:focus,.btn:hover{background-color:#1b1f23;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg'%3e%3clinearGradient id='o' x2='0' y2='1'%3e%3cstop stop-color='%232b3137'/%3e%3cstop offset='90%25' stop-color='%231b1f23'/%3e%3c/linearGradient%3e%3crect width='100%25' height='100%25' fill='url(%23o)'/%3e%3c/svg%3e\");background-image:-moz-linear-gradient(top, #2b3137, #1b1f23 90%);background-image:linear-gradient(180deg, #2b3137, #1b1f23 90%);filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FF2B3137', endColorstr='#FF191D21');background-position:-0.5em;border-color:#252b30;border-color:rgba(27,31,35,.5)}:root .btn:focus,:root .btn:hover{filter:none}.btn:active{background-color:#181b1f;background-image:none;border-color:#252b30;border-color:rgba(27,31,35,.5);box-shadow:inset 0 .15em .3em rgba(27,31,35,.15);filter:none}.social-count{color:#fafbfc;background-color:#1b1f23;border-color:#1b1f23;border-color:rgba(27,31,35,.2)}.social-count:focus,.social-count:hover{color:#2188ff}.octicon-heart{color:#ec6cb9}"
+        },
+        v = function (e, t) {
+            return "@media(prefers-color-scheme:" + e + "){" + m[b(m, t) ? t : e] + "}"
+        },
+        w = {
+            "mark-github": {
+                width: 16,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>'
+            },
+            heart: {
+                width: 12,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M9 2c-.97 0-1.69.42-2.2 1-.51.58-.78.92-.8 1-.02-.08-.28-.42-.8-1-.52-.58-1.17-1-2.2-1-1.632.086-2.954 1.333-3 3 0 .52.09 1.52.67 2.67C1.25 8.82 3.01 10.61 6 13c2.98-2.39 4.77-4.17 5.34-5.33C11.91 6.51 12 5.5 12 5c-.047-1.69-1.342-2.913-3-3z"/>'
+            },
+            eye: {
+                width: 16,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/>'
+            },
+            star: {
+                width: 14,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"/>'
+            },
+            "repo-forked": {
+                width: 10,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M8 1a1.993 1.993 0 00-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 002 1a1.993 1.993 0 00-1 3.72V6.5l3 3v1.78A1.993 1.993 0 005 15a1.993 1.993 0 001-3.72V9.5l3-3V4.72A1.993 1.993 0 008 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/>'
+            },
+            "issue-opened": {
+                width: 14,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 011.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/>'
+            },
+            "cloud-download": {
+                width: 16,
+                height: 16,
+                path: '<path fill-rule="evenodd" d="M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z"/>'
+            }
+        },
+        x = {},
+        y = function (e, t) {
+            var o = x[e] || (x[e] = []);
+            if (!(o.push(t) > 1)) {
+                var r = p((function () {
+                    for (delete x[e]; t = o.shift();) t.apply(null, arguments)
+                }));
+                if (i) {
+                    var a = new n;
+                    d(a, "abort", r), d(a, "error", r), d(a, "load", (function () {
+                        var e;
+                        try {
+                            e = JSON.parse(a.responseText)
+                        } catch (e) {
+                            return void r(e)
+                        }
+                        r(200 !== a.status, e)
+                    })), a.open("GET", e), a.send()
+                } else {
+                    var l = this || window;
+                    l._ = function (e) {
+                        l._ = null, r(200 !== e.meta.status, e.data)
+                    };
+                    var c = h(l.document)("script", {
+                        async: !0,
+                        src: e + (/\?/.test(e) ? "&" : "?") + "callback=_"
+                    }),
+                        s = function () {
+                            l._ && l._({
+                                meta: {}
+                            })
+                        };
+                    d(c, "load", s), d(c, "error", s), c.readyState && u(c, /de|m/, s), l.document.getElementsByTagName("head")[0].appendChild(c)
+                }
+            }
+        },
+        k = function (e, t, o) {
+            var r = h(e.ownerDocument),
+                n = e.appendChild(r("style", {
+                    type: "text/css"
+                })),
+                a = "body{margin:0}a{text-decoration:none;outline:0}.widget{display:inline-block;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:0;white-space:nowrap}.btn,.social-count{position:relative;display:inline-block;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:repeat-x;background-position:-1px -1px;background-size:110% 110%;border:1px solid}.btn{border-radius:.25em}.btn:not(:last-child){border-radius:.25em 0 0 .25em}.social-count{border-left:0;border-radius:0 .25em .25em 0}.widget-lg .btn,.widget-lg .social-count{height:20px;padding:3px 10px;font-size:12px;line-height:20px}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor}" + function (e) {
+                    if (null == e) return m.light;
+                    var t = c(e, ";", ":", (function (e) {
+                        return e.replace(/^[ \t\n\f\r]+|[ \t\n\f\r]+$/g, "")
+                    }));
+                    return m[b(m, t["no-preference"]) ? t["no-preference"] : "light"] + v("light", t.light) + v("dark", t.dark)
+                }(t["data-color-scheme"]);
+            n.styleSheet ? n.styleSheet.cssText = a : n.appendChild(e.ownerDocument.createTextNode(a));
+            var i, l, d = r("a", {
+                className: "btn",
+                href: t.href,
+                target: "_blank",
+                rel: "noopener",
+                innerHTML: (i = t["data-icon"], l = /^large$/i.test(t["data-size"]) ? 16 : 14, i = ("" + i).toLowerCase().replace(/^octicon-/, ""), b(w, i) || (i = "mark-github"), '<svg viewBox="0 0 ' + w[i].width + " " + w[i].height + '" class="octicon octicon-' + i + '" style="width: ' + l * w[i].width / w[i].height + "px; height: " + l + 'px;" aria-hidden="true">' + w[i].path + "</svg>"),
+                "aria-label": t["aria-label"] || void 0
+            }, [" ", r("span", {}, [t["data-text"] || ""])]),
+                s = e.appendChild(r("div", {
+                    className: "widget" + (/^large$/i.test(t["data-size"]) ? " widget-lg" : "")
+                }, [d])),
+                f = d.hostname.split(".").reverse();
+            if ("" === f[0] && f.shift(), "com" !== f[0] || "github" !== f[1]) return d.href = "#", d.target = "_self", void o(s);
+            var u = f.length,
+                g = (" /" + d.pathname).split(/\/+/);
+            if (((2 === u || 3 === u && "gist" === f[2]) && "archive" === g[3] || 2 === u && "releases" === g[3] && "download" === g[4] || 3 === u && "codeload" === f[2]) && (d.target = "_top"), /^true$/i.test(t["data-show-count"]) && 2 === u) {
+                var p, x;
+                if (!g[2] && g[1]) p = x = "followers";
+                else if (!g[3] && g[2]) x = "stargazers_count", p = "stargazers";
+                else if (g[4] || "subscription" !== g[3])
+                    if (g[4] || "fork" !== g[3]) {
+                        if ("issues" !== g[3]) return void o(s);
+                        x = "open_issues_count", p = "issues"
+                    } else x = "forks_count", p = "network/members";
+                else x = "subscribers_count", p = "watchers";
+                var k = g[2] ? "/repos/" + g[1] + "/" + g[2] : "/users/" + g[1];
+                y.call(this, "https://api.github.com" + k, (function (e, t) {
+                    if (!e) {
+                        var n = t[x];
+                        s.appendChild(r("a", {
+                            className: "social-count",
+                            href: t.html_url + "/" + p,
+                            target: "_blank",
+                            rel: "noopener",
+                            "aria-label": n + " " + x.replace(/_count$/, "").replace("_", " ").slice(0, n < 2 ? -1 : void 0) + " on GitHub"
+                        }, [("" + n).replace(/\B(?=(\d{3})+(?!\d))/g, ",")]))
+                    }
+                    o(s)
+                }))
+            } else o(s)
+        },
+        C = window.devicePixelRatio || 1,
+        z = function (e) {
+            return (C > 1 ? o.ceil(o.round(e * C) / C * 2) / 2 : o.ceil(e)) || 0
+        },
+        F = function (e, t) {
+            e.style.width = t[0] + "px", e.style.height = t[1] + "px"
+        },
+        M = function (t, r) {
+            if (null != t && null != r)
+                if (t.getAttribute && (t = function (e) {
+                    for (var t = {
+                        href: e.href,
+                        title: e.title,
+                        "aria-label": e.getAttribute("aria-label")
+                    }, o = ["icon", "color-scheme", "text", "size", "show-count"], r = 0, n = o.length; r < n; r++) {
+                        var a = "data-" + o[r];
+                        t[a] = e.getAttribute(a)
+                    }
+                    return null == t["data-text"] && (t["data-text"] = e.textContent || e.innerText), t
+                }(t)), l) {
+                    var n = g("span", {
+                        title: t.title || void 0
+                    });
+                    k(n.attachShadow({
+                        mode: "closed"
+                    }), t, (function () {
+                        r(n)
+                    }))
+                } else {
+                    var i = g("iframe", {
+                        src: "javascript:0",
+                        title: t.title || void 0,
+                        allowtransparency: !0,
+                        scrolling: "no",
+                        frameBorder: 0
+                    });
+                    F(i, [0, 0]), i.style.border = "none";
+                    var c = function () {
+                        var n, l = i.contentWindow;
+                        try {
+                            n = l.document.body
+                        } catch (t) {
+                            return void e.body.appendChild(i.parentNode.removeChild(i))
+                        }
+                        s(i, "load", c), k.call(l, n, t, (function (e) {
+                            var n = function (e) {
+                                var t = e.offsetWidth,
+                                    r = e.offsetHeight;
+                                if (e.getBoundingClientRect) {
+                                    var n = e.getBoundingClientRect();
+                                    t = o.max(t, z(n.width)), r = o.max(r, z(n.height))
+                                }
+                                return [t, r]
+                            }(e);
+                            i.parentNode.removeChild(i), f(i, "load", (function () {
+                                F(i, n)
+                            })), i.src = a + "#" + (i.name = function (e, t, o, r) {
+                                null == t && (t = "&"), null == o && (o = "="), null == r && (r = window.encodeURIComponent);
+                                var n = [];
+                                for (var a in e) {
+                                    var i = e[a];
+                                    null != i && n.push(r(a) + o + r(i))
+                                }
+                                return n.join(t)
+                            }(t)), r(i)
+                        }))
+                    };
+                    d(i, "load", c), e.body.appendChild(i)
+                }
+        };
+    t.protocol + "//" + t.host + t.pathname === a ? k(e.body, c(window.name || t.hash.replace(/^#/, "")), (function () { })) : function (t) {
+        if (/m/.test(e.readyState) || !/g/.test(e.readyState) && !e.documentElement.doScroll) setTimeout(t);
+        else if (e.addEventListener) {
+            var o = p(t);
+            f(e, "DOMContentLoaded", o), f(window, "load", o)
+        } else u(e, /m/, t)
+    }((function () {
+        for (var t = e.querySelectorAll ? e.querySelectorAll("a.github-button") : function () {
+            for (var t = [], o = e.getElementsByTagName("a"), r = 0, n = o.length; r < n; r++) ~(" " + o[r].className + " ").replace(/[ \t\n\f\r]+/g, " ").indexOf(" github-button ") && t.push(o[r]);
+            return t
+        }(), o = 0, r = t.length; o < r; o++) ! function (e) {
+            M(e, (function (t) {
+                e.parentNode.replaceChild(t, e)
+            }))
+        }(t[o])
+    }))
+}

+ 361 - 0
toha/static/js/home.js

@@ -0,0 +1,361 @@
+"use strict";
+
+var projectCards;
+
+(function ($) {
+  jQuery(document).ready(function () {
+
+    var isMobile = false, isTablet = false, isLaptop = false;
+
+    function detectDevice() {
+      if (window.innerWidth <= 425) {
+        isMobile = true;
+        isTablet = false;
+        isLaptop = false;
+      } else if (window.innerWidth <= 768) {
+        isMobile = false;
+        isTablet = true;
+        isLaptop = false;
+      } else {
+        isMobile = false;
+        isTablet = false;
+        isLaptop = true;
+      }
+    }
+    detectDevice();
+
+    // =========== Typing Carousel ================
+    // get data from hidden ul and set as typing data
+    if (document.getElementById('typing-carousel-data') != undefined) {
+      var ul = document.getElementById('typing-carousel-data').children;
+
+      var data = [];
+      Array.from(ul).forEach(el => {
+        data.push(el.textContent);
+      })
+
+      ityped.init('#ityped', {
+        strings: data,
+        startDelay: 200,
+        loop: true
+      });
+    }
+
+    // ================= Smooth Scroll ===================
+    // Add smooth scrolling to all links
+    $("a").on('click', function (event) {
+
+      // Make sure this.hash has a value before overriding default behavior
+      if (this.hash !== "") {
+        // Prevent default anchor click behavior
+        event.preventDefault();
+
+        // Store hash
+        var hash = this.hash;
+
+        // Using jQuery's animate() method to add smooth page scroll
+        // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
+        $('html, body').animate({
+          scrollTop: $(hash).offset().top
+        }, 800, function () {
+
+          // Add hash (#) to URL when done scrolling (default click behavior)
+          window.location.hash = hash;
+        });
+      } // End if
+    });
+
+    // ============== Fix Timelines Horizontal Lines =========
+    var hLines = document.getElementsByClassName("horizontal-line");
+    for (let i = 0; i < hLines.length; i++) {
+      if (i % 2) {
+        hLines[i].children[0].children[0].classList.add("bottom-right");
+        hLines[i].children[2].children[0].classList.add("top-left");
+      } else {
+        hLines[i].children[0].children[0].classList.add("top-right");
+        hLines[i].children[2].children[0].classList.add("bottom-left");
+      }
+    }
+
+    // ============== Fix Timelines Vertical lines =========
+    var vLines = document.getElementsByClassName("vertical-line");
+    for (let i = 0; i < vLines.length; i++) {
+      if (i % 2) {
+        vLines[i].classList.add("vertical-line-left-adjustment");
+      }
+    }
+
+    // ==================== Adjust height of the skills card =============
+    function adjustSkillCardsHeight() {
+      if (!isMobile) { // no need to adjust height for mobile devices
+        // primary skills
+        var el = document.getElementById("primary-skills").children;
+        var maxHeight = 0;
+        for (let i = 0; i < el.length; i++) {
+          if (el[i].children[0].clientHeight > maxHeight) {
+            maxHeight = el[i].children[0].clientHeight;
+          }
+        }
+        for (let i = 0; i < el.length; i++) {
+          el[i].children[0].setAttribute("style", "min-height: " + maxHeight + "px;")
+        }
+      }
+    }
+    adjustSkillCardsHeight();
+
+    // ================== Project cards =====================
+    // Add click action on project category selector buttons
+    var btns = document.getElementById("project-filter-buttons").children;
+
+    for (let i = 0; i < btns.length; i++) {
+      btns[i].onclick = function () {
+        showGithubStars(btns[i].id);
+      }
+    }
+
+    projectCards = $(".filtr-projects").filterizr({ layout: 'sameWidth' });
+
+    function showGithubStars() {
+      // fix the github button class
+      // we had set it to github-button-inactive in projects holder cards so that respective javascript
+      // don't render it and replace respective span with shadow root
+      let githubButtons = document.getElementsByClassName("github-button-inactive");
+      while (githubButtons.length > 0) {
+        if (githubButtons[0].classList != undefined) {
+          githubButtons[0].classList.replace("github-button-inactive", "github-button");
+        }
+      }
+      // now render github button. it will call the github API and fill the respective fields
+      renderGithubButton();
+    }
+    showGithubStars();
+
+    // ==================== Adjust height of the recent-posts card =============
+
+    function adjustRecentPostsHeight() {
+      if (!isMobile) { // no need to adjust height for mobile devices
+        let el = document.getElementById("recent-posts").children;
+        let maxHeight = 0;
+        for (let i = 0; i < el.length; i++) {
+          if (el[i].children[0].clientHeight > maxHeight) {
+            maxHeight = el[i].children[0].clientHeight;
+          }
+        }
+        for (let i = 0; i < el.length; i++) {
+          el[i].children[0].setAttribute("style", "min-height: " + maxHeight + "px;")
+        }
+      }
+    }
+    adjustRecentPostsHeight();
+
+    // =============== Achievements ===========
+
+    function fourColumRow(gallery, entries, i) {
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-6", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry1);
+      i++;
+
+      let entry2 = document.createElement("div");
+      entry2.classList.add("col-lg-3", "m-0", "p-0");
+      entry2.appendChild(entries[i].cloneNode(true));
+      entry2.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry2);
+      i++;
+
+      let entry3 = document.createElement("div");
+      entry3.classList.add("col-lg-3", "m-0", "p-0");
+      entry3.appendChild(entries[i].cloneNode(true));
+      entry3.children[0].classList.add("img-type-2");
+      i++;
+      entry3.appendChild(entries[i].cloneNode(true));
+      entry3.children[1].classList.add("img-type-2");
+      gallery.appendChild(entry3);
+      i++;
+    }
+
+    function fourColumnReversedRow(gallery, entries, i) {
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-3", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-2");
+      i++;
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[1].classList.add("img-type-2");
+      gallery.appendChild(entry1);
+      i++;
+
+      let entry2 = document.createElement("div");
+      entry2.classList.add("col-lg-3", "m-0", "p-0");
+      entry2.appendChild(entries[i].cloneNode(true));
+      entry2.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry2);
+      i++;
+
+      let entry3 = document.createElement("div");
+      entry3.classList.add("col-lg-6", "m-0", "p-0");
+      entry3.appendChild(entries[i].cloneNode(true));
+      entry3.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry3);
+      i++;
+    }
+
+    function threeColumnRow(gallery, entries, i) {
+      console.log(i);
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-6", "col-md-6", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry1);
+      i++;
+
+      let entry2 = document.createElement("div");
+      entry2.classList.add("col-lg-3", "col-md-3", "m-0", "p-0");
+      entry2.appendChild(entries[i].cloneNode(true));
+      entry2.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry2);
+      i++;
+
+      let entry3 = document.createElement("div");
+      entry3.classList.add("col-lg-3", "col-md-3", "m-0", "p-0");
+      entry3.appendChild(entries[i].cloneNode(true));
+      entry3.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry3);
+      i++;
+    }
+    function threeColumnReversedRow(gallery, entries, i) {
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-3", "col-md-3", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry1);
+      i++;
+
+      let entry2 = document.createElement("div");
+      entry2.classList.add("col-lg-3", "col-md-3", "m-0", "p-0");
+      entry2.appendChild(entries[i].cloneNode(true));
+      entry2.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry2);
+      i++;
+
+      let entry3 = document.createElement("div");
+      entry3.classList.add("col-lg-6", "col-md-3", "m-0", "p-0");
+      entry3.appendChild(entries[i].cloneNode(true));
+      entry3.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry3);
+      i++;
+    }
+    function twoColumnRow(gallery, entries, i) {
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-6", "col-md-6", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry1);
+      i++;
+
+      let entry2 = document.createElement("div");
+      entry2.classList.add("col-lg-6", "col-md-6", "m-0", "p-0");
+      entry2.appendChild(entries[i].cloneNode(true));
+      entry2.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry2);
+      i++;
+    }
+
+    function singleColumnRow(gallery, entries, i) {
+      let entry1 = document.createElement("div");
+      entry1.classList.add("col-lg-6", "col-md-6", "m-0", "p-0");
+      entry1.appendChild(entries[i].cloneNode(true));
+      entry1.children[0].classList.add("img-type-1");
+      gallery.appendChild(entry1);
+      i++;
+    }
+
+    function showAchievements() {
+      // show achievements from achievements-holder div
+      let gallery = document.getElementById("gallery");
+      gallery.innerHTML = "";
+      const entries = document.getElementById("achievements-holder").children;
+      let len = entries.length;
+      let i = 0;
+      let rowNumber = 1;
+      while (i < len) {
+        if (isLaptop) {
+          if (i + 4 <= len) {
+            if (rowNumber % 2) {
+              fourColumRow(gallery, entries, i);
+            } else {
+              fourColumnReversedRow(gallery, entries, i);
+            }
+            i += 4;
+
+          } else if (i + 3 <= len) {
+            if (rowNumber % 2) {
+              threeColumnRow(gallery, entries, i);
+            } else {
+              threeColumnReversedRow(gallery, entries, i);
+            }
+            i += 3;
+          } else if (i + 2 <= len) {
+            twoColumnRow(gallery, entries, i);
+            i += 2;
+          } else {
+            singleColumnRow(gallery, entries, i);
+            i++;
+          }
+        } else if (isTablet) {
+          if (i + 2 <= len) {
+            twoColumnRow(gallery, entries, i);
+            i += 2;
+          } else {
+            singleColumnRow(gallery, entries, i);
+            i++;
+          }
+        } else {
+          singleColumnRow(gallery, entries, i);
+          i++;
+        }
+        rowNumber++;
+      }
+
+      // show full image on click
+      let elements = document.getElementsByClassName("achievement-entry");
+      len = elements.length;
+      for (let i = 0; i < len; i++) {
+        elements[i].onclick = function () {
+          let achievements = document.getElementsByClassName("achievement-entry");
+          let len2 = achievements.length;
+          for (let j = 0; j < len2; j++) {
+            achievements[j].classList.toggle("hidden");
+          }
+          this.classList.toggle("achievement-details");
+          this.classList.toggle("hidden");
+          this.parentElement.classList.toggle("col-lg-12");
+          this.parentElement.classList.toggle("col-md-12");
+          this.parentElement.classList.toggle("col-sm-12");
+          if (this.children["caption"] != undefined) {
+            this.children["caption"].classList.toggle("hidden");
+          }
+          if (this.children["enlarge-icon"] != undefined) {
+            this.children["enlarge-icon"].classList.toggle("fa-search-plus");
+            this.children["enlarge-icon"].classList.toggle("fa-times");
+          }
+          if (this.children["achievement-title"] != undefined) {
+            this.children["achievement-title"].classList.toggle("hidden");
+          }
+        }
+      }
+    }
+    showAchievements();
+
+    // re-render custom functions on window resize
+    window.onresize = function () {
+      detectDevice();
+      adjustSkillCardsHeight();
+      adjustRecentPostsHeight();
+      showAchievements();
+    };
+  });
+
+})(jQuery);

+ 2 - 0
toha/static/js/itype.min.js

@@ -0,0 +1,2 @@
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.ityped={})}(this,function(e){"use strict";e.init=function(e,t){var n=0,o=void 0,r=void 0,i=function(e,t){n===o&&t.loop&&(n=0),setTimeout(function(){a(e[n],t)},t.startDelay)},a=function(t,n){var o=0,r=t.length,i=setInterval(function(){if(n.placeholder?e.placeholder+=t[o]:e.textContent+=t[o],++o===r)return d(i,n)},n.typeSpeed)},d=function(e,t){return clearInterval(e),t.disableBackTyping&&n===o-1?t.onFinished():t.loop||n!==o-1?void setTimeout(function(){return c(t)},t.backDelay):t.onFinished()},c=function(t){var n=t.placeholder?e.placeholder:e.textContent,o=n.length,r=setInterval(function(){if(t.placeholder?e.placeholder=e.placeholder.substr(0,--o):e.textContent=n.substr(0,--o),0===o)return s(r,t)},t.backSpeed)},s=function(e,t){clearInterval(e),++n,i(r,t)};return function(t){var n=function(e){var t=e.strings,n=void 0===t?["Put your strings here...","and Enjoy!"]:t,o=e.typeSpeed,r=void 0===o?100:o,i=e.backSpeed,a=void 0===i?50:i,d=e.backDelay,c=void 0===d?500:d,s=e.startDelay,l=void 0===s?500:s,u=e.cursorChar,p=void 0===u?"|":u,f=e.placeholder,v=void 0!==f&&f,h=e.showCursor,y=void 0===h||h,b=e.disableBackTyping,g=void 0!==b&&b,C=e.onFinished,k=void 0===C?function(){}:C,m=e.loop;return{strings:n,typeSpeed:r,backSpeed:a,cursorChar:p,backDelay:c,placeholder:v,startDelay:l,showCursor:y,loop:void 0===m||m,disableBackTyping:g,onFinished:k}}(t||{}),a=n.strings;r=a,o=a.length,"string"==typeof e&&(e=document.querySelector(e)),n.showCursor&&function(e,t){var n=document.createElement("span");n.classList.add("ityped-cursor"),n.textContent="|",n.textContent=t.cursorChar,e.insertAdjacentElement("afterend",n)}(e,n),i(a,n)}(t)},Object.defineProperty(e,"__esModule",{value:!0})});
+//# sourceMappingURL=index.min.js.map

ファイルの差分が大きいため隠しています
+ 1 - 0
toha/static/js/jquery-3.4.1.min.js


ファイルの差分が大きいため隠しています
+ 1 - 0
toha/static/js/jquery-3.4.1.slim.min.js


ファイルの差分が大きいため隠しています
+ 0 - 0
toha/static/js/jquery.filterizr.min.js


+ 27 - 0
toha/static/js/navbar.js

@@ -0,0 +1,27 @@
+"use strict";
+
+(function ($) {
+  jQuery(document).ready(function () {
+
+    // change navbar style on scroll
+    // ==================================================
+    // When the user scrolls down 80px from the top of the document, resize the navbar's padding and the logo's font size
+    // $.onscroll = function() {scrollFunction()};
+    $(document).scroll(function () {
+      if ($(document).scrollTop() > 40) {
+        $('#top-navbar').removeClass('initial-navbar');
+        $('#top-navbar').addClass('final-navbar shadow');
+
+        $('#navbar-toggler').removeClass('navbar-dark');
+        $('#navbar-toggler').addClass('navbar-light');
+      } else {
+        $('#top-navbar').removeClass('final-navbar shadow');
+        $('#top-navbar').addClass('initial-navbar');
+
+        $('#navbar-toggler').removeClass('navbar-light');
+        $('#navbar-toggler').addClass('navbar-dark');
+      }
+    });
+  });
+
+})(jQuery);

ファイルの差分が大きいため隠しています
+ 3 - 0
toha/static/js/popper.min.js


+ 2191 - 0
toha/static/js/shuffle.js

@@ -0,0 +1,2191 @@
+(function (global, factory) {
+  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+    typeof define === 'function' && define.amd ? define(factory) :
+      (global = global || self, global.Shuffle = factory());
+}(this, function () {
+  'use strict';
+
+  function _classCallCheck(instance, Constructor) {
+    if (!(instance instanceof Constructor)) {
+      throw new TypeError("Cannot call a class as a function");
+    }
+  }
+
+  function _defineProperties(target, props) {
+    for (var i = 0; i < props.length; i++) {
+      var descriptor = props[i];
+      descriptor.enumerable = descriptor.enumerable || false;
+      descriptor.configurable = true;
+      if ("value" in descriptor) descriptor.writable = true;
+      Object.defineProperty(target, descriptor.key, descriptor);
+    }
+  }
+
+  function _createClass(Constructor, protoProps, staticProps) {
+    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+    if (staticProps) _defineProperties(Constructor, staticProps);
+    return Constructor;
+  }
+
+  function _inherits(subClass, superClass) {
+    if (typeof superClass !== "function" && superClass !== null) {
+      throw new TypeError("Super expression must either be null or a function");
+    }
+
+    subClass.prototype = Object.create(superClass && superClass.prototype, {
+      constructor: {
+        value: subClass,
+        writable: true,
+        configurable: true
+      }
+    });
+    if (superClass) _setPrototypeOf(subClass, superClass);
+  }
+
+  function _getPrototypeOf(o) {
+    _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
+      return o.__proto__ || Object.getPrototypeOf(o);
+    };
+    return _getPrototypeOf(o);
+  }
+
+  function _setPrototypeOf(o, p) {
+    _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
+      o.__proto__ = p;
+      return o;
+    };
+
+    return _setPrototypeOf(o, p);
+  }
+
+  function _assertThisInitialized(self) {
+    if (self === void 0) {
+      throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+    }
+
+    return self;
+  }
+
+  function _possibleConstructorReturn(self, call) {
+    if (call && (typeof call === "object" || typeof call === "function")) {
+      return call;
+    }
+
+    return _assertThisInitialized(self);
+  }
+
+  function E() {
+    // Keep this empty so it's easier to inherit from
+    // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
+  }
+
+  E.prototype = {
+    on: function (name, callback, ctx) {
+      var e = this.e || (this.e = {});
+
+      (e[name] || (e[name] = [])).push({
+        fn: callback,
+        ctx: ctx
+      });
+
+      return this;
+    },
+
+    once: function (name, callback, ctx) {
+      var self = this;
+      function listener() {
+        self.off(name, listener);
+        callback.apply(ctx, arguments);
+      }
+      listener._ = callback;
+      return this.on(name, listener, ctx);
+    },
+
+    emit: function (name) {
+      var data = [].slice.call(arguments, 1);
+      var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
+      var i = 0;
+      var len = evtArr.length;
+
+      for (i; i < len; i++) {
+        evtArr[i].fn.apply(evtArr[i].ctx, data);
+      }
+
+      return this;
+    },
+
+    off: function (name, callback) {
+      var e = this.e || (this.e = {});
+      var evts = e[name];
+      var liveEvents = [];
+
+      if (evts && callback) {
+        for (var i = 0, len = evts.length; i < len; i++) {
+          if (evts[i].fn !== callback && evts[i].fn._ !== callback)
+            liveEvents.push(evts[i]);
+        }
+      }
+
+      // Remove event from queue to prevent memory leak
+      // Suggested by https://github.com/lazd
+      // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910
+
+      (liveEvents.length)
+        ? e[name] = liveEvents
+        : delete e[name];
+
+      return this;
+    }
+  };
+
+  var tinyEmitter = E;
+  var TinyEmitter = E;
+  tinyEmitter.TinyEmitter = TinyEmitter;
+
+  var proto = typeof Element !== 'undefined' ? Element.prototype : {};
+  var vendor = proto.matches
+    || proto.matchesSelector
+    || proto.webkitMatchesSelector
+    || proto.mozMatchesSelector
+    || proto.msMatchesSelector
+    || proto.oMatchesSelector;
+
+  var matchesSelector = match;
+
+  /**
+   * Match `el` to `selector`.
+   *
+   * @param {Element} el
+   * @param {String} selector
+   * @return {Boolean}
+   * @api public
+   */
+
+  function match(el, selector) {
+    if (!el || el.nodeType !== 1) return false;
+    if (vendor) return vendor.call(el, selector);
+    var nodes = el.parentNode.querySelectorAll(selector);
+    for (var i = 0; i < nodes.length; i++) {
+      if (nodes[i] == el) return true;
+    }
+    return false;
+  }
+
+  var throttleit = throttle;
+
+  /**
+   * Returns a new function that, when invoked, invokes `func` at most once per `wait` milliseconds.
+   *
+   * @param {Function} func Function to wrap.
+   * @param {Number} wait Number of milliseconds that must elapse between `func` invocations.
+   * @return {Function} A new function that wraps the `func` function passed in.
+   */
+
+  function throttle(func, wait) {
+    var ctx, args, rtn, timeoutID; // caching
+    var last = 0;
+
+    return function throttled() {
+      ctx = this;
+      args = arguments;
+      var delta = new Date() - last;
+      if (!timeoutID)
+        if (delta >= wait) call();
+        else timeoutID = setTimeout(call, wait - delta);
+      return rtn;
+    };
+
+    function call() {
+      timeoutID = 0;
+      last = +new Date();
+      rtn = func.apply(ctx, args);
+      ctx = null;
+      args = null;
+    }
+  }
+
+  var arrayParallel = function parallel(fns, context, callback) {
+    if (!callback) {
+      if (typeof context === 'function') {
+        callback = context;
+        context = null;
+      } else {
+        callback = noop;
+      }
+    }
+
+    var pending = fns && fns.length;
+    if (!pending) return callback(null, []);
+
+    var finished = false;
+    var results = new Array(pending);
+
+    fns.forEach(context ? function (fn, i) {
+      fn.call(context, maybeDone(i));
+    } : function (fn, i) {
+      fn(maybeDone(i));
+    });
+
+    function maybeDone(i) {
+      return function (err, result) {
+        if (finished) return;
+
+        if (err) {
+          callback(err, results);
+          finished = true;
+          return
+        }
+
+        results[i] = result;
+
+        if (!--pending) callback(null, results);
+      }
+    }
+  };
+
+  function noop() { }
+
+  /**
+   * Always returns a numeric value, given a value. Logic from jQuery's `isNumeric`.
+   * @param {*} value Possibly numeric value.
+   * @return {number} `value` or zero if `value` isn't numeric.
+   */
+  function getNumber(value) {
+    return parseFloat(value) || 0;
+  }
+
+  var Point =
+    /*#__PURE__*/
+    function () {
+      /**
+       * Represents a coordinate pair.
+       * @param {number} [x=0] X.
+       * @param {number} [y=0] Y.
+       */
+      function Point(x, y) {
+        _classCallCheck(this, Point);
+
+        this.x = getNumber(x);
+        this.y = getNumber(y);
+      }
+      /**
+       * Whether two points are equal.
+       * @param {Point} a Point A.
+       * @param {Point} b Point B.
+       * @return {boolean}
+       */
+
+
+      _createClass(Point, null, [{
+        key: "equals",
+        value: function equals(a, b) {
+          return a.x === b.x && a.y === b.y;
+        }
+      }]);
+
+      return Point;
+    }();
+
+  var Rect =
+    /*#__PURE__*/
+    function () {
+      /**
+       * Class for representing rectangular regions.
+       * https://github.com/google/closure-library/blob/master/closure/goog/math/rect.js
+       * @param {number} x Left.
+       * @param {number} y Top.
+       * @param {number} w Width.
+       * @param {number} h Height.
+       * @param {number} id Identifier
+       * @constructor
+       */
+      function Rect(x, y, w, h, id) {
+        _classCallCheck(this, Rect);
+
+        this.id = id;
+        /** @type {number} */
+
+        this.left = x;
+        /** @type {number} */
+
+        this.top = y;
+        /** @type {number} */
+
+        this.width = w;
+        /** @type {number} */
+
+        this.height = h;
+      }
+      /**
+       * Returns whether two rectangles intersect.
+       * @param {Rect} a A Rectangle.
+       * @param {Rect} b A Rectangle.
+       * @return {boolean} Whether a and b intersect.
+       */
+
+
+      _createClass(Rect, null, [{
+        key: "intersects",
+        value: function intersects(a, b) {
+          return a.left < b.left + b.width && b.left < a.left + a.width && a.top < b.top + b.height && b.top < a.top + a.height;
+        }
+      }]);
+
+      return Rect;
+    }();
+
+  var Classes = {
+    BASE: 'shuffle',
+    SHUFFLE_ITEM: 'shuffle-item',
+    VISIBLE: 'shuffle-item--visible',
+    HIDDEN: 'shuffle-item--hidden'
+  };
+
+  var id = 0;
+
+  var ShuffleItem =
+    /*#__PURE__*/
+    function () {
+      function ShuffleItem(element) {
+        _classCallCheck(this, ShuffleItem);
+
+        id += 1;
+        this.id = id;
+        this.element = element;
+        /**
+         * Used to separate items for layout and shrink.
+         */
+
+        this.isVisible = true;
+        /**
+         * Used to determine if a transition will happen. By the time the _layout
+         * and _shrink methods get the ShuffleItem instances, the `isVisible` value
+         * has already been changed by the separation methods, so this property is
+         * needed to know if the item was visible/hidden before the shrink/layout.
+         */
+
+        this.isHidden = false;
+      }
+
+      _createClass(ShuffleItem, [{
+        key: "show",
+        value: function show() {
+          this.isVisible = true;
+          this.element.classList.remove(Classes.HIDDEN);
+          this.element.classList.add(Classes.VISIBLE);
+          this.element.removeAttribute('aria-hidden');
+        }
+      }, {
+        key: "hide",
+        value: function hide() {
+          this.isVisible = false;
+          this.element.classList.remove(Classes.VISIBLE);
+          this.element.classList.add(Classes.HIDDEN);
+          this.element.setAttribute('aria-hidden', true);
+        }
+      }, {
+        key: "init",
+        value: function init() {
+          this.addClasses([Classes.SHUFFLE_ITEM, Classes.VISIBLE]);
+          this.applyCss(ShuffleItem.Css.INITIAL);
+          this.scale = ShuffleItem.Scale.VISIBLE;
+          this.point = new Point();
+        }
+      }, {
+        key: "addClasses",
+        value: function addClasses(classes) {
+          var _this = this;
+
+          classes.forEach(function (className) {
+            _this.element.classList.add(className);
+          });
+        }
+      }, {
+        key: "removeClasses",
+        value: function removeClasses(classes) {
+          var _this2 = this;
+
+          classes.forEach(function (className) {
+            _this2.element.classList.remove(className);
+          });
+        }
+      }, {
+        key: "applyCss",
+        value: function applyCss(obj) {
+          var _this3 = this;
+
+          Object.keys(obj).forEach(function (key) {
+            _this3.element.style[key] = obj[key];
+          });
+        }
+      }, {
+        key: "dispose",
+        value: function dispose() {
+          this.removeClasses([Classes.HIDDEN, Classes.VISIBLE, Classes.SHUFFLE_ITEM]);
+          this.element.removeAttribute('style');
+          this.element = null;
+        }
+      }]);
+
+      return ShuffleItem;
+    }();
+
+  ShuffleItem.Css = {
+    INITIAL: {
+      position: 'absolute',
+      top: 0,
+      left: 0,
+      visibility: 'visible',
+      willChange: 'transform'
+    },
+    VISIBLE: {
+      before: {
+        opacity: 1,
+        visibility: 'visible'
+      },
+      after: {
+        transitionDelay: ''
+      }
+    },
+    HIDDEN: {
+      before: {
+        opacity: 0
+      },
+      after: {
+        visibility: 'hidden',
+        transitionDelay: ''
+      }
+    }
+  };
+  ShuffleItem.Scale = {
+    VISIBLE: 1,
+    HIDDEN: 0.001
+  };
+
+  var value = null;
+  var testComputedSize = (function () {
+    if (value !== null) {
+      return value;
+    }
+
+    var element = document.body || document.documentElement;
+    var e = document.createElement('div');
+    e.style.cssText = 'width:10px;padding:2px;box-sizing:border-box;';
+    element.appendChild(e);
+    value = window.getComputedStyle(e, null).width === '10px';
+    element.removeChild(e);
+    return value;
+  });
+
+  /**
+   * Retrieve the computed style for an element, parsed as a float.
+   * @param {Element} element Element to get style for.
+   * @param {string} style Style property.
+   * @param {CSSStyleDeclaration} [styles] Optionally include clean styles to
+   *     use instead of asking for them again.
+   * @return {number} The parsed computed value or zero if that fails because IE
+   *     will return 'auto' when the element doesn't have margins instead of
+   *     the computed style.
+   */
+
+  function getNumberStyle(element, style) {
+    var styles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window.getComputedStyle(element, null);
+    var value = getNumber(styles[style]); // Support IE<=11 and W3C spec.
+
+    if (!testComputedSize() && style === 'width') {
+      value += getNumber(styles.paddingLeft) + getNumber(styles.paddingRight) + getNumber(styles.borderLeftWidth) + getNumber(styles.borderRightWidth);
+    } else if (!testComputedSize() && style === 'height') {
+      value += getNumber(styles.paddingTop) + getNumber(styles.paddingBottom) + getNumber(styles.borderTopWidth) + getNumber(styles.borderBottomWidth);
+    }
+
+    return value;
+  }
+
+  /**
+   * Fisher-Yates shuffle.
+   * http://stackoverflow.com/a/962890/373422
+   * https://bost.ocks.org/mike/shuffle/
+   * @param {Array} array Array to shuffle.
+   * @return {Array} Randomly sorted array.
+   */
+  function randomize(array) {
+    var n = array.length;
+
+    while (n) {
+      n -= 1;
+      var i = Math.floor(Math.random() * (n + 1));
+      var temp = array[i];
+      array[i] = array[n];
+      array[n] = temp;
+    }
+
+    return array;
+  }
+
+  var defaults = {
+    // Use array.reverse() to reverse the results
+    reverse: false,
+    // Sorting function
+    by: null,
+    // Custom sort function
+    compare: null,
+    // If true, this will skip the sorting and return a randomized order in the array
+    randomize: false,
+    // Determines which property of each item in the array is passed to the
+    // sorting method.
+    key: 'element'
+  };
+  /**
+   * You can return `undefined` from the `by` function to revert to DOM order.
+   * @param {Array<T>} arr Array to sort.
+   * @param {SortOptions} options Sorting options.
+   * @return {Array<T>}
+   */
+
+  function sorter(arr, options) {
+    var opts = Object.assign({}, defaults, options);
+    var original = Array.from(arr);
+    var revert = false;
+
+    if (!arr.length) {
+      return [];
+    }
+
+    if (opts.randomize) {
+      return randomize(arr);
+    } // Sort the elements by the opts.by function.
+    // If we don't have opts.by, default to DOM order
+
+
+    if (typeof opts.by === 'function') {
+      arr.sort(function (a, b) {
+        // Exit early if we already know we want to revert
+        if (revert) {
+          return 0;
+        }
+
+        var valA = opts.by(a[opts.key]);
+        var valB = opts.by(b[opts.key]); // If both values are undefined, use the DOM order
+
+        if (valA === undefined && valB === undefined) {
+          revert = true;
+          return 0;
+        }
+
+        if (valA < valB || valA === 'sortFirst' || valB === 'sortLast') {
+          return -1;
+        }
+
+        if (valA > valB || valA === 'sortLast' || valB === 'sortFirst') {
+          return 1;
+        }
+
+        return 0;
+      });
+    } else if (typeof opts.compare === 'function') {
+      arr.sort(opts.compare);
+    } // Revert to the original array if necessary
+
+
+    if (revert) {
+      return original;
+    }
+
+    if (opts.reverse) {
+      arr.reverse();
+    }
+
+    return arr;
+  }
+
+  var transitions = {};
+  var eventName = 'transitionend';
+  var count = 0;
+
+  function uniqueId() {
+    count += 1;
+    return eventName + count;
+  }
+
+  function cancelTransitionEnd(id) {
+    if (transitions[id]) {
+      transitions[id].element.removeEventListener(eventName, transitions[id].listener);
+      transitions[id] = null;
+      return true;
+    }
+
+    return false;
+  }
+  function onTransitionEnd(element, callback) {
+    var id = uniqueId();
+
+    var listener = function listener(evt) {
+      if (evt.currentTarget === evt.target) {
+        cancelTransitionEnd(id);
+        callback(evt);
+      }
+    };
+
+    element.addEventListener(eventName, listener);
+    transitions[id] = {
+      element: element,
+      listener: listener
+    };
+    return id;
+  }
+
+  function arrayMax(array) {
+    return Math.max.apply(Math, array); // eslint-disable-line prefer-spread
+  }
+
+  function arrayMin(array) {
+    return Math.min.apply(Math, array); // eslint-disable-line prefer-spread
+  }
+
+  /**
+   * Determine the number of columns an items spans.
+   * @param {number} itemWidth Width of the item.
+   * @param {number} columnWidth Width of the column (includes gutter).
+   * @param {number} columns Total number of columns
+   * @param {number} threshold A buffer value for the size of the column to fit.
+   * @return {number}
+   */
+
+  function getColumnSpan(itemWidth, columnWidth, columns, threshold) {
+    var columnSpan = itemWidth / columnWidth; // If the difference between the rounded column span number and the
+    // calculated column span number is really small, round the number to
+    // make it fit.
+
+    if (Math.abs(Math.round(columnSpan) - columnSpan) < threshold) {
+      // e.g. columnSpan = 4.0089945390298745
+      columnSpan = Math.round(columnSpan);
+    } // Ensure the column span is not more than the amount of columns in the whole layout.
+
+
+    return Math.min(Math.ceil(columnSpan), columns);
+  }
+  /**
+   * Retrieves the column set to use for placement.
+   * @param {number} columnSpan The number of columns this current item spans.
+   * @param {number} columns The total columns in the grid.
+   * @return {Array.<number>} An array of numbers represeting the column set.
+   */
+
+  function getAvailablePositions(positions, columnSpan, columns) {
+    // The item spans only one column.
+    if (columnSpan === 1) {
+      return positions;
+    } // The item spans more than one column, figure out how many different
+    // places it could fit horizontally.
+    // The group count is the number of places within the positions this block
+    // could fit, ignoring the current positions of items.
+    // Imagine a 2 column brick as the second item in a 4 column grid with
+    // 10px height each. Find the places it would fit:
+    // [20, 10, 10, 0]
+    //  |   |   |
+    //  *   *   *
+    //
+    // Then take the places which fit and get the bigger of the two:
+    // max([20, 10]), max([10, 10]), max([10, 0]) = [20, 10, 10]
+    //
+    // Next, find the first smallest number (the short column).
+    // [20, 10, 10]
+    //      |
+    //      *
+    //
+    // And that's where it should be placed!
+    //
+    // Another example where the second column's item extends past the first:
+    // [10, 20, 10, 0] => [20, 20, 10] => 10
+
+
+    var available = []; // For how many possible positions for this item there are.
+
+    for (var i = 0; i <= columns - columnSpan; i++) {
+      // Find the bigger value for each place it could fit.
+      available.push(arrayMax(positions.slice(i, i + columnSpan)));
+    }
+
+    return available;
+  }
+  /**
+   * Find index of short column, the first from the left where this item will go.
+   *
+   * @param {Array.<number>} positions The array to search for the smallest number.
+   * @param {number} buffer Optional buffer which is very useful when the height
+   *     is a percentage of the width.
+   * @return {number} Index of the short column.
+   */
+
+  function getShortColumn(positions, buffer) {
+    var minPosition = arrayMin(positions);
+
+    for (var i = 0, len = positions.length; i < len; i++) {
+      if (positions[i] >= minPosition - buffer && positions[i] <= minPosition + buffer) {
+        return i;
+      }
+    }
+
+    return 0;
+  }
+  /**
+   * Determine the location of the next item, based on its size.
+   * @param {Object} itemSize Object with width and height.
+   * @param {Array.<number>} positions Positions of the other current items.
+   * @param {number} gridSize The column width or row height.
+   * @param {number} total The total number of columns or rows.
+   * @param {number} threshold Buffer value for the column to fit.
+   * @param {number} buffer Vertical buffer for the height of items.
+   * @return {Point}
+   */
+
+  function getItemPosition(_ref) {
+    var itemSize = _ref.itemSize,
+      positions = _ref.positions,
+      gridSize = _ref.gridSize,
+      total = _ref.total,
+      threshold = _ref.threshold,
+      buffer = _ref.buffer;
+    var span = getColumnSpan(itemSize.width, gridSize, total, threshold);
+    var setY = getAvailablePositions(positions, span, total);
+    var shortColumnIndex = getShortColumn(setY, buffer); // Position the item
+
+    var point = new Point(gridSize * shortColumnIndex, setY[shortColumnIndex]); // Update the columns array with the new values for each column.
+    // e.g. before the update the columns could be [250, 0, 0, 0] for an item
+    // which spans 2 columns. After it would be [250, itemHeight, itemHeight, 0].
+
+    var setHeight = setY[shortColumnIndex] + itemSize.height;
+
+    for (var i = 0; i < span; i++) {
+      positions[shortColumnIndex + i] = setHeight;
+    }
+
+    return point;
+  }
+  /**
+   * This method attempts to center items. This method could potentially be slow
+   * with a large number of items because it must place items, then check every
+   * previous item to ensure there is no overlap.
+   * @param {Array.<Rect>} itemRects Item data objects.
+   * @param {number} containerWidth Width of the containing element.
+   * @return {Array.<Point>}
+   */
+
+  function getCenteredPositions(itemRects, containerWidth) {
+    var rowMap = {}; // Populate rows by their offset because items could jump between rows like:
+    // a   c
+    //  bbb
+
+    itemRects.forEach(function (itemRect) {
+      if (rowMap[itemRect.top]) {
+        // Push the point to the last row array.
+        rowMap[itemRect.top].push(itemRect);
+      } else {
+        // Start of a new row.
+        rowMap[itemRect.top] = [itemRect];
+      }
+    }); // For each row, find the end of the last item, then calculate
+    // the remaining space by dividing it by 2. Then add that
+    // offset to the x position of each point.
+
+    var rects = [];
+    var rows = [];
+    var centeredRows = [];
+    Object.keys(rowMap).forEach(function (key) {
+      var itemRects = rowMap[key];
+      rows.push(itemRects);
+      var lastItem = itemRects[itemRects.length - 1];
+      var end = lastItem.left + lastItem.width;
+      var offset = Math.round((containerWidth - end) / 2);
+      var finalRects = itemRects;
+      var canMove = false;
+
+      if (offset > 0) {
+        var newRects = [];
+        canMove = itemRects.every(function (r) {
+          var newRect = new Rect(r.left + offset, r.top, r.width, r.height, r.id); // Check all current rects to make sure none overlap.
+
+          var noOverlap = !rects.some(function (r) {
+            return Rect.intersects(newRect, r);
+          });
+          newRects.push(newRect);
+          return noOverlap;
+        }); // If none of the rectangles overlapped, the whole group can be centered.
+
+        if (canMove) {
+          finalRects = newRects;
+        }
+      } // If the items are not going to be offset, ensure that the original
+      // placement for this row will not overlap previous rows (row-spanning
+      // elements could be in the way).
+
+
+      if (!canMove) {
+        var intersectingRect;
+        var hasOverlap = itemRects.some(function (itemRect) {
+          return rects.some(function (r) {
+            var intersects = Rect.intersects(itemRect, r);
+
+            if (intersects) {
+              intersectingRect = r;
+            }
+
+            return intersects;
+          });
+        }); // If there is any overlap, replace the overlapping row with the original.
+
+        if (hasOverlap) {
+          var rowIndex = centeredRows.findIndex(function (items) {
+            return items.includes(intersectingRect);
+          });
+          centeredRows.splice(rowIndex, 1, rows[rowIndex]);
+        }
+      }
+
+      rects = rects.concat(finalRects);
+      centeredRows.push(finalRects);
+    }); // Reduce array of arrays to a single array of points.
+    // https://stackoverflow.com/a/10865042/373422
+    // Then reset sort back to how the items were passed to this method.
+    // Remove the wrapper object with index, map to a Point.
+
+    return [].concat.apply([], centeredRows) // eslint-disable-line prefer-spread
+      .sort(function (a, b) {
+        return a.id - b.id;
+      }).map(function (itemRect) {
+        return new Point(itemRect.left, itemRect.top);
+      });
+  }
+
+  /**
+   * Hyphenates a javascript style string to a css one. For example:
+   * MozBoxSizing -> -moz-box-sizing.
+   * @param {string} str The string to hyphenate.
+   * @return {string} The hyphenated string.
+   */
+  function hyphenate(str) {
+    return str.replace(/([A-Z])/g, function (str, m1) {
+      return "-".concat(m1.toLowerCase());
+    });
+  }
+
+  function arrayUnique(x) {
+    return Array.from(new Set(x));
+  } // Used for unique instance variables
+
+
+  var id$1 = 0;
+
+  var Shuffle =
+    /*#__PURE__*/
+    function (_TinyEmitter) {
+      _inherits(Shuffle, _TinyEmitter);
+
+      /**
+       * Categorize, sort, and filter a responsive grid of items.
+       *
+       * @param {Element} element An element which is the parent container for the grid items.
+       * @param {Object} [options=Shuffle.options] Options object.
+       * @constructor
+       */
+      function Shuffle(element) {
+        var _this;
+
+        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+        _classCallCheck(this, Shuffle);
+
+        _this = _possibleConstructorReturn(this, _getPrototypeOf(Shuffle).call(this));
+        _this.options = Object.assign({}, Shuffle.options, options); // Allow misspelling of delimiter since that's how it used to be.
+        // Remove in v6.
+
+        if (_this.options.delimeter) {
+          _this.options.delimiter = _this.options.delimeter;
+        }
+
+        _this.lastSort = {};
+        _this.group = Shuffle.ALL_ITEMS;
+        _this.lastFilter = Shuffle.ALL_ITEMS;
+        _this.isEnabled = true;
+        _this.isDestroyed = false;
+        _this.isInitialized = false;
+        _this._transitions = [];
+        _this.isTransitioning = false;
+        _this._queue = [];
+
+        var el = _this._getElementOption(element);
+
+        if (!el) {
+          throw new TypeError('Shuffle needs to be initialized with an element.');
+        }
+
+        _this.element = el;
+        _this.id = 'shuffle_' + id$1;
+        id$1 += 1;
+
+        _this._init();
+
+        _this.isInitialized = true;
+        return _this;
+      }
+
+      _createClass(Shuffle, [{
+        key: "_init",
+        value: function _init() {
+          this.items = this._getItems();
+          this.options.sizer = this._getElementOption(this.options.sizer); // Add class and invalidate styles
+
+          this.element.classList.add(Shuffle.Classes.BASE); // Set initial css for each item
+
+          this._initItems(this.items); // Bind resize events
+
+
+          this._onResize = this._getResizeFunction();
+          window.addEventListener('resize', this._onResize); // If the page has not already emitted the `load` event, call layout on load.
+          // This avoids layout issues caused by images and fonts loading after the
+          // instance has been initialized.
+
+          if (document.readyState !== 'complete') {
+            var layout = this.layout.bind(this);
+            window.addEventListener('load', function onLoad() {
+              window.removeEventListener('load', onLoad);
+              layout();
+            });
+          } // Get container css all in one request. Causes reflow
+
+
+          var containerCss = window.getComputedStyle(this.element, null);
+          var containerWidth = Shuffle.getSize(this.element).width; // Add styles to the container if it doesn't have them.
+
+          this._validateStyles(containerCss); // We already got the container's width above, no need to cause another
+          // reflow getting it again... Calculate the number of columns there will be
+
+
+          this._setColumns(containerWidth); // Kick off!
+
+
+          this.filter(this.options.group, this.options.initialSort); // The shuffle items haven't had transitions set on them yet so the user
+          // doesn't see the first layout. Set them now that the first layout is done.
+          // First, however, a synchronous layout must be caused for the previous
+          // styles to be applied without transitions.
+
+          this.element.offsetWidth; // eslint-disable-line no-unused-expressions
+
+          this.setItemTransitions(this.items);
+          this.element.style.transition = "height ".concat(this.options.speed, "ms ").concat(this.options.easing);
+        }
+        /**
+         * Returns a throttled and proxied function for the resize handler.
+         * @return {function}
+         * @private
+         */
+
+      }, {
+        key: "_getResizeFunction",
+        value: function _getResizeFunction() {
+          var resizeFunction = this._handleResize.bind(this);
+
+          return this.options.throttle ? this.options.throttle(resizeFunction, this.options.throttleTime) : resizeFunction;
+        }
+        /**
+         * Retrieve an element from an option.
+         * @param {string|jQuery|Element} option The option to check.
+         * @return {?Element} The plain element or null.
+         * @private
+         */
+
+      }, {
+        key: "_getElementOption",
+        value: function _getElementOption(option) {
+          // If column width is a string, treat is as a selector and search for the
+          // sizer element within the outermost container
+          if (typeof option === 'string') {
+            return this.element.querySelector(option);
+          } // Check for an element
+
+
+          if (option && option.nodeType && option.nodeType === 1) {
+            return option;
+          } // Check for jQuery object
+
+
+          if (option && option.jquery) {
+            return option[0];
+          }
+
+          return null;
+        }
+        /**
+         * Ensures the shuffle container has the css styles it needs applied to it.
+         * @param {Object} styles Key value pairs for position and overflow.
+         * @private
+         */
+
+      }, {
+        key: "_validateStyles",
+        value: function _validateStyles(styles) {
+          // Position cannot be static.
+          if (styles.position === 'static') {
+            this.element.style.position = 'relative';
+          } // Overflow has to be hidden.
+
+
+          if (styles.overflow !== 'hidden') {
+            this.element.style.overflow = 'hidden';
+          }
+        }
+        /**
+         * Filter the elements by a category.
+         * @param {string|string[]|function(Element):boolean} [category] Category to
+         *     filter by. If it's given, the last category will be used to filter the items.
+         * @param {Array} [collection] Optionally filter a collection. Defaults to
+         *     all the items.
+         * @return {{visible: ShuffleItem[], hidden: ShuffleItem[]}}
+         * @private
+         */
+
+      }, {
+        key: "_filter",
+        value: function _filter() {
+          var category = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.lastFilter;
+          var collection = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.items;
+
+          var set = this._getFilteredSets(category, collection); // Individually add/remove hidden/visible classes
+
+
+          this._toggleFilterClasses(set); // Save the last filter in case elements are appended.
+
+
+          this.lastFilter = category; // This is saved mainly because providing a filter function (like searching)
+          // will overwrite the `lastFilter` property every time its called.
+
+          if (typeof category === 'string') {
+            this.group = category;
+          }
+
+          return set;
+        }
+        /**
+         * Returns an object containing the visible and hidden elements.
+         * @param {string|string[]|function(Element):boolean} category Category or function to filter by.
+         * @param {ShuffleItem[]} items A collection of items to filter.
+         * @return {{visible: ShuffleItem[], hidden: ShuffleItem[]}}
+         * @private
+         */
+
+      }, {
+        key: "_getFilteredSets",
+        value: function _getFilteredSets(category, items) {
+          var _this2 = this;
+
+          var visible = [];
+          var hidden = []; // category === 'all', add visible class to everything
+
+          if (category === Shuffle.ALL_ITEMS) {
+            visible = items; // Loop through each item and use provided function to determine
+            // whether to hide it or not.
+          } else {
+            items.forEach(function (item) {
+              if (_this2._doesPassFilter(category, item.element)) {
+                visible.push(item);
+              } else {
+                hidden.push(item);
+              }
+            });
+          }
+
+          return {
+            visible: visible,
+            hidden: hidden
+          };
+        }
+        /**
+         * Test an item to see if it passes a category.
+         * @param {string|string[]|function():boolean} category Category or function to filter by.
+         * @param {Element} element An element to test.
+         * @return {boolean} Whether it passes the category/filter.
+         * @private
+         */
+
+      }, {
+        key: "_doesPassFilter",
+        value: function _doesPassFilter(category, element) {
+          if (typeof category === 'function') {
+            return category.call(element, element, this);
+          } // Check each element's data-groups attribute against the given category.
+
+
+          var attr = element.getAttribute('data-' + Shuffle.FILTER_ATTRIBUTE_KEY);
+          var keys = this.options.delimiter ? attr.split(this.options.delimiter) : JSON.parse(attr);
+
+          function testCategory(category) {
+            return keys.includes(category);
+          }
+
+          if (Array.isArray(category)) {
+            if (this.options.filterMode === Shuffle.FilterMode.ANY) {
+              return category.some(testCategory);
+            }
+
+            return category.every(testCategory);
+          }
+
+          return keys.includes(category);
+        }
+        /**
+         * Toggles the visible and hidden class names.
+         * @param {{visible, hidden}} Object with visible and hidden arrays.
+         * @private
+         */
+
+      }, {
+        key: "_toggleFilterClasses",
+        value: function _toggleFilterClasses(_ref) {
+          var visible = _ref.visible,
+            hidden = _ref.hidden;
+          visible.forEach(function (item) {
+            item.show();
+          });
+          hidden.forEach(function (item) {
+            item.hide();
+          });
+        }
+        /**
+         * Set the initial css for each item
+         * @param {ShuffleItem[]} items Set to initialize.
+         * @private
+         */
+
+      }, {
+        key: "_initItems",
+        value: function _initItems(items) {
+          items.forEach(function (item) {
+            item.init();
+          });
+        }
+        /**
+         * Remove element reference and styles.
+         * @param {ShuffleItem[]} items Set to dispose.
+         * @private
+         */
+
+      }, {
+        key: "_disposeItems",
+        value: function _disposeItems(items) {
+          items.forEach(function (item) {
+            item.dispose();
+          });
+        }
+        /**
+         * Updates the visible item count.
+         * @private
+         */
+
+      }, {
+        key: "_updateItemCount",
+        value: function _updateItemCount() {
+          this.visibleItems = this._getFilteredItems().length;
+        }
+        /**
+         * Sets css transform transition on a group of elements. This is not executed
+         * at the same time as `item.init` so that transitions don't occur upon
+         * initialization of a new Shuffle instance.
+         * @param {ShuffleItem[]} items Shuffle items to set transitions on.
+         * @protected
+         */
+
+      }, {
+        key: "setItemTransitions",
+        value: function setItemTransitions(items) {
+          var _this$options = this.options,
+            speed = _this$options.speed,
+            easing = _this$options.easing;
+          var positionProps = this.options.useTransforms ? ['transform'] : ['top', 'left']; // Allow users to transtion other properties if they exist in the `before`
+          // css mapping of the shuffle item.
+
+          var cssProps = Object.keys(ShuffleItem.Css.HIDDEN.before).map(function (k) {
+            return hyphenate(k);
+          });
+          var properties = positionProps.concat(cssProps).join();
+          items.forEach(function (item) {
+            item.element.style.transitionDuration = speed + 'ms';
+            item.element.style.transitionTimingFunction = easing;
+            item.element.style.transitionProperty = properties;
+          });
+        }
+      }, {
+        key: "_getItems",
+        value: function _getItems() {
+          var _this3 = this;
+
+          return Array.from(this.element.children).filter(function (el) {
+            return matchesSelector(el, _this3.options.itemSelector);
+          }).map(function (el) {
+            return new ShuffleItem(el);
+          });
+        }
+        /**
+         * Combine the current items array with a new one and sort it by DOM order.
+         * @param {ShuffleItem[]} items Items to track.
+         * @return {ShuffleItem[]}
+         */
+
+      }, {
+        key: "_mergeNewItems",
+        value: function _mergeNewItems(items) {
+          var children = Array.from(this.element.children);
+          return sorter(this.items.concat(items), {
+            by: function by(element) {
+              return children.indexOf(element);
+            }
+          });
+        }
+      }, {
+        key: "_getFilteredItems",
+        value: function _getFilteredItems() {
+          return this.items.filter(function (item) {
+            return item.isVisible;
+          });
+        }
+      }, {
+        key: "_getConcealedItems",
+        value: function _getConcealedItems() {
+          return this.items.filter(function (item) {
+            return !item.isVisible;
+          });
+        }
+        /**
+         * Returns the column size, based on column width and sizer options.
+         * @param {number} containerWidth Size of the parent container.
+         * @param {number} gutterSize Size of the gutters.
+         * @return {number}
+         * @private
+         */
+
+      }, {
+        key: "_getColumnSize",
+        value: function _getColumnSize(containerWidth, gutterSize) {
+          var size; // If the columnWidth property is a function, then the grid is fluid
+
+          if (typeof this.options.columnWidth === 'function') {
+            size = this.options.columnWidth(containerWidth); // columnWidth option isn't a function, are they using a sizing element?
+          } else if (this.options.sizer) {
+            size = Shuffle.getSize(this.options.sizer).width; // if not, how about the explicitly set option?
+          } else if (this.options.columnWidth) {
+            size = this.options.columnWidth; // or use the size of the first item
+          } else if (this.items.length > 0) {
+            size = Shuffle.getSize(this.items[0].element, true).width; // if there's no items, use size of container
+          } else {
+            size = containerWidth;
+          } // Don't let them set a column width of zero.
+
+
+          if (size === 0) {
+            size = containerWidth;
+          }
+
+          return size + gutterSize;
+        }
+        /**
+         * Returns the gutter size, based on gutter width and sizer options.
+         * @param {number} containerWidth Size of the parent container.
+         * @return {number}
+         * @private
+         */
+
+      }, {
+        key: "_getGutterSize",
+        value: function _getGutterSize(containerWidth) {
+          var size;
+
+          if (typeof this.options.gutterWidth === 'function') {
+            size = this.options.gutterWidth(containerWidth);
+          } else if (this.options.sizer) {
+            size = getNumberStyle(this.options.sizer, 'marginLeft');
+          } else {
+            size = this.options.gutterWidth;
+          }
+
+          return size;
+        }
+        /**
+         * Calculate the number of columns to be used. Gets css if using sizer element.
+         * @param {number} [containerWidth] Optionally specify a container width if
+         *    it's already available.
+         */
+
+      }, {
+        key: "_setColumns",
+        value: function _setColumns() {
+          var containerWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Shuffle.getSize(this.element).width;
+
+          var gutter = this._getGutterSize(containerWidth);
+
+          var columnWidth = this._getColumnSize(containerWidth, gutter);
+
+          var calculatedColumns = (containerWidth + gutter) / columnWidth; // Widths given from getStyles are not precise enough...
+
+          if (Math.abs(Math.round(calculatedColumns) - calculatedColumns) < this.options.columnThreshold) {
+            // e.g. calculatedColumns = 11.998876
+            calculatedColumns = Math.round(calculatedColumns);
+          }
+
+          this.cols = Math.max(Math.floor(calculatedColumns || 0), 1);
+          this.containerWidth = containerWidth;
+          this.colWidth = columnWidth;
+        }
+        /**
+         * Adjust the height of the grid
+         */
+
+      }, {
+        key: "_setContainerSize",
+        value: function _setContainerSize() {
+          this.element.style.height = this._getContainerSize() + 'px';
+        }
+        /**
+         * Based on the column heights, it returns the biggest one.
+         * @return {number}
+         * @private
+         */
+
+      }, {
+        key: "_getContainerSize",
+        value: function _getContainerSize() {
+          return arrayMax(this.positions);
+        }
+        /**
+         * Get the clamped stagger amount.
+         * @param {number} index Index of the item to be staggered.
+         * @return {number}
+         */
+
+      }, {
+        key: "_getStaggerAmount",
+        value: function _getStaggerAmount(index) {
+          return Math.min(index * this.options.staggerAmount, this.options.staggerAmountMax);
+        }
+        /**
+         * Emit an event from this instance.
+         * @param {string} name Event name.
+         * @param {Object} [data={}] Optional object data.
+         */
+
+      }, {
+        key: "_dispatch",
+        value: function _dispatch(name) {
+          var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+
+          if (this.isDestroyed) {
+            return;
+          }
+
+          data.shuffle = this;
+          this.emit(name, data);
+        }
+        /**
+         * Zeros out the y columns array, which is used to determine item placement.
+         * @private
+         */
+
+      }, {
+        key: "_resetCols",
+        value: function _resetCols() {
+          var i = this.cols;
+          this.positions = [];
+
+          while (i) {
+            i -= 1;
+            this.positions.push(0);
+          }
+        }
+        /**
+         * Loops through each item that should be shown and calculates the x, y position.
+         * @param {ShuffleItem[]} items Array of items that will be shown/layed
+         *     out in order in their array.
+         */
+
+      }, {
+        key: "_layout",
+        value: function _layout(items) {
+          var _this4 = this;
+
+          var itemPositions = this._getNextPositions(items);
+
+          var count = 0;
+          items.forEach(function (item, i) {
+            function callback() {
+              item.applyCss(ShuffleItem.Css.VISIBLE.after);
+            } // If the item will not change its position, do not add it to the render
+            // queue. Transitions don't fire when setting a property to the same value.
+
+
+            if (Point.equals(item.point, itemPositions[i]) && !item.isHidden) {
+              item.applyCss(ShuffleItem.Css.VISIBLE.before);
+              callback();
+              return;
+            }
+
+            item.point = itemPositions[i];
+            item.scale = ShuffleItem.Scale.VISIBLE;
+            item.isHidden = false; // Clone the object so that the `before` object isn't modified when the
+            // transition delay is added.
+
+            var styles = _this4.getStylesForTransition(item, ShuffleItem.Css.VISIBLE.before);
+
+            styles.transitionDelay = _this4._getStaggerAmount(count) + 'ms';
+
+            _this4._queue.push({
+              item: item,
+              styles: styles,
+              callback: callback
+            });
+
+            count += 1;
+          });
+        }
+        /**
+         * Return an array of Point instances representing the future positions of
+         * each item.
+         * @param {ShuffleItem[]} items Array of sorted shuffle items.
+         * @return {Point[]}
+         * @private
+         */
+
+      }, {
+        key: "_getNextPositions",
+        value: function _getNextPositions(items) {
+          var _this5 = this;
+
+          // If position data is going to be changed, add the item's size to the
+          // transformer to allow for calculations.
+          if (this.options.isCentered) {
+            var itemsData = items.map(function (item, i) {
+              var itemSize = Shuffle.getSize(item.element, true);
+
+              var point = _this5._getItemPosition(itemSize);
+
+              return new Rect(point.x, point.y, itemSize.width, itemSize.height, i);
+            });
+            return this.getTransformedPositions(itemsData, this.containerWidth);
+          } // If no transforms are going to happen, simply return an array of the
+          // future points of each item.
+
+
+          return items.map(function (item) {
+            return _this5._getItemPosition(Shuffle.getSize(item.element, true));
+          });
+        }
+        /**
+         * Determine the location of the next item, based on its size.
+         * @param {{width: number, height: number}} itemSize Object with width and height.
+         * @return {Point}
+         * @private
+         */
+
+      }, {
+        key: "_getItemPosition",
+        value: function _getItemPosition(itemSize) {
+          return getItemPosition({
+            itemSize: itemSize,
+            positions: this.positions,
+            gridSize: this.colWidth,
+            total: this.cols,
+            threshold: this.options.columnThreshold,
+            buffer: this.options.buffer
+          });
+        }
+        /**
+         * Mutate positions before they're applied.
+         * @param {Rect[]} itemRects Item data objects.
+         * @param {number} containerWidth Width of the containing element.
+         * @return {Point[]}
+         * @protected
+         */
+
+      }, {
+        key: "getTransformedPositions",
+        value: function getTransformedPositions(itemRects, containerWidth) {
+          return getCenteredPositions(itemRects, containerWidth);
+        }
+        /**
+         * Hides the elements that don't match our filter.
+         * @param {ShuffleItem[]} collection Collection to shrink.
+         * @private
+         */
+
+      }, {
+        key: "_shrink",
+        value: function _shrink() {
+          var _this6 = this;
+
+          var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._getConcealedItems();
+          var count = 0;
+          collection.forEach(function (item) {
+            function callback() {
+              item.applyCss(ShuffleItem.Css.HIDDEN.after);
+            } // Continuing would add a transitionend event listener to the element, but
+            // that listener would not execute because the transform and opacity would
+            // stay the same.
+            // The callback is executed here because it is not guaranteed to be called
+            // after the transitionend event because the transitionend could be
+            // canceled if another animation starts.
+
+
+            if (item.isHidden) {
+              item.applyCss(ShuffleItem.Css.HIDDEN.before);
+              callback();
+              return;
+            }
+
+            item.scale = ShuffleItem.Scale.HIDDEN;
+            item.isHidden = true;
+
+            var styles = _this6.getStylesForTransition(item, ShuffleItem.Css.HIDDEN.before);
+
+            styles.transitionDelay = _this6._getStaggerAmount(count) + 'ms';
+
+            _this6._queue.push({
+              item: item,
+              styles: styles,
+              callback: callback
+            });
+
+            count += 1;
+          });
+        }
+        /**
+         * Resize handler.
+         * @private
+         */
+
+      }, {
+        key: "_handleResize",
+        value: function _handleResize() {
+          // If shuffle is disabled, destroyed, don't do anything
+          if (!this.isEnabled || this.isDestroyed) {
+            return;
+          }
+
+          this.update();
+        }
+        /**
+         * Returns styles which will be applied to the an item for a transition.
+         * @param {ShuffleItem} item Item to get styles for. Should have updated
+         *   scale and point properties.
+         * @param {Object} styleObject Extra styles that will be used in the transition.
+         * @return {!Object} Transforms for transitions, left/top for animate.
+         * @protected
+         */
+
+      }, {
+        key: "getStylesForTransition",
+        value: function getStylesForTransition(item, styleObject) {
+          // Clone the object to avoid mutating the original.
+          var styles = Object.assign({}, styleObject);
+
+          if (this.options.useTransforms) {
+            var x = this.options.roundTransforms ? Math.round(item.point.x) : item.point.x;
+            var y = this.options.roundTransforms ? Math.round(item.point.y) : item.point.y;
+            styles.transform = "translate(".concat(x, "px, ").concat(y, "px) scale(").concat(item.scale, ")");
+          } else {
+            styles.left = item.point.x + 'px';
+            styles.top = item.point.y + 'px';
+          }
+
+          return styles;
+        }
+        /**
+         * Listen for the transition end on an element and execute the itemCallback
+         * when it finishes.
+         * @param {Element} element Element to listen on.
+         * @param {function} itemCallback Callback for the item.
+         * @param {function} done Callback to notify `parallel` that this one is done.
+         */
+
+      }, {
+        key: "_whenTransitionDone",
+        value: function _whenTransitionDone(element, itemCallback, done) {
+          var id = onTransitionEnd(element, function (evt) {
+            itemCallback();
+            done(null, evt);
+          });
+
+          this._transitions.push(id);
+        }
+        /**
+         * Return a function which will set CSS styles and call the `done` function
+         * when (if) the transition finishes.
+         * @param {Object} opts Transition object.
+         * @return {function} A function to be called with a `done` function.
+         */
+
+      }, {
+        key: "_getTransitionFunction",
+        value: function _getTransitionFunction(opts) {
+          var _this7 = this;
+
+          return function (done) {
+            opts.item.applyCss(opts.styles);
+
+            _this7._whenTransitionDone(opts.item.element, opts.callback, done);
+          };
+        }
+        /**
+         * Execute the styles gathered in the style queue. This applies styles to elements,
+         * triggering transitions.
+         * @private
+         */
+
+      }, {
+        key: "_processQueue",
+        value: function _processQueue() {
+          if (this.isTransitioning) {
+            this._cancelMovement();
+          }
+
+          var hasSpeed = this.options.speed > 0;
+          var hasQueue = this._queue.length > 0;
+
+          if (hasQueue && hasSpeed && this.isInitialized) {
+            this._startTransitions(this._queue);
+          } else if (hasQueue) {
+            this._styleImmediately(this._queue);
+
+            this._dispatch(Shuffle.EventType.LAYOUT); // A call to layout happened, but none of the newly visible items will
+            // change position or the transition duration is zero, which will not trigger
+            // the transitionend event.
+
+          } else {
+            this._dispatch(Shuffle.EventType.LAYOUT);
+          } // Remove everything in the style queue
+
+
+          this._queue.length = 0;
+        }
+        /**
+         * Wait for each transition to finish, the emit the layout event.
+         * @param {Object[]} transitions Array of transition objects.
+         */
+
+      }, {
+        key: "_startTransitions",
+        value: function _startTransitions(transitions) {
+          var _this8 = this;
+
+          // Set flag that shuffle is currently in motion.
+          this.isTransitioning = true; // Create an array of functions to be called.
+
+          var callbacks = transitions.map(function (obj) {
+            return _this8._getTransitionFunction(obj);
+          });
+          arrayParallel(callbacks, this._movementFinished.bind(this));
+        }
+      }, {
+        key: "_cancelMovement",
+        value: function _cancelMovement() {
+          // Remove the transition end event for each listener.
+          this._transitions.forEach(cancelTransitionEnd); // Reset the array.
+
+
+          this._transitions.length = 0; // Show it's no longer active.
+
+          this.isTransitioning = false;
+        }
+        /**
+         * Apply styles without a transition.
+         * @param {Object[]} objects Array of transition objects.
+         * @private
+         */
+
+      }, {
+        key: "_styleImmediately",
+        value: function _styleImmediately(objects) {
+          if (objects.length) {
+            var elements = objects.map(function (obj) {
+              return obj.item.element;
+            });
+
+            Shuffle._skipTransitions(elements, function () {
+              objects.forEach(function (obj) {
+                obj.item.applyCss(obj.styles);
+                obj.callback();
+              });
+            });
+          }
+        }
+      }, {
+        key: "_movementFinished",
+        value: function _movementFinished() {
+          this._transitions.length = 0;
+          this.isTransitioning = false;
+
+          this._dispatch(Shuffle.EventType.LAYOUT);
+        }
+        /**
+         * The magic. This is what makes the plugin 'shuffle'
+         * @param {string|string[]|function(Element):boolean} [category] Category to filter by.
+         *     Can be a function, string, or array of strings.
+         * @param {SortOptions} [sortOptions] A sort object which can sort the visible set
+         */
+
+      }, {
+        key: "filter",
+        value: function filter(category, sortOptions) {
+          if (!this.isEnabled) {
+            return;
+          }
+
+          if (!category || category && category.length === 0) {
+            category = Shuffle.ALL_ITEMS; // eslint-disable-line no-param-reassign
+          }
+
+          this._filter(category); // Shrink each hidden item
+
+
+          this._shrink(); // How many visible elements?
+
+
+          this._updateItemCount(); // Update transforms on visible elements so they will animate to their new positions.
+
+
+          this.sort(sortOptions);
+        }
+        /**
+         * Gets the visible elements, sorts them, and passes them to layout.
+         * @param {SortOptions} [sortOptions] The options object to pass to `sorter`.
+         */
+
+      }, {
+        key: "sort",
+        value: function sort() {
+          var sortOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.lastSort;
+
+          if (!this.isEnabled) {
+            return;
+          }
+
+          this._resetCols();
+
+          var items = sorter(this._getFilteredItems(), sortOptions);
+
+          this._layout(items); // `_layout` always happens after `_shrink`, so it's safe to process the style
+          // queue here with styles from the shrink method.
+
+
+          this._processQueue(); // Adjust the height of the container.
+
+
+          this._setContainerSize();
+
+          this.lastSort = sortOptions;
+        }
+        /**
+         * Reposition everything.
+         * @param {boolean} [isOnlyLayout=false] If true, column and gutter widths won't be recalculated.
+         */
+
+      }, {
+        key: "update",
+        value: function update() {
+          var isOnlyLayout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
+
+          if (this.isEnabled) {
+            if (!isOnlyLayout) {
+              // Get updated colCount
+              this._setColumns();
+            } // Layout items
+
+
+            this.sort();
+          }
+        }
+        /**
+         * Use this instead of `update()` if you don't need the columns and gutters updated
+         * Maybe an image inside `shuffle` loaded (and now has a height), which means calculations
+         * could be off.
+         */
+
+      }, {
+        key: "layout",
+        value: function layout() {
+          this.update(true);
+        }
+        /**
+         * New items have been appended to shuffle. Mix them in with the current
+         * filter or sort status.
+         * @param {Element[]} newItems Collection of new items.
+         */
+
+      }, {
+        key: "add",
+        value: function add(newItems) {
+          var _this9 = this;
+
+          var items = arrayUnique(newItems).map(function (el) {
+            return new ShuffleItem(el);
+          }); // Add classes and set initial positions.
+
+          this._initItems(items); // Determine which items will go with the current filter.
+
+
+          this._resetCols();
+
+          var allItems = this._mergeNewItems(items);
+
+          var sortedItems = sorter(allItems, this.lastSort);
+
+          var allSortedItemsSet = this._filter(this.lastFilter, sortedItems);
+
+          var isNewItem = function isNewItem(item) {
+            return items.includes(item);
+          };
+
+          var applyHiddenState = function applyHiddenState(item) {
+            item.scale = ShuffleItem.Scale.HIDDEN;
+            item.isHidden = true;
+            item.applyCss(ShuffleItem.Css.HIDDEN.before);
+            item.applyCss(ShuffleItem.Css.HIDDEN.after);
+          }; // Layout all items again so that new items get positions.
+          // Synchonously apply positions.
+
+
+          var itemPositions = this._getNextPositions(allSortedItemsSet.visible);
+
+          allSortedItemsSet.visible.forEach(function (item, i) {
+            if (isNewItem(item)) {
+              item.point = itemPositions[i];
+              applyHiddenState(item);
+              item.applyCss(_this9.getStylesForTransition(item, {}));
+            }
+          });
+          allSortedItemsSet.hidden.forEach(function (item) {
+            if (isNewItem(item)) {
+              applyHiddenState(item);
+            }
+          }); // Cause layout so that the styles above are applied.
+
+          this.element.offsetWidth; // eslint-disable-line no-unused-expressions
+          // Add transition to each item.
+
+          this.setItemTransitions(items); // Update the list of items.
+
+          this.items = this._mergeNewItems(items); // Update layout/visibility of new and old items.
+
+          this.filter(this.lastFilter);
+        }
+        /**
+         * Disables shuffle from updating dimensions and layout on resize
+         */
+
+      }, {
+        key: "disable",
+        value: function disable() {
+          this.isEnabled = false;
+        }
+        /**
+         * Enables shuffle again
+         * @param {boolean} [isUpdateLayout=true] if undefined, shuffle will update columns and gutters
+         */
+
+      }, {
+        key: "enable",
+        value: function enable() {
+          var isUpdateLayout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
+          this.isEnabled = true;
+
+          if (isUpdateLayout) {
+            this.update();
+          }
+        }
+        /**
+         * Remove 1 or more shuffle items.
+         * @param {Element[]} elements An array containing one or more
+         *     elements in shuffle
+         * @return {Shuffle} The shuffle instance.
+         */
+
+      }, {
+        key: "remove",
+        value: function remove(elements) {
+          var _this10 = this;
+
+          if (!elements.length) {
+            return;
+          }
+
+          var collection = arrayUnique(elements);
+          var oldItems = collection.map(function (element) {
+            return _this10.getItemByElement(element);
+          }).filter(function (item) {
+            return !!item;
+          });
+
+          var handleLayout = function handleLayout() {
+            _this10._disposeItems(oldItems); // Remove the collection in the callback
+
+
+            collection.forEach(function (element) {
+              element.parentNode.removeChild(element);
+            });
+
+            _this10._dispatch(Shuffle.EventType.REMOVED, {
+              collection: collection
+            });
+          }; // Hide collection first.
+
+
+          this._toggleFilterClasses({
+            visible: [],
+            hidden: oldItems
+          });
+
+          this._shrink(oldItems);
+
+          this.sort(); // Update the list of items here because `remove` could be called again
+          // with an item that is in the process of being removed.
+
+          this.items = this.items.filter(function (item) {
+            return !oldItems.includes(item);
+          });
+
+          this._updateItemCount();
+
+          this.once(Shuffle.EventType.LAYOUT, handleLayout);
+        }
+        /**
+         * Retrieve a shuffle item by its element.
+         * @param {Element} element Element to look for.
+         * @return {?ShuffleItem} A shuffle item or undefined if it's not found.
+         */
+
+      }, {
+        key: "getItemByElement",
+        value: function getItemByElement(element) {
+          return this.items.find(function (item) {
+            return item.element === element;
+          });
+        }
+        /**
+         * Dump the elements currently stored and reinitialize all child elements which
+         * match the `itemSelector`.
+         */
+
+      }, {
+        key: "resetItems",
+        value: function resetItems() {
+          var _this11 = this;
+
+          // Remove refs to current items.
+          this._disposeItems(this.items);
+
+          this.isInitialized = false; // Find new items in the DOM.
+
+          this.items = this._getItems(); // Set initial styles on the new items.
+
+          this._initItems(this.items);
+
+          this.once(Shuffle.EventType.LAYOUT, function () {
+            // Add transition to each item.
+            _this11.setItemTransitions(_this11.items);
+
+            _this11.isInitialized = true;
+          }); // Lay out all items.
+
+          this.filter(this.lastFilter);
+        }
+        /**
+         * Destroys shuffle, removes events, styles, and classes
+         */
+
+      }, {
+        key: "destroy",
+        value: function destroy() {
+          this._cancelMovement();
+
+          window.removeEventListener('resize', this._onResize); // Reset container styles
+
+          this.element.classList.remove('shuffle');
+          this.element.removeAttribute('style'); // Reset individual item styles
+
+          this._disposeItems(this.items);
+
+          this.items.length = 0;
+          this._transitions.length = 0; // Null DOM references
+
+          this.options.sizer = null;
+          this.element = null; // Set a flag so if a debounced resize has been triggered,
+          // it can first check if it is actually isDestroyed and not doing anything
+
+          this.isDestroyed = true;
+          this.isEnabled = false;
+        }
+        /**
+         * Returns the outer width of an element, optionally including its margins.
+         *
+         * There are a few different methods for getting the width of an element, none of
+         * which work perfectly for all Shuffle's use cases.
+         *
+         * 1. getBoundingClientRect() `left` and `right` properties.
+         *   - Accounts for transform scaled elements, making it useless for Shuffle
+         *   elements which have shrunk.
+         * 2. The `offsetWidth` property.
+         *   - This value stays the same regardless of the elements transform property,
+         *   however, it does not return subpixel values.
+         * 3. getComputedStyle()
+         *   - This works great Chrome, Firefox, Safari, but IE<=11 does not include
+         *   padding and border when box-sizing: border-box is set, requiring a feature
+         *   test and extra work to add the padding back for IE and other browsers which
+         *   follow the W3C spec here.
+         *
+         * @param {Element} element The element.
+         * @param {boolean} [includeMargins=false] Whether to include margins.
+         * @return {{width: number, height: number}} The width and height.
+         */
+
+      }], [{
+        key: "getSize",
+        value: function getSize(element) {
+          var includeMargins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+          // Store the styles so that they can be used by others without asking for it again.
+          var styles = window.getComputedStyle(element, null);
+          var width = getNumberStyle(element, 'width', styles);
+          var height = getNumberStyle(element, 'height', styles);
+
+          if (includeMargins) {
+            var marginLeft = getNumberStyle(element, 'marginLeft', styles);
+            var marginRight = getNumberStyle(element, 'marginRight', styles);
+            var marginTop = getNumberStyle(element, 'marginTop', styles);
+            var marginBottom = getNumberStyle(element, 'marginBottom', styles);
+            width += marginLeft + marginRight;
+            height += marginTop + marginBottom;
+          }
+
+          return {
+            width: width,
+            height: height
+          };
+        }
+        /**
+         * Change a property or execute a function which will not have a transition
+         * @param {Element[]} elements DOM elements that won't be transitioned.
+         * @param {function} callback A function which will be called while transition
+         *     is set to 0ms.
+         * @private
+         */
+
+      }, {
+        key: "_skipTransitions",
+        value: function _skipTransitions(elements, callback) {
+          var zero = '0ms'; // Save current duration and delay.
+
+          var data = elements.map(function (element) {
+            var style = element.style;
+            var duration = style.transitionDuration;
+            var delay = style.transitionDelay; // Set the duration to zero so it happens immediately
+
+            style.transitionDuration = zero;
+            style.transitionDelay = zero;
+            return {
+              duration: duration,
+              delay: delay
+            };
+          });
+          callback(); // Cause forced synchronous layout.
+
+          elements[0].offsetWidth; // eslint-disable-line no-unused-expressions
+          // Put the duration back
+
+          elements.forEach(function (element, i) {
+            element.style.transitionDuration = data[i].duration;
+            element.style.transitionDelay = data[i].delay;
+          });
+        }
+      }]);
+
+      return Shuffle;
+    }(tinyEmitter);
+
+  Shuffle.ShuffleItem = ShuffleItem;
+  Shuffle.ALL_ITEMS = 'all';
+  Shuffle.FILTER_ATTRIBUTE_KEY = 'groups';
+  /** @enum {string} */
+
+  Shuffle.EventType = {
+    LAYOUT: 'shuffle:layout',
+    REMOVED: 'shuffle:removed'
+  };
+  /** @enum {string} */
+
+  Shuffle.Classes = Classes;
+  /** @enum {string} */
+
+  Shuffle.FilterMode = {
+    ANY: 'any',
+    ALL: 'all'
+  }; // Overrideable options
+
+  Shuffle.options = {
+    // Initial filter group.
+    group: Shuffle.ALL_ITEMS,
+    // Transition/animation speed (milliseconds).
+    speed: 250,
+    // CSS easing function to use.
+    easing: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
+    // e.g. '.picture-item'.
+    itemSelector: '*',
+    // Element or selector string. Use an element to determine the size of columns
+    // and gutters.
+    sizer: null,
+    // A static number or function that tells the plugin how wide the gutters
+    // between columns are (in pixels).
+    gutterWidth: 0,
+    // A static number or function that returns a number which tells the plugin
+    // how wide the columns are (in pixels).
+    columnWidth: 0,
+    // If your group is not json, and is comma delimeted, you could set delimiter
+    // to ','.
+    delimiter: null,
+    // Useful for percentage based heights when they might not always be exactly
+    // the same (in pixels).
+    buffer: 0,
+    // Reading the width of elements isn't precise enough and can cause columns to
+    // jump between values.
+    columnThreshold: 0.01,
+    // Shuffle can be isInitialized with a sort object. It is the same object
+    // given to the sort method.
+    initialSort: null,
+    // By default, shuffle will throttle resize events. This can be changed or
+    // removed.
+    throttle: throttleit,
+    // How often shuffle can be called on resize (in milliseconds).
+    throttleTime: 300,
+    // Transition delay offset for each item in milliseconds.
+    staggerAmount: 15,
+    // Maximum stagger delay in milliseconds.
+    staggerAmountMax: 150,
+    // Whether to use transforms or absolute positioning.
+    useTransforms: true,
+    // Affects using an array with filter. e.g. `filter(['one', 'two'])`. With "any",
+    // the element passes the test if any of its groups are in the array. With "all",
+    // the element only passes if all groups are in the array.
+    filterMode: Shuffle.FilterMode.ANY,
+    // Attempt to center grid items in each row.
+    isCentered: false,
+    // Whether to round pixel values used in translate(x, y). This usually avoids
+    // blurriness.
+    roundTransforms: true
+  };
+  Shuffle.Point = Point;
+  Shuffle.Rect = Rect; // Expose for testing. Hack at your own risk.
+
+  Shuffle.__sorter = sorter;
+  Shuffle.__getColumnSpan = getColumnSpan;
+  Shuffle.__getAvailablePositions = getAvailablePositions;
+  Shuffle.__getShortColumn = getShortColumn;
+  Shuffle.__getCenteredPositions = getCenteredPositions;
+
+  return Shuffle;
+
+}));
+//# sourceMappingURL=shuffle.js.map

+ 21 - 0
toha/theme.toml

@@ -0,0 +1,21 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Toha"
+license = "MIT"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
+description = ""
+homepage = "http://example.com/"
+tags = []
+features = []
+min_version = "0.41.0"
+
+[author]
+  name = ""
+  homepage = ""
+
+# If porting an existing theme
+[original]
+  name = ""
+  homepage = ""
+  repo = ""

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません