Skip to content

Commit

Permalink
Merge pull request #6 from am9zZWY/josef-update-client
Browse files Browse the repository at this point in the history
Update Client
  • Loading branch information
am9zZWY authored Jul 10, 2024
2 parents 5a5c17c + 4dbdcb0 commit 5e18628
Show file tree
Hide file tree
Showing 32 changed files with 163 additions and 637 deletions.
Binary file modified client/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<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>
<title>Search Engine</title>
</head>
<body>
<div id="app"></div>
Expand Down
25 changes: 14 additions & 11 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,27 @@
},
"dependencies": {
"pinia": "^2.1.7",
"vue": "^3.4.29",
"vue-router": "^4.3.3"
"vue": "^3.4.31",
"vue-router": "^4.4.0"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.8.0",
"@rushstack/eslint-patch": "^1.10.3",
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.14.5",
"@types/node": "^20.14.10",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.23.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"typescript": "~5.4.0",
"vite": "^5.3.1",
"vite-plugin-vue-devtools": "^7.3.1",
"vue-tsc": "^2.0.21"
"eslint-plugin-vue": "^9.27.0",
"npm-run-all2": "^6.2.2",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
"tailwindcss": "^3.4.4",
"typescript": "~5.4.5",
"vite": "^5.3.3",
"vite-plugin-vue-devtools": "^7.3.5",
"vue-tsc": "^2.0.26"
}
}
6 changes: 6 additions & 0 deletions client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
101 changes: 23 additions & 78 deletions client/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,85 +1,30 @@
<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import HelloWorld from './components/HelloWorld.vue'
import { RouterView } from 'vue-router'
</script>

<template>
<header>
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="125" height="125" />

<div class="wrapper">
<HelloWorld msg="You did it!" />

<nav>
<RouterLink to="/">Home</RouterLink>
<RouterLink to="/about">About</RouterLink>
</nav>
<header class="bg-white shadow-sm p-4">
<div class="flex justify-between items-center">
<ul class="flex justify-center space-x-4">
<li>
<router-link to="/" class="text-gray-600 hover:text-gray-800">Home</router-link>
</li>
</ul>
<ul class="flex justify-center space-x-4">
<li>
<button class="py-2 px-4 rounded-lg transition duration-300">
Bionic Reading
</button>
</li>
<li>
<button class="py-2 px-4 rounded-lg transition duration-300">
Speed Reading
</button>
</li>
</ul>
</div>
</header>

<RouterView />
<main class="min-h-screen bg-gray-50 flex items-center justify-center">
<RouterView />
</main>
</template>

<style scoped>
header {
line-height: 1.5;
max-height: 100vh;
}
.logo {
display: block;
margin: 0 auto 2rem;
}
nav {
width: 100%;
font-size: 12px;
text-align: center;
margin-top: 2rem;
}
nav a.router-link-exact-active {
color: var(--color-text);
}
nav a.router-link-exact-active:hover {
background-color: transparent;
}
nav a {
display: inline-block;
padding: 0 1rem;
border-left: 1px solid var(--color-border);
}
nav a:first-of-type {
border: 0;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
nav {
text-align: left;
margin-left: -1rem;
font-size: 1rem;
padding: 1rem 0;
margin-top: 1rem;
}
}
</style>
86 changes: 0 additions & 86 deletions client/src/assets/base.css

This file was deleted.

1 change: 0 additions & 1 deletion client/src/assets/logo.svg

This file was deleted.

35 changes: 0 additions & 35 deletions client/src/assets/main.css

This file was deleted.

7 changes: 0 additions & 7 deletions client/src/components/Header.vue

This file was deleted.

41 changes: 0 additions & 41 deletions client/src/components/HelloWorld.vue

This file was deleted.

8 changes: 0 additions & 8 deletions client/src/components/Logo.vue

This file was deleted.

34 changes: 0 additions & 34 deletions client/src/components/SearchBox.vue

This file was deleted.

12 changes: 0 additions & 12 deletions client/src/components/SearchBoxResult.vue

This file was deleted.

Loading

0 comments on commit 5e18628

Please sign in to comment.