Skip to content

Instantly share code, notes, and snippets.

View borlaym's full-sized avatar

Marton Borlay borlaym

  • Budapest, Hungary
View GitHub Profile
@borlaym
borlaym / curated-front-page-data.js
Last active December 2, 2019 17:06
Curated front page
// Here is the proposed data structure for the new home page, which consists entirely of these modules.
// Here is a wip doc for the modules: https://docs.google.com/document/d/1eA8CZmEVfwge3oNBOyD1YCiK1UIz2HXLbnBmdRzPYps/edit#
// A single blog would have an array of these modules
// HELP WANTED: help us find a freakin name for these CurationBlocks that make sense and doesn't conflict with anything
// we have currently.
type CurationBlock = {
id: CurationBlockId, // We store an id for each one so when you edit it, we can save based on id and not index
layout: string, // enum, each layout has its own name
autofill?: { // If this is not undefined, the module will autofill and ignore the cards array (for now)
@borlaym
borlaym / curated-front-page-final-data.js
Last active December 16, 2019 14:28
Final type of data structure for curated front page
type SideHeader = {
type: 'SideHeader',
title: string,
useLogo? : boolean,
description? : string,
customImage: SimpleImage,
links: Array <{
url: string,
text: string
}>
type FiveCardModular = {
name: 'FiveCardModular',
}
type FourCardModular = {
name: 'FourCardModular',
}
type HorizontalList = {
name: 'HorizontalList',