Skip to content

Commit

Permalink
Merge pull request #141 from lukmarcus/great-companies-optional-url
Browse files Browse the repository at this point in the history
Great Companies optional url
  • Loading branch information
noisy committed Apr 21, 2024
2 parents 83472ce + 661d703 commit da00c7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/components/Companies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,24 @@
:key="company.name"
class="px-3 col-6 col-md-4 col-lg-2 px-md-5 px-lg-4"
>
<a class="logo-link" :href="company.url" target="_blank">
<a
v-if="company.url"
class="logo-link"
:href="company.url"
target="_blank"
>
<img
class="grayscale img-fluid svg-ie-fix"
:src="getAsset(`@/images/${company.logo}`)"
:title="company.name"
/>
</a>
<img
v-else
class="grayscale img-fluid svg-ie-fix"
:src="getAsset(`@/images/${company.logo}`)"
:title="company.name"
/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/types/IProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface IProject {
}
export interface ICompany {
name: string;
url: string;
url?: string;
logo: string;
}
export interface ISkillGroup {
Expand Down

0 comments on commit da00c7d

Please sign in to comment.