-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Slider component to include zoom functionality and improve h…
…andle movement and size calculation
- Loading branch information
1 parent
3acecf2
commit 9a018fc
Showing
5 changed files
with
158 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.