Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Jul 16, 2022
0 parents commit bb9ee89
Show file tree
Hide file tree
Showing 21 changed files with 1,618 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
"root": true,
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-prettier"
]
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# deploykit-ui

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!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>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "deploykit-ui",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview --port 4173",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
},
"dependencies": {
"vue": "^3.2.37",
"vue-router": "^4.1.2"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.0",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/eslint-config-prettier": "^7.0.0",
"eslint": "^8.5.0",
"eslint-plugin-vue": "^9.0.0",
"prettier": "^2.5.1",
"vite": "^2.9.14"
}
}
Binary file added public/favicon.ico
Binary file not shown.
137 changes: 137 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<script setup>
import { RouterLink, RouterView } from "vue-router";
import DKArrowButton from "@/components/DKArrowButton.vue";
import DKLogo from "@/components/DKLogo.vue";
</script>

<template>
<div style="padding: 0 2rem; margin-bottom: 1rem">
<button
class="quit-button"
style="padding-top: 1rem"
@click="
{
}
"
>
<img src="@/assets/window-close-symbolic.svg" width="30" height="30" />
</button>
<header>
<DKLogo />
</header>
</div>
<!-- main content -->
<div class="main-container">
<div>
<div class="wrapper">
<nav class="active">Introduction</nav>
<nav>User Preferences</nav>
<nav>Installation</nav>
<nav>Final Steps</nav>
</div>
</div>
<main style="padding-top: 1rem; margin-left: 4rem">
<div style="max-width: 60vh">
<RouterView />
<div style="display: flex; float: right;">
<DKArrowButton left="true">Previous</DKArrowButton>
<DKArrowButton>Next</DKArrowButton>
</div>
</div>
</main>
</div>
<!-- status bar -->
<div class="status-bar">
<progress value="10" max="100" class="progress-bar"></progress>
<span class="eta-box">5 - 10 minutes remaining...</span>
</div>
</template>

<style scoped>
.main-container {
display: grid;
grid-template-columns: 1fr 3fr;
padding: 0 2rem;
max-height: 100vh;
}
.status-bar {
position: absolute;
bottom: 2em;
left: 0;
width: 100%;
}
.progress-bar {
appearance: none;
display: block;
background: var(--dk-inactive);
border: 0;
width: 100%;
height: 10px;
}
.progress-bar::-webkit-progress-bar {
background: var(--dk-accent);
}
.progress-bar::-moz-progress-bar {
background: var(--dk-accent);
}
.eta-box {
float: right;
margin-top: 0.5em;
margin-right: 0.5em;
}
.quit-button {
float: right;
cursor: pointer;
appearance: none;
background: transparent;
border: 0;
}
header {
line-height: 1.5;
width: 30%;
}
nav {
width: 100%;
font-size: 12px;
text-align: center;
margin-top: 1rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: start;
padding-top: 0.5rem;
padding-right: calc(var(--section-gap) / 2);
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
nav {
text-align: left;
margin-left: calc(60px + 0.5em);
font-size: 1rem;
color: var(--dk-gray);
padding: 0.3rem 0;
margin-top: 1rem;
}
nav.active {
color: #eeeeee;
font-weight: bold;
}
}
</style>
1 change: 1 addition & 0 deletions src/assets/aosc-logo-core.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/aosc-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions src/assets/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/* color palette from <https://github.com/vuejs/theme> */
:root {
--vt-c-white: #ffffff;
--vt-c-white-soft: #f8f8f8;
--vt-c-white-mute: #f2f2f2;

--dk-accent: #ffbe43;
--dk-inactive: #aaaaaa;
--dk-secondary: #eeeeee29;
--dk-gray: #8f8f8f;
--dk-button-color: #dddddd29;

--dk-button-height: 1.5rem;
--dk-button-shorter: 1.3rem;

--vt-c-black: #181818;
--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: var(--vt-c-white);
--vt-c-text-light-2: rgba(60, 60, 60, 0.66);
--vt-c-text-dark-1: var(--vt-c-white);
--vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}

/* semantic color variables for this project */
:root {
--color-background: var(--vt-c-white);
--color-background-soft: var(--vt-c-white-soft);
--color-background-mute: var(--vt-c-white-mute);

--color-border: var(--vt-c-divider-light-2);
--color-border-hover: var(--vt-c-divider-light-1);

--color-heading: var(--vt-c-text-light-1);
--color-text: var(--vt-c-text-light-1);

--section-gap: 160px;
--page-margin: 2em;
}

/* @media (prefers-color-scheme: dark) {
:root {
--color-background: var(--vt-c-black);
--color-background-soft: var(--vt-c-black-soft);
--color-background-mute: var(--vt-c-black-mute);
--color-border: var(--vt-c-divider-dark-2);
--color-border-hover: var(--vt-c-divider-dark-1);
--color-heading: var(--vt-c-text-dark-1);
--color-text: var(--vt-c-text-dark-2);
}
} */

*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
position: relative;
font-weight: normal;
}

body {
min-height: 100vh;
color: var(--color-text);
background: #000000;
transition: color 0.5s, background-color 0.5s;
line-height: 1.3;
font-family: "Source Sans 3", "Noto Sans", sans-serif;
font-size: 16px;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

p, ul {
margin-bottom: 1em;
}

h1 {
font-size: 38px;
font-weight: 600;
margin-bottom: 0.5em;
}

#app {
margin-left: 65px;
background: linear-gradient(
90deg,
rgba(0, 0, 0, 1) 0%,
rgba(0, 25, 62, 1) 30%,
rgba(0, 49, 122, 1) 100%
);
}
28 changes: 28 additions & 0 deletions src/assets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@import "./base.css";

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;

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;
}
}
Loading

0 comments on commit bb9ee89

Please sign in to comment.