fix blog posts in nav

This commit is contained in:
mildtomato committed 2020-12-03 17:18:48 +08:00
1 parent eec95b0a03
commit 45d83b833e
2 files changed
+14 -40

No files matched your search

+3 -5
View File
@@ -1,8 +1,6 @@
import React from 'react'
import Badge from 'components/Badge'
import SolutionsData from 'data/Solutions.json'
import CompanyData from 'data/Company.json'
import CaseStudiesData from 'data/CaseStudies.json'
import BlogPostsData from 'data/BlogPosts.json'
const Company = () => {
const iconSections = Object.values(CompanyData).map((company) => {
@@ -60,7 +58,7 @@ const Company = () => {
Latest blog posts
</h3>
<ul className="mt-6 space-y-6">
{CaseStudiesData.map((caseStudy: any, idx: number) => (
{BlogPostsData.map((caseStudy: any, idx: number) => (
<li className="flow-root" key={`flyout_case_${idx}`}>
<a
href={caseStudy.url}
@@ -81,7 +79,7 @@ const Company = () => {
</div>
<div className="mt-6 text-sm font-medium">
<a
href="/blog"
href="https://supabase.io/blog"
className="text-gray-600 hover:text-gray-500 dark:text-brand-600 dark:hover:text-brand-700 transition ease-in-out duration-150"
>
View all posts <span aria-hidden="true">&rarr;</span>
+11 -35
View File
@@ -1,50 +1,26 @@
[
{
"type": "Blog post",
"title": "A web crawler handling millions of API requests.",
"description": "See how Monitoro built an automated a scraping platform using Supabase.",
"imgUrl": "images/case-study-monitoro.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Monitoro",
"url": "/casestudies/monitoro",
"title": "Tayfa Built a No-Code Website Builder Deployed in Seven Days",
"description": "",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
"publishDate": "Mar 16, 2020",
"avatarUrl": "https://supabase.io/blog/2020/12/02/case-study-xendit",
"publishDate": "",
"readLength": 6
},
"ctaText": "View case study"
"ctaText": "View blog post"
},
{
"type": "Blog post",
"title": "A no-code website builder, deployed in seven days.",
"description": "See how Tayfa went from idea to paying customer in less than 30 days.",
"imgUrl": "images/case-study-tayfab.jpg",
"logoUrl": "images/logos/monitoro.png",
"organization": "Tayfab",
"url": "/casestudies/monitoro",
"title": "Supabase Partners With Strive School To Help Teach Open Source",
"description": "",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
"publishDate": "Mar 27, 2020",
"readLength": 5
"avatarUrl": "https://supabase.io/blog/2020/12/02/supabase-striveschool",
"publishDate": "",
"readLength": 6
},
"ctaText": "View case study"
},
{
"type": "Blog post",
"title": "Counter-fraud watchlists for the fintech industry.",
"description": "See how Xendit use Supabase to build a full-text search engine.",
"imgUrl": "images/case-study-xendit.jpg",
"logoUrl": "images/logos/xendit.png",
"organization": "Llama Lab",
"url": "/casestudies/monitoro",
"postMeta": {
"name" : "Paul Copplestone",
"avatarUrl": "https://avatars0.githubusercontent.com/u/10214025?v=4",
"publishDate": "Mar 20, 2020",
"readLength": 10
},
"ctaText": "View case study"
"ctaText": "View blog post"
}
]