Skip to content

Commit

Permalink
f clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Jul 15, 2024
1 parent 54c236e commit 81ae605
Show file tree
Hide file tree
Showing 24 changed files with 199 additions and 285 deletions.
2 changes: 0 additions & 2 deletions assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ html {
height: 100%;
margin: 0;
padding: 0;
// color: $white;
// background-color: $black;
}
4 changes: 0 additions & 4 deletions assets/styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@
.title-h1 {
@apply font-title text-9xl;
font-weight: 600;
/* line-height: 1; */
line-height: 0.9;
color: #232323;

}
.title-h2 {
/* @apply font-title text-8xl; */
/* @apply text-7xl; */
@apply text-5xl sm:text-6xl lg:text-7xl;
/* @apply lg:text-7xl; */

font-weight: 600;
line-height: 1.1;
Expand Down
Empty file.
14 changes: 7 additions & 7 deletions components/ArrowButton.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<CustomButton :type="ButtonType.terciary">
<span class="flex items-center">
<slot></slot>
<ArrowRightIcon class="arrow ml-md"></ArrowRightIcon>
</span>
</CustomButton>
<CustomButton :type="ButtonType.terciary">
<span class="flex items-center">
<slot></slot>
<ArrowRightIcon class="arrow ml-md"></ArrowRightIcon>
</span>
</CustomButton>
</template>

<script setup>
Expand All @@ -30,4 +30,4 @@ defineProps({
.arrow {
height: 14px;
}
</style>
</style>
15 changes: 6 additions & 9 deletions components/Banner.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<template>

Check failure on line 1 in components/Banner.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Component name "Banner" should always be multi-word
<div class="w-full bg-dotted h-xl" :class="[`bg-dotted-${color}`]" />
<div class="w-full bg-dotted h-xl" :class="[`bg-dotted-${color}`]" />
</template>

<script setup lang="ts">
enum BannerColor {
blue = 'blue',
black = 'black',
Expand All @@ -26,14 +25,12 @@ defineProps({
}
.bg-dotted-blue {
background-image: url('/assets/svg/dots.svg');
background-size: contain;
background-image: url('/assets/svg/dots.svg');
background-size: contain;
}
.bg-dotted-black {
background-image: url('/assets/svg/dots-black.svg');
background-size: contain;
background-image: url('/assets/svg/dots-black.svg');
background-size: contain;
}
</style>
</style>
23 changes: 1 addition & 22 deletions components/FooterSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const footerSections = {
}
import snakeCase from 'lodash.snakecase'

Check failure on line 100 in components/FooterSection.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Import in body of module; reorder to top

Check failure on line 100 in components/FooterSection.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

`lodash.snakecase` import should occur before import of `@/assets/svg/ado.svg?component`
import { URLS } from "../constants"
import { URLS } from '../constants'

Check failure on line 101 in components/FooterSection.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Import in body of module; reorder to top

Check failure on line 101 in components/FooterSection.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

`../constants` import should occur before import of `@/assets/svg/ado.svg?component`
function getFooterLinks(sections) {
return Object.entries(sections).map(([sectionName, sectionItems]) => ({
Expand All @@ -116,24 +116,3 @@ function getI18nStringFromSectionItem(sectionName, sectionItem) {
const footerLinks = getFooterLinks(footerSections)
</script>

<style scoped lang="scss">
// .bottom {
// grid-template-columns: max-content 1fr;
// grid-template-rows: max-content;
// .copyright {
// grid-row: 2;
// grid-column: 2;
// }
// .logo {
// grid-row: 2;
// grid-column: 1;
// }
// }
// @media (min-width: 600px) {
// .bottom {
// grid-template-columns: max-content 1fr max-content;
// }
// }
</style>
20 changes: 9 additions & 11 deletions components/IconWithText.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<template>
<a :href="link">
<div class="flex items-center">
<RoundedIcon class="mr-md">
<slot></slot>
<!-- <GateIcon /> -->
</RoundedIcon>
<p class="text-lg">{{ text }}</p>
</div>
<div class="flex items-center">
<RoundedIcon class="mr-md">
<slot></slot>
</RoundedIcon>
<p class="text-lg">{{ text }}</p>
</div>
</a>
</template>

Expand All @@ -18,12 +17,11 @@ defineProps({
},
link: {
type: String,
required: true
}
required: true,
},
})
</script>


<style>
/* TODO */
.bg-white-50 {
Expand All @@ -33,4 +31,4 @@ defineProps({
.bg-black-950 {
color: white;

Check failure on line 32 in components/IconWithText.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Insert `·`
}
</style>
</style>
10 changes: 5 additions & 5 deletions components/PlatformsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ type Platform = {
const platforms: Array<Platform> = [
{
name: 'Docker',
url: URLS.dockerNode,
url: URLS.docker_node,
icon,
},
{
name: 'Windows',
url: URLS.windowsNode,
url: URLS.windows_node,
icon,
},
{
name: 'macOS',
url: URLS.macosNode,
url: URLS.macos_node,
icon,
},
{
name: 'GNU/Linux',
url: URLS.linuxNode,
url: URLS.linux_node,
icon,
},
{
name: 'Rasberry Pi',
url: URLS.rasberrypiNode,
url: URLS.rasberrypi_node,
icon,
},
]
Expand Down
4 changes: 2 additions & 2 deletions components/RoundedIcon.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="border border-black-950 w-min rounded-full p-md bg-wit-blue-500">
<slot></slot>
</div>
</template>
</div>
</template>
44 changes: 23 additions & 21 deletions components/cards/OutOfBoundariesCard.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!--TODO: This comment is the bigger version of the component. We have to add slashes in bigger screens
in the current component below -->

<!-- <template>
<div
class="out-of-boundaries card border-2 border-black-950 bg-white-50 rounded-lg px-xl py-xl max-w-sm"
Expand All @@ -21,27 +24,26 @@
</template> -->

<template>
<div>

<div
class="out-of-boundaries card border-2 border-black-950 bg-white-50 rounded-lg px-xl py-xl max-w-sm"
>
<RoundedIcon class="rounded-icon">
<slot name="icon"></slot>
</RoundedIcon>
<h3 class="text-2xl text-black-950 font-semibold leading-4 pl-14">
{{ title }}
</h3>
<hr class="hr my-md ml-14" />
<p class="text-base text-black-950 mb-xl">
{{ description }}
</p>
<div>
<div
class="out-of-boundaries card border-2 border-black-950 bg-white-50 rounded-lg px-xl py-xl max-w-sm"
>
<RoundedIcon class="rounded-icon">
<slot name="icon"></slot>
</RoundedIcon>
<h3 class="text-2xl text-black-950 font-semibold leading-4 pl-14">
{{ title }}
</h3>
<hr class="hr my-md ml-14" />
<p class="text-base text-black-950 mb-xl">
{{ description }}
</p>

<div class="flex items-center">
<ArrowButton class="action">{{ action }}</ArrowButton>
<div class="flex items-center">
<ArrowButton class="action">{{ action }}</ArrowButton>
</div>
</div>
</div>
</div>
</template>

<script setup lang="ts">
Expand All @@ -57,15 +59,15 @@ const props = defineProps({
},
action: {
type: String,
required: true
}
required: true,
},
})
</script>

<style scoped lang="scss">
:slotted(svg) {
width: 60px;
height: 60px;
height: 60px;
}
.out-of-boundaries {
// add margin equal to out of boundaries
Expand Down
10 changes: 4 additions & 6 deletions components/cards/TutorialsSubList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
<div class="border-2 border-black-950 rounded-lg px-xl py-md m-sm w-72">
<h3 class="title-h4">{{ title }}</h3>

<hr class="hr my-md">
<hr class="hr my-md" />

<ul>
<li v-for="tutorial in tutorials"
class="list-disc list-inside"
>
<li v-for="tutorial in tutorials" class="list-disc list-inside">
<TutorialLink
class="block"
:key="tutorial.name"

Check warning on line 11 in components/cards/TutorialsSubList.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Attribute ":key" should go before "class"
Expand Down Expand Up @@ -45,6 +43,6 @@ defineProps({
}
.hr {
height: 3px;
background-color: black; /* Modern Browsers */
background-color: black; /* Modern Browsers */
}
</style>
</style>
6 changes: 3 additions & 3 deletions components/sections/BuildSection.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<template>
<SectionBase :description="t('build-section.description')">
<template v-slot:title>
<template #title>
<i18n-t
keypath="build-section.title.key_features"
class="title-h2"
tag="span"
id="build"

Check warning on line 8 in components/sections/BuildSection.vue

View workflow job for this annotation

GitHub Actions / cache-and-install

Attribute "id" should go before "tag"
>
<span class="blue">{{ $t('build-section.title.dot') }}</span>
<span class="text-wit-blue-500">{{ $t('build-section.title.dot') }}</span>
</i18n-t>
</template>

<template v-slot:content>
<template #content>
<div class="grid grid-cols-1 gap-sm lg:grid-cols-2">
<BuildWithWitnet
v-for="(reason, index) in reasons"
Expand Down
31 changes: 11 additions & 20 deletions components/sections/BuySection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,15 @@
:link="exchange.link"
class="w-60"
>
<GateIcon class="icon" v-if="exchange.logo === 'gate'"></GateIcon>
<MexcIcon class="icon" v-if="exchange.logo === 'mexc'"></MexcIcon>
<BitmartIcon
class="icon"
v-if="exchange.logo === 'bitmart'"
></BitmartIcon>
<ChangellyIcon
class="icon"
v-if="exchange.logo === 'changelly'"
></ChangellyIcon>
<SimpleswapIcon
class="icon"
v-if="exchange.logo === 'simpleswap'"
></SimpleswapIcon>
<GateIcon class="icon" v-if="exchange.logo === 'gate'" />
<MexcIcon class="icon" v-if="exchange.logo === 'mexc'" />
<BitmartIcon class="icon" v-if="exchange.logo === 'bitmart'" />
<ChangellyIcon class="icon" v-if="exchange.logo === 'changelly'" />
<SimpleswapIcon class="icon" v-if="exchange.logo === 'simpleswap'" />
<LetsexchangeIcon
class="icon"
v-if="exchange.logo === 'letsexchange'"
></LetsexchangeIcon>
/>
</IconWithText>
</div>
</template>
Expand All @@ -47,7 +38,7 @@ import BitmartIcon from '@/assets/svg/bitmart.svg?component'
import ChangellyIcon from '@/assets/svg/changelly.svg?component'
import SimpleswapIcon from '@/assets/svg/simpleswap.svg?component'
import LetsexchangeIcon from '@/assets/svg/letsexchange.svg?component'
import { URLS } from "../../constants.js"
import { URLS } from '../../constants.js'
const { t } = useI18n()
const exchanges: Array<any> = [
Expand All @@ -64,22 +55,22 @@ const exchanges: Array<any> = [
{
name: t('buy-section.exchanges.bitmart'),
logo: 'bitmart',
link: URLS.bitmart
link: URLS.bitmart,
},
{
name: t('buy-section.exchanges.changelly'),
logo: 'changelly',
link: URLS.changelly
link: URLS.changelly,
},
{
name: t('buy-section.exchanges.simpleswap'),
logo: 'simpleswap',
link: URLS.simpleswap,
link: URLS.simpleswap,
},
{
name: t('buy-section.exchanges.letsexchange'),
logo: 'letsexchange',
link: URLS.letsexchange
link: URLS.letsexchange,
},
]
</script>
Expand Down
Loading

0 comments on commit 81ae605

Please sign in to comment.