Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arman625101 committed Jul 31, 2022
1 parent 8fcf20b commit 516c19b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/components/BionicText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ span.bionic-text {
font-size: 18px;
line-height: 1.4;
letter-spacing: 0.35px;
color: rgb(28, 28, 30);
color: var(--color-tertiary);
}
span.bionic {
color: var(--color-quinary);
font-weight: 600;
}
</style>
4 changes: 2 additions & 2 deletions src/components/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const transformToBionic = (content) => {
idx = Math.ceil(idx);
}

newWord.splice(idx, 0, '</b>');
newWord.unshift('<b>');
newWord.splice(idx, 0, '</span>');
newWord.unshift('<span class="bionic">');

return newWord.join('');
});
Expand Down

0 comments on commit 516c19b

Please sign in to comment.