Skip to content

Commit

Permalink
blockClass
Browse files Browse the repository at this point in the history
  • Loading branch information
josephclaytonhansen committed Jan 23, 2024
1 parent 9973fa7 commit 4c9af9f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
build
src/components/servicesCalculator.vue
build
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://josephhansen.dev/</loc><changefreq>daily</changefreq><priority>0.3</priority></url><url><loc>https://josephhansen.dev/pricing</loc><changefreq>daily</changefreq><priority>0.3</priority></url></urlset>
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://josephhansen.dev/</loc><changefreq>daily</changefreq><priority>0.3</priority></url><url><loc>https://josephhansen.dev/pricing</loc><changefreq>daily</changefreq><priority>0.3</priority></url><url><loc>https://josephhansen.dev/contact</loc><changefreq>daily</changefreq><priority>0.3</priority></url></urlset>
Original file line number Diff line number Diff line change
Expand Up @@ -467,15 +467,15 @@
const blockClass = (brightness) => {
let classes = ""
classes += ringClass(brightness)
if (brightness == 5){
if (brightness == 5) {
classes += " bg-slate-100"
} else if (brightness == 4){
} else if (brightness == 4) {
classes += " bg-slate-400"
} else if (brightness == 3){
} else if (brightness == 3) {
classes += " bg-slate-500"
} else if (brightness == 2){
} else if (brightness == 2) {
classes += " bg-slate-700"
} else if (brightness == 1){
} else if (brightness == 1) {
classes += " bg-slate-800"
}
}
Expand Down Expand Up @@ -505,8 +505,7 @@
v-for="(block, index) in blocks"
:key="index"
class="md:wd-8/12 sm:wd-11/12 rounded bg-slate-100 p-5 border-4 flex-col mb-4"
:class="blockClass(brightness)
">
:class="blockClass(brightness)">
<div class="flex">
<div class="w-6/12">
<div
Expand Down
5 changes: 1 addition & 4 deletions src/components/main/blocks/services/PanelDesign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import chroma from "chroma-js"
const iconClass = (brightness) => {
if (brightness >= 4) {
return "text-emerald-500"
Expand Down Expand Up @@ -67,6 +66,4 @@
)
</script>

<template>

</template>
<template></template>

0 comments on commit 4c9af9f

Please sign in to comment.