Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added link in consortia #238

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions pages/about/consortia/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
:button-link="whoWeAreButtonLink" />
<paper class="row-item" :text="parseMarkdown(ourResearch)" :button-text="ourResearchButtonText"
:button-link="ourResearchButtonLink" />
<paper v-if="forInvestigators" class="row-item" :text="parseMarkdown(forInvestigators)"
:button-text="forInvestigatorsButtonLabel" :button-link-external="forInvestigatorsButtonLink" />
</div>
<div v-if="featuredDataset?.title" class="featured-dataset-container p-24 mt-32">
<div class="heading2 mb-16">Here is a dataset you might be interested in:</div>
Expand Down Expand Up @@ -91,6 +93,9 @@ const ourResearchButtonText = computed(() => pathOr('', ['fields', 'ourResearchB
const ourResearchButtonLink = computed(() => pathOr('', ['fields', 'ourResearchButtonLink'], consortiaItem.value))
const learnMore = computed(() => pathOr([], ['fields', 'learnMore'], consortiaItem.value))
const logoUrl = computed(() => pathOr('', ['fields', 'logo', 'fields', 'file', 'url'], consortiaItem.value))
const forInvestigators = computed(() => pathOr('', ['fields', 'forInvestigators'], consortiaItem.value))
const forInvestigatorsButtonLabel = computed(() => pathOr('', ['fields', 'forInvestigatorsButtonLabel'], consortiaItem.value))
const forInvestigatorsButtonLink = computed(() => pathOr('', ['fields', 'forInvestigatorsButtonLink'], consortiaItem.value))

const featuredDatasetLink = computed(() => {
const datasetPath = featuredDataset.value?.id ? `/datasets/${featuredDataset.value.id}` : '/';
Expand Down Expand Up @@ -205,24 +210,27 @@ onMounted(async () => {
background-color: white;
}

.row-item {
width: 49%;
.row {
display: flex;

gap: 20px;
@media screen and (max-width: 767px) {
width: 100%;
flex-direction: column;
}
}

.row {
.row-item {
flex: 1;
display: flex;
justify-content: space-between;

flex-direction: row;
@media screen and (max-width: 767px) {
flex-direction: column;
width: 100%;
}
& > :deep(.subpage-col) {
flex: 1
}
}


.gallery-items-container {
background-color: white;
border: 1px solid $lineColor1;
Expand Down
Loading