-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from nih-sparc/remove-reference-to-contentful…
…-tools-and-resources-page Removed reference to tools and events page contentful entry
- Loading branch information
Showing
3 changed files
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
<template> | ||
<paper | ||
:text="parseMarkdown(searchPaperText)" | ||
:button-text="searchPaperButton" | ||
:button-link="{ name: 'contact-us', query: { type: 'tool'} }" | ||
new-tab | ||
/> | ||
<div class="subpage"> | ||
<div class="heading2 mb-12"> | ||
Submit a Tool or Resource | ||
</div> | ||
<div class="mb-12"> | ||
Our goal is to collect useful Tools and Resources to share with the Community to enable researchers to access and enhance the current datasets and knowledge they can gain from the SPARC Portal for their own research. | ||
</div> | ||
<a | ||
:href="`/contact-us?type=tool`" | ||
target="_blank" | ||
> | ||
<el-button class="secondary"> | ||
Submit Tool <svgo-icon-open class="icon-open" /> | ||
</el-button> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Paper from '@/components/Paper/Paper.vue' | ||
import marked from '@/mixins/marked/index' | ||
export default { | ||
name: 'SubmitToolSection', | ||
mixins: [marked], | ||
components: { | ||
Paper | ||
}, | ||
async setup() { | ||
const { $contentfulClient } = useNuxtApp() | ||
const config = useRuntimeConfig() | ||
const response = await $contentfulClient.getEntry(config.public.ctf_tools_and_resources_page_id) | ||
const searchPaperButton = response.fields.searchPaperButton | ||
const searchPaperText = response.fields.searchPaperText | ||
return { | ||
searchPaperText, | ||
searchPaperButton | ||
} | ||
} | ||
name: 'SubmitToolSection' | ||
} | ||
</script> | ||
<style lang="scss" scoped> | ||
.subpage { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
padding-top: 1rem; | ||
} | ||
.icon-open { | ||
height: 1rem; | ||
width: 1rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters