Skip to content

Commit

Permalink
Setup preliminary styling
Browse files Browse the repository at this point in the history
* Install vuetify

* Color theming vuetify

* Fonts and preliminary icons
  • Loading branch information
pcatkins authored Dec 11, 2023
1 parent 517d4fa commit b97bd70
Show file tree
Hide file tree
Showing 19 changed files with 123 additions and 94 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="bcid-apple-touch-icon.png" />
<link rel="stylesheet" href="/styles/fonts.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My ECE Registry</title>
</head>
<body>
<div id="app"></div>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.0",
"vue": "^3.3.4",
"vue-router": "^4.2.5"
"vue-router": "^4.2.5",
"vuetify": "^3.4.6"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.3.3",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@font-face {
font-family: "BCSans";
font-style: normal;
src:
url("BCSans-Regular.woff") format("woff"),
url("BCSans-Regular.woff2") format("woff2");
}
@font-face {
font-family: "BCSans";
font-style: italic;
src:
url("BCSans-Italic.woff") format("woff"),
url("BCSans-Italic.woff2") format("woff2");
}
@font-face {
font-family: "BCSans";
font-weight: 700;
src:
url("BCSans-Bold.woff") format("woff"),
url("BCSans-Bold.woff2") format("woff2");
}
@font-face {
font-family: "BCSans";
font-style: italic;
font-weight: 700;
src:
url("BCSans-BoldItalic.woff") format("woff"),
url("BCSans-BoldItalic.woff2") format("woff2");
}

.v-application {
font-family: "BCSans", Verdana, Arial, sans-serif !important;
}
html {
font-family: "BCSans", Verdana, Arial, sans-serif !important;
}

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
// Vuetify
import "vuetify/styles";

import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import { createApp } from "vue";
import { createVuetify } from "vuetify";
import * as components from "vuetify/components";
import * as directives from "vuetify/directives";

import App from "./App.vue";
import router from "./router";
import { useConfigStore } from "./store/config";
import ecerTheme from "./styles/ecer-theme";

const vuetify = createVuetify({
theme: {
defaultTheme: "ecerTheme",
themes: {
ecerTheme,
},
},
components,
directives,
});

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
Expand All @@ -13,6 +31,7 @@ const app = createApp(App);

app.use(pinia);
app.use(router);
app.use(vuetify);

const configStore = useConfigStore();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { ThemeDefinition } from "vuetify";

const ecerTheme: ThemeDefinition = {
dark: false,
colors: {
background: "#FFFFFF",
surface: "#38598A",
primary: "#003366",
secondary: "#FCBA19",
links: "#1A5A96",
error: "#D8292F",
success: "#2E8540",
warning: "#FCBA19",
},
};

export default ecerTheme;

0 comments on commit b97bd70

Please sign in to comment.