-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHORE: Componentizing label node #23
- Loading branch information
Showing
8 changed files
with
126 additions
and
92 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
border: none; | ||
text-decoration: none; | ||
box-sizing: border-box; | ||
font-family: "Montserrat"; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script lang="ts" setup> | ||
import { useNodeStore, useTemplateStore } from '@/stores'; | ||
import { CategoryLabel, ArticleName, AuthorName } from '@/components'; | ||
const nodeStore = useNodeStore(); | ||
const templateStore = useTemplateStore(); | ||
</script> | ||
|
||
<template> | ||
<div ref="tooltip" class="tooltip" :style="{ | ||
opacity: templateStore.tooltipOpacity, | ||
position: 'absolute', | ||
top: nodeStore.currentNodePosition.y + 'px', | ||
left: nodeStore.currentNodePosition.x + 'px', | ||
}"> | ||
<CategoryLabel /> | ||
<ArticleName /> | ||
<AuthorName /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.tooltip { | ||
top: 0; | ||
left: 0; | ||
opacity: 1; | ||
position: absolute; | ||
width: 400px; | ||
height: auto; | ||
box-shadow: #75767a56 0px 1px 16px 0px; | ||
background-color: #ffffff; | ||
border-left: 20px solid #324CD6; | ||
transition: opacity 0.2s linear; | ||
pointer-events: none; | ||
padding: 15px; | ||
border-radius: 15px; | ||
font-weight: 500; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script lang="ts" setup> | ||
import { AccountOutline } from '@/components/icons'; | ||
import { useNodeStore } from '@/stores'; | ||
const nodeStore = useNodeStore(); | ||
</script> | ||
|
||
<template> | ||
<div class="node-author"> | ||
<AccountOutline class="icon-author" size="15" /> | ||
{{ nodeStore.currentNode.node.author }} | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.node-author { | ||
font-size: 13px; | ||
color: #22262F; | ||
margin: 8px 0 0 0px; | ||
display: flex; | ||
} | ||
.icon-author { | ||
margin: 0 4px 0 8px; | ||
align-items: baseline; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script lang="ts" setup> | ||
import { useNodeStore } from '@/stores'; | ||
const nodeStore = useNodeStore(); | ||
</script> | ||
|
||
<template> | ||
<div class="category-position"> | ||
<div class="node-category" v-for="(categoria, index) in nodeStore.currentNode.node.categoria" :key="index"> | ||
{{ categoria }} | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.node-category { | ||
font-size: 13px; | ||
color: #324CD6; | ||
margin: 2px 0 10px 0; | ||
border-right: 1px solid #000000; | ||
padding: 0 5px 0 5px; | ||
} | ||
.node-category:last-child { | ||
border-right: none; | ||
} | ||
.category-position { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<script lang="ts" setup> | ||
import { useNodeStore } from '@/stores'; | ||
const nodeStore = useNodeStore(); | ||
</script> | ||
|
||
<template> | ||
<div class="node-name"> | ||
{{ nodeStore.currentNode.node.name }} | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.node-name { | ||
font-size: 14px; | ||
margin-left: 10px; | ||
} | ||
</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