Skip to content

Commit

Permalink
Removed dot from resources
Browse files Browse the repository at this point in the history
  • Loading branch information
elrumo committed Oct 12, 2021
1 parent 350ef7b commit d53d7c4
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/macos-big-sur-icons/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@

<!-- Resources -->
<div class="resourcesLink">
<coral-status variant="info"></coral-status>
<!-- <coral-status variant="info"></coral-status> -->
<router-link to="/resources">
<button is="coral-button" variant="quiet">
<span>Resources</span>
</button>
</router-link>
</div>

<!-- Learning -->
<!-- <div class="resourcesLink">
<!-- Learning
<div class="resourcesLink">
<coral-status variant="info"></coral-status>
<router-link to="/resources">
<router-link to="/learning">
<button is="coral-button" variant="quiet">
<span>
Learning
Expand Down
47 changes: 47 additions & 0 deletions website/macos-big-sur-icons/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,53 @@ const routes = [
]
}
},
{
path: '/learning',
name: 'Learning',
component: () => import('../views/Learning.vue'),
meta: {
title: 'Free macOS Big Sur icon templates and tutorials.',
description:"Resources, templates and tutorials to help you design icons for macOS.",
titleTemplate: '%s | macOSicons',
meta:[
// Facebook
{
property: 'og:url',
content: 'https://macosicons.com/resources'
},
{
property: 'og:title',
content: 'Free macOS Big Sur icon templates and tutorials.',
},
{
property: 'og:description',
content: 'Resources, templates and tutorials to help you design icons for macOS.',
},
{
property: 'og:image',
content: 'https://raw.githubusercontent.com/elrumo/macOS_Big_Sur_icons_replacements/master/icons/Social/low-res/Resources-thumbnail.jpg'
},

// Twitter
{
property: 'twitter:url',
content: 'https://macosicons.com/resources'
},
{
property: 'twitter:description',
content: 'Resources, templates and tutorials to help you design icons for macOS.',
},
{
property: 'twitter:title',
content: 'Free macOS Big Sur icon templates and tutorials.',
},
{
property: 'twitter:image',
content: 'https://raw.githubusercontent.com/elrumo/macOS_Big_Sur_icons_replacements/master/icons/Social/low-res/Resources-thumbnail.jpg'
},
]
}
},
{
path: '/resources',
name: 'Resources',
Expand Down
168 changes: 168 additions & 0 deletions website/macos-big-sur-icons/src/views/Learning.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
<template>
<div>
<main class="content-wrapper-compact">

<H3-Description :text="introText" class="m-b-40"/>

<div class="resources-grid card-grid" id="how-to-install">

<ResourcesCard
:step='instructions'
:link="instructions.link"
/>

<ResourcesCard
v-for="resource in resourcesData"
:key="resource.name"
:link="'/resources/'+resource.slug"
:step='resource'
/>

<div
class="card-hover relative coral-card resources-card-ad"
@click="adClick({position: 'Icon Grid Bottom', type: 'Carbon'})"
>
<script
async="async"
type="application/javascript" src="//cdn.carbonads.com/carbon.js?serve=CEBIK27J&amp;placement=macosiconscom"
id="_carbonads_js">
</script>
<a
class="card-no-ad relative"
href="https://www.paypal.com/donate/?hosted_button_id=5PMNX4DPW83KN"
rel="noopener"
target="_blank"
style="width: 100%; left: 0;"
@click="logDonation('support-message')"
>
<div class="support-page">
<h3 class="coral-Heading--S m-0">
Support this page
</h3>
<p class="coral-Body--S m-0">
Please consider disabling your ad blocker or making a
<a
rel="noopener"
class="coral-Link"
target="_blank"
href="https://www.paypal.com/donate/?hosted_button_id=5PMNX4DPW83KN"
>
donation
</a>
to support this project.
</p>
</div>
</a>
</div>

</div>

</main>
</div>
</template>

<script>
// @ is an alias to /src
import { mapActions } from 'vuex'
import Header from '@/components/Header.vue'
import ResourcesCard from '@/components/ResourcesCard.vue'
import Footer from '@/components/Footer.vue'
import H3Description from '@/components/H3_Description.vue'
import pages from '@/api/pages.json';
export default {
name: 'Learning',
components: {
Header,
ResourcesCard,
Footer,
H3Description
},
metaInfo: {
// if no subcomponents specify a metaInfo.title, this title will be used
title: 'Free icon templates resources for macOS Monterey, Big Sur.',
description:"Resources and templates to help you design and showcase icons for macOS.",
// all titles will be injected into this template
titleTemplate: '%s | macOSicons',
meta:[
// Facebook
{
property: 'og:url',
content: 'https://macosicons.com/resources'
},
{
property: 'og:title',
content: 'Free icon templates resources and over 5000+ icons for macOS Monterey, Big Sur.',
},
{
property: 'og:description',
content: 'Resources and templates to help you design and showcase icons for macOS. Over 5000+ free icons ready for Big Sur.',
},
{
property: 'og:image',
content: 'https://raw.githubusercontent.com/elrumo/macOS_Big_Sur_icons_replacements/master/icons/Social/low-res/Resources-thumbnail.jpg'
},
// Twitter
{
property: 'twitter:url',
content: 'https://macosicons.com/resources'
},
{
property: 'twitter:description',
content: 'Resources and templates to help you design and showcase icons for macOS. Over 5000+ free icons ready for Big Sur.',
},
{
property: 'twitter:title',
content: 'Free icon templates resources and over 5000+ icons for macOS Monterey, Big Sur.',
},
{
property: 'twitter:image',
content: 'https://raw.githubusercontent.com/elrumo/macOS_Big_Sur_icons_replacements/master/icons/Social/low-res/Resources-thumbnail.jpg'
},
]
},
data(){
return {
isMobile: this.$isMobile(),
introText:{
h3: "Resources",
description: "Here you'll find guides, resources and templates to help you design and showcase icons for macOS.",
isAd: true
},
instructions:{
title: "How to change app icons",
feature_image: require("../assets/Instructions/intro-instructions.jpg"),
link: "/how-to",
},
resourcesData: pages
}
},
mounted: async function(){
const parent = this;
let storeResourcesData = parent.$store.state.resourcesData
parent.getPageData
// parent.getPages()
parent.resourcesData = await storeResourcesData;
},
methods: {
...mapActions([
'getPageData',
'adClick'
]),
async getPages(){
console.log(this.getPageData);
}
}
}
</script>

0 comments on commit d53d7c4

Please sign in to comment.