Skip to content

Commit

Permalink
Refactor Slider component to include zoom functionality and improve h…
Browse files Browse the repository at this point in the history
…andle movement and size calculation
  • Loading branch information
CarelessCourage committed Oct 19, 2024
1 parent 3acecf2 commit 9a018fc
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 79 deletions.
77 changes: 0 additions & 77 deletions apps/team/.github/workflows/studio.yml

This file was deleted.

66 changes: 66 additions & 0 deletions apps/team/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,71 @@
<script setup lang="ts">
import '@nobel/core/styles/main.scss'
import { umbra } from '@umbrajs/core'
import type { Accent } from '@umbrajs/core'
const warningAccent: Accent = {
name: 'warning',
color: '#ff0000'
}
const successAccent: Accent = {
name: 'success',
color: '#00ff00'
}
const theme = umbra({
background: '#ffffff',
foreground: '#000000',
accents: ['#8888ff', warningAccent, successAccent]
})
</script>

<template>
<div>
<NuxtPage />
</div>
</template>

<style>
header {
display: flex;
flex-direction: column;
align-items: center;
}
nav {
display: flex;
gap: var(--space-3);
justify-content: center;
margin-bottom: var(--space-3);
}
nav a {
text-decoration: none;
color: var(--base-120);
}
nav a:hover {
color: var(--accent-50);
}
nav a.router-link-active {
color: var(--accent-60);
}
body {
background: var(--base);
padding: var(--space-1);
height: 100%;
}
#app {
height: 100%;
}
main {
height: 100%;
display: flex;
justify-content: center;
}
</style>
9 changes: 8 additions & 1 deletion apps/team/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
},
"dependencies": {
"@nuxt/content": "^2.13.4",
"nuxt": "^3.13.2"
"nuxt": "^3.13.2",
"@nobel/core": "workspace:*",
"@umbrajs/core": "workspace:*",
"@vueuse/components": "^11.0.3",
"@vueuse/core": "^11.0.3",
"colord": "^2.9.3",
"gsap": "^3.12.5",
"gsap-trial": "^3.12.5"
}
}
10 changes: 10 additions & 0 deletions packages/nobel/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,13 @@ button {
outline: none;
padding: 0;
}

a {
color: var(--accent-60);
text-decoration: none;
transition: var(--time);
}

a:hover {
color: var(--accent-100);
}
75 changes: 74 additions & 1 deletion pnpm-lock.yaml

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

0 comments on commit 9a018fc

Please sign in to comment.