Skip to content

Commit

Permalink
Merge pull request #137 from lukmarcus/companyUrl-repositoryName
Browse files Browse the repository at this point in the history
companyUrl and repositoryName added to project properties
  • Loading branch information
noisy committed Apr 16, 2024
2 parents 5eeda86 + c23aa8e commit f4a3fd8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/components/ProjectInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@
<div class="sidebar-row mb-2 mb-xl-5">
<h3 class="sidebar-title mb-2 mb-xl-4">Project Info</h3>
<ul class="list-unstyled ps-2">
<li v-if="project.companyName" class="mb-2 mb-xl-4">
<li
v-if="project.companyName || project.companyUrl"
class="mb-2 mb-xl-4"
>
<font-awesome-icon
icon="building"
class="me-3 text-primary"
transform="grow-6 down-2"
/>
<strong>Company:</strong> {{ project.companyName }}
<strong>Company: </strong>
<a v-if="project.companyUrl" :href="project.companyUrl">{{
project.companyName || project.companyUrl
}}</a>
<span v-if="project.companyName && !project.companyUrl">
{{ project.companyName }}
</span>
</li>
<li
v-if="project.url || project.urlName || project.archivedUrl"
Expand Down Expand Up @@ -42,14 +51,16 @@
/>
<strong>Type:</strong> {{ project.type }}
</li>
<li v-if="project.repositoryUrl">
<li v-if="project.repositoryUrl" class="mb-2 mb-xl-4">
<font-awesome-icon
:icon="['fab', 'github']"
class="me-3 text-primary"
transform="grow-6 down-2"
/>
<strong>Source Code: </strong>
<a :href="project.repositoryUrl">{{ project.repositoryUrl }}</a>
<a :href="project.repositoryUrl">{{
project.repositoryName || project.repositoryUrl
}}</a>
</li>
</ul>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/types/IProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface IProject {
archivedUrl?: string;
type: string;
companyName?: string;
companyUrl?: string;
thumbnail: string;
summaryTitle: string;
summary: string;
Expand All @@ -81,6 +82,7 @@ export interface IProject {
technologies: ITechnology[];
thumbnailLogo: string;
featured: boolean;
repositoryName?: string;
repositoryUrl?: string;
}
export interface ICompany {
Expand Down

0 comments on commit f4a3fd8

Please sign in to comment.