forked from cssninjaStudio/krypton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updated js structure, updated bulma and alpine JS
- Loading branch information
1 parent
10da510
commit 95a786c
Showing
71 changed files
with
1,325 additions
and
1,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { initNavbar } from './navbar/navbar'; | ||
import { initHero } from './hero/hero'; | ||
import { initTabs } from './tabs/tabs'; | ||
import { initCountdown } from './countdown/countdown'; | ||
import { initRoadmap } from './roadmap/roadmap'; | ||
import { initLike } from './like/like'; | ||
import { initBackToTop } from './backtotop/backtotop'; | ||
|
||
window.initNavbar = initNavbar; | ||
window.initHero = initHero; | ||
window.initTabs = initTabs; | ||
window.initCountdown = initCountdown; | ||
window.initRoadmap = initRoadmap; | ||
window.initLike = initLike; | ||
window.initBackToTop = initBackToTop; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
"use strict"; | ||
|
||
import './store/store'; | ||
import 'alpinejs'; | ||
import { env } from './libs/utils/constants'; | ||
import { initPageLoader } from './libs/components/pageloader'; | ||
import { switchDemoImages, insertBgImages } from './libs/utils/utils'; | ||
import { initNavbar } from './libs/components/navbar'; | ||
import { initHero } from './libs/components/hero'; | ||
import { initTabs } from './libs/components/tabs'; | ||
import { initCountdown } from './libs/components/countdown'; | ||
import { initRoadmap } from './libs/components/roadmap'; | ||
import { initLike } from './libs/components/like'; | ||
import { initBackToTop } from './libs/components/backtotop'; | ||
const feather = require('feather-icons'); | ||
|
||
window.initNavbar = initNavbar; | ||
window.initHero = initHero; | ||
window.initTabs = initTabs; | ||
window.initCountdown = initCountdown; | ||
window.initRoadmap = initRoadmap; | ||
window.initLike = initLike; | ||
window.initBackToTop = initBackToTop; | ||
const feather = require("feather-icons"); | ||
|
||
//Alpine JS and plugins import | ||
import Alpine from "alpinejs"; | ||
import intersect from "@alpinejs/intersect"; | ||
import Fern from "@ryangjchandler/fern"; | ||
|
||
window.Alpine = Alpine; | ||
//Init intersect plugin | ||
Alpine.plugin(intersect); | ||
//Init Fern plugin | ||
Alpine.plugin(Fern); | ||
//Init Fern persisted store | ||
Alpine.persistedStore("app", { | ||
isSiderbarOpen: false, | ||
}); | ||
//Start Alpine JS | ||
Alpine.start(); | ||
|
||
import { initPageLoader } from './libs/components/pageloader/pageloader'; | ||
import './libs/components' | ||
|
||
const showPageloader = initPageLoader(); | ||
|
||
document.onreadystatechange = function () { | ||
if (document.readyState == 'complete') { | ||
if (document.readyState == "complete") { | ||
//Switch demo images | ||
const changeImages = switchDemoImages(env); | ||
|
||
//Switch demo images | ||
const changeImages = switchDemoImages(env); | ||
|
||
//Switch backgrounds | ||
const changeBackgrounds = insertBgImages(); | ||
|
||
//Feather Icons | ||
const featherIcons = feather.replace(); | ||
|
||
} | ||
} | ||
//Switch backgrounds | ||
const changeBackgrounds = insertBgImages(); | ||
|
||
//Feather Icons | ||
const featherIcons = feather.replace(); | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/* Bulma Base */ | ||
@charset "utf-8" | ||
|
||
@import "minireset.sass" | ||
@import "generic.sass" | ||
@import "minireset" | ||
@import "generic" | ||
@import "animations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@keyframes spinAround | ||
from | ||
transform: rotate(0deg) | ||
to | ||
transform: rotate(359deg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/* Bulma Components */ | ||
@charset "utf-8" | ||
|
||
@import "breadcrumb.sass" | ||
@import "card.sass" | ||
@import "dropdown.sass" | ||
@import "level.sass" | ||
@import "media.sass" | ||
@import "menu.sass" | ||
@import "message.sass" | ||
@import "modal.sass" | ||
@import "navbar.sass" | ||
@import "pagination.sass" | ||
@import "panel.sass" | ||
@import "tabs.sass" | ||
@import "breadcrumb" | ||
@import "card" | ||
@import "dropdown" | ||
@import "level" | ||
@import "media" | ||
@import "menu" | ||
@import "message" | ||
@import "modal" | ||
@import "navbar" | ||
@import "pagination" | ||
@import "panel" | ||
@import "tabs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import "../utilities/mixins" | ||
|
||
$message-background-color: $background !default | ||
$message-radius: $radius !default | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.