From 51b0087a3bf7293528d1c42c5d37d78aef1b99b1 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 18 Jun 2017 18:34:57 -0700 Subject: [PATCH] Link CDN from constants --- components/Meta.js | 7 ++++++- lib/constants.js | 45 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/components/Meta.js b/components/Meta.js index 7443fb5..4f1c234 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -1,10 +1,15 @@ import Head from 'next/head' +import { THEMES } from '../lib/constants' export default () => (
- + { + THEMES.map(theme => ( + + )) + } diff --git a/lib/constants.js b/lib/constants.js index 5864d89..617713b 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -53,7 +53,50 @@ export const THEMES = [ }, { id: 'solarized', - name: 'Solarized' + name: 'Solarized', + light: true + }, + { + id: 'zenburn', + name: 'Zenburn' + }, + { + id: 'yeti', + name: 'Yeti', + light: true + }, + { + id: 'twilight', + name: 'Twilight' + }, + { + id: 'paraiso-dark', + name: 'Paraiso' + }, + { + id: 'monokai', + name: 'Monokai' + }, + { + id: 'material', + name: 'Material' + }, + { + id: 'isotope', + name: 'Isotope' + }, + { + id: 'cobalt', + name: 'Cobalt' + }, + { + id: 'oceanic', + name: 'Oceanic' + }, + { + id: '3024-day', + name: '3024 Day', + light: true } ]