-
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.
Migrating to scss, added a store plugin that doesn't really work
If I have the energy in the future I may have some ideas on how to actually make the store plugin work properly
- Loading branch information
1 parent
9e9bea9
commit 68929c2
Showing
23 changed files
with
188 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v18.16.0 |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
$vt-c-white: #ffffff; | ||
$vt-c-white-soft: #f8f8f8; | ||
$vt-c-white-mute: #f2f2f2; | ||
|
||
$vt-c-black: #000000; | ||
$vt-c-black-soft: #222222; | ||
$vt-c-black-mute: #282828; | ||
|
||
$vt-c-indigo: #2c3e50; | ||
|
||
$vt-c-divider-light-1: rgba(60, 60, 60, 0.29); | ||
$vt-c-divider-light-2: rgba(60, 60, 60, 0.12); | ||
$vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); | ||
$vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); | ||
|
||
$vt-c-text-light-1: $vt-c-indigo; | ||
$vt-c-text-light-2: rgba(60, 60, 60, 0.66); | ||
$vt-c-text-dark-1: $vt-c-white; | ||
$vt-c-text-dark-2: rgba(235, 235, 235, 0.64); | ||
|
||
|
||
$color-background: $vt-c-black; | ||
$color-background-soft: $vt-c-black-soft; | ||
$color-background-mute: $vt-c-black-mute; | ||
|
||
$color-border: $vt-c-divider-dark-2; | ||
$color-border-hover: $vt-c-divider-dark-1; | ||
|
||
$color-heading: $vt-c-text-dark-1; | ||
$color-text: $vt-c-text-dark-1; | ||
|
||
$section-gap: 160px; |
Empty file.
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,75 @@ | ||
@import './_variables.scss'; | ||
@import './_widgets.scss'; | ||
|
||
@media (prefers-color-scheme: light) { | ||
:root { | ||
$color-background: $vt-c-white; | ||
$color-background-soft: $vt-c-white-soft; | ||
$color-background-mute: $vt-c-white-mute; | ||
|
||
$color-border: $vt-c-divider-light-2; | ||
$color-border-hover: $vt-c-divider-light-1; | ||
|
||
$color-heading: $vt-c-text-light-1; | ||
$color-text: $vt-c-text-light-2; | ||
} | ||
} | ||
|
||
#app { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
background: $color-background; | ||
|
||
font-weight: normal; | ||
} | ||
|
||
a, | ||
.green { | ||
text-decoration: none; | ||
color: hsla(160, 100%, 37%, 1); | ||
transition: 0.4s; | ||
} | ||
|
||
@media (hover: hover) { | ||
a:hover { | ||
background-color: hsla(160, 100%, 37%, 0.2); | ||
} | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
body { | ||
display: flex; | ||
place-items: center; | ||
} | ||
|
||
#app { | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
padding: 0 2rem; | ||
} | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
margin: 0; | ||
position: relative; | ||
font-weight: normal; | ||
} | ||
|
||
body { | ||
min-height: 100vh; | ||
color: $color-text; | ||
background: $color-background; | ||
transition: color 0.5s, background-color 0.5s; | ||
line-height: 1.6; | ||
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, | ||
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; | ||
font-size: 15px; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
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
Empty file.
Empty file.
Empty file.
Empty file.
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,14 +1,16 @@ | ||
import { createApp } from 'vue' | ||
import { createPinia } from 'pinia' | ||
import HysteriaStorePlugin from './plugins/HysteriaStorePlugin' | ||
|
||
import App from './App.vue' | ||
import router from './router' | ||
// import router from './router' | ||
|
||
import './assets/main.css' | ||
import './assets/styles/app.scss' | ||
|
||
const app = createApp(App) | ||
|
||
app.use(createPinia()) | ||
app.use(router) | ||
// app.use(router) | ||
app.use(HysteriaStorePlugin) | ||
|
||
app.mount('#app') |
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,20 @@ | ||
import { useGitDataStore } from '../stores/gitData'; | ||
import { useAppStore } from '../stores/app'; | ||
|
||
export const HysteriaStorePlugin = { | ||
gitData() { | ||
return useGitDataStore(); | ||
}, | ||
app() { | ||
return useAppStore(); | ||
} | ||
} | ||
|
||
export type HysteriaStorePlugin = typeof HysteriaStorePlugin; | ||
|
||
export default { | ||
// @ts-expect-error | ||
install(app) { | ||
app.config.globalProperties.$store = HysteriaStorePlugin; | ||
} | ||
} |
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,7 @@ | ||
import { HysteriaStorePlugin } from './plugins/HysteriaStorePlugin'; | ||
|
||
declare module 'vue/types/vue' { | ||
interface Vue { | ||
$store: HysteriaStorePlugin | ||
} | ||
} |
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 @@ | ||
declare module '*.vue'; |
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.