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

Featured content update - Nov #784

Merged
merged 20 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions app/src/components/FeaturedContentMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<div class="sections">
<div class="section">
<PillGroup prefix="contentGroup"
:keys="['October 2023','September 2023','August 2023']"
:values="['October 2023','September 2023','August 2023']" v-model="contentGroup"
:keys="['November 2023','October 2023','September 2023','August 2023']"
:values="['November 2023','October 2023','September 2023','August 2023']" v-model="contentGroup"
:start-empty="false" />
</div>
</div>
Expand All @@ -47,7 +47,7 @@ export default class FeaturedContentMenu extends Vue {
public contentGroup = "";
public filtersChanged = false;
public defaultFilters = {
contentGroup: "'October 2023'",
contentGroup: "'November 2023'",
};
public loaded = false;

Expand Down
22 changes: 21 additions & 1 deletion app/src/views/FeaturedContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,27 @@ export default class FeaturedContent extends Vue {
}

// Conditional logic to show projects based on Featured Content Menu selection
if (contentGroup === "October 2023") {
if (contentGroup === "November 2023") {
this.description = "Checkout what developers have been building this month with Vertext AI, TensorFlow, Firebase and Jetpack Compose!";
const blogData1 = await fetchBlog("ml", "content-creation-using-makersuite-and-palm-api-3dfc3a924510");
if (blogData1) blogs.push(blogData1);
const blogData2 = await fetchBlog("ml","building-a-semantic-search-with-vertex-ai-f3ff5303de6a");
if (blogData2) blogs.push(blogData2);
const blogData3 = await fetchBlog("android", "effortlessly-toggle-between-lazycolumn-and-lazyverticalstaggeredgrid-20b2ccdf918d");
if (blogData3) blogs.push(blogData3);
const blogData4 = await fetchBlog("firebase", "how-to-use-firebase-cloud-messaging-on-android-d92cb4b53cfe");
if (blogData4) blogs.push(blogData4);
const blogData5 = await fetchBlog("firebase", "delivering-personalized-user-experiences-with-firebase-remote-config-personalization-180ab7b25d3");
if (blogData5) blogs.push(blogData5);
const blogData6 = await fetchBlog("cloud", "article-hub-build-a-language-converter-using-google-bard");
if (blogData6) blogs.push(blogData6);
const blogData7 = await fetchBlog("ml", "save-your-peach-crops-from-infection-with-this-simple-tensorflow-cnn-model");
if (blogData7) blogs.push(blogData7);
const repoData1 = await fetchRepo("ml", "coding-pot-Zero2Story");
if (repoData1) repos.push(repoData1);
addAndSortProjects(blogs, repos);
}
else if (contentGroup === "October 2023") {
this.description = "Discover content from Google Cloud, Android 14 and GenAI published in October!";
const blogData1 = await fetchBlog("cloud", "integrate-google-bard-in-flutter");
if (blogData1) blogs.push(blogData1);
Expand Down
Loading