Skip to content

feat: v5-tres-devtools #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ dist
.env
.netlify

**/.env

# Env
.env

Expand Down
34 changes: 34 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "client: chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "server: nuxt",
"outputCapture": "std",
"program": "${workspaceFolder}/node_modules/nuxt/bin/nuxt.mjs",
"args": [
"dev playground"
],
}
],
"compounds": [
{
"name": "fullstack: nuxt",
"configurations": [
"server: nuxt",
"client: chrome"
]
}
]
}
1 change: 1 addition & 0 deletions client/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
15 changes: 15 additions & 0 deletions client/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default defineAppConfig({
ui: {
colors: {
primary: 'teal',
accent: 'yellow',
neutral: 'zinc',
},
card: {
slots: {
root: 'hover:bg-linear-[115deg,#272727 .06%,#171717]',
body: 'p-2 sm:p-3',
},
},
},
})
4 changes: 2 additions & 2 deletions client/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<NuxtLayout>
<UApp>
<NuxtPage />
</NuxtLayout>
</UApp>
</template>
57 changes: 57 additions & 0 deletions client/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@import "tailwindcss";
@import "@nuxt/ui-pro";

@theme static {
--font-display: 'Manrope', sans-serif;
--font-sans: 'Inter', sans-serif;
--font-mono: 'Fira Code', monospace;
--breakpoint-3xl: 1920px;
--ui-pattern-fg: color-mix(in oklab,var(--ui-text)5%,transparent);
--ui-pattern-bg: repeating-linear-gradient(315deg,var(--ui-pattern-fg)0,var(--ui-pattern-fg)1px,transparent 0,transparent 50%);
--ui-header-height: 2.5rem;
/* Technical blueprint styles */
--ui-line-gap: 5px;
--ui-line-width: 1px;
--ui-line-offset: 172px;
--ui-line-color: var(--color-gray-200);

/* Teal Palette */
--color-teal-50: #f2fbf8;
--color-teal-100: #d3f4ea;
--color-teal-200: #a6e9d6;
--color-teal-300: #82dbc5;
--color-teal-400: #44bda2;
--color-teal-500: #2ba189;
--color-teal-600: #20816f;
--color-teal-700: #1d685b;
--color-teal-800: #1c534b;
--color-teal-900: #1b463f;
--color-teal-950: #0a2925;

/* Yellow/Brown Palette */
--color-yellow-50: #fff8eb;
--color-yellow-100: #feeac7;
--color-yellow-200: #fdd48a;
--color-yellow-300: #fbb03b;
--color-yellow-400: #fa9e25;
--color-yellow-500: #f47a0c;
--color-yellow-600: #b85607;
--color-yellow-700: #b3390a;
--color-yellow-800: #922b0e;
--color-yellow-900: #78250f;
--color-yellow-950: #451003;
}

.dark {
--ui-line-color: var(--color-gray-800);
}

.pattern-bg {
background-image: var(--ui-pattern-bg);
background-size: 10px 10px;
background-attachment: fixed;
}

.noise-bg {
background-image: url("data:image/svg+xml,%3C!-- svg: first layer --%3E%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
39 changes: 39 additions & 0 deletions client/components/TheHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script lang="ts" setup>
</script>

<template>
<UHeader>
<template #title>
<div class="flex items-center">
<img
src="/logo.svg"
alt="Tres.js"
class="h-3 mr-4"
>
<a
class="font-bold text-dark font-sans text-sm"
href="/"
title="Home"
>Tres<span class="text-primary-400">DevTools</span></a>
</div>
</template>

<template #right>
<UColorModeButton />

<UTooltip
text="Open on GitHub"
:kbds="['meta', 'G']"
>
<UButton
color="neutral"
variant="ghost"
to="https://github.com/nuxt/ui"
target="_blank"
icon="i-simple-icons-github"
aria-label="GitHub"
/>
</UTooltip>
</template>
</UHeader>
</template>
Loading
Loading