diff --git a/src/components/ResponsiveImage.tsx b/src/components/ResponsiveImage.tsx index 8aad51a..60278a2 100644 --- a/src/components/ResponsiveImage.tsx +++ b/src/components/ResponsiveImage.tsx @@ -36,7 +36,7 @@ const ResponsiveImage: React.FC = ({ } else { placeholder = require(`../assets/${url}?lqip`) responsiveImage = require(`../assets/${url}?resize&sizes[]=300,sizes[]=600,sizes[]=900,sizes[]=1200,sizes[]=1800&format=jpg`) - responsiveImageWebp = require(`../assets/${url}?resize&sizes[]=300,sizes[]=600,sizes[]=900,sizes[]=1200,sizes[]=1800&format=webp`) + responsiveImageWebp = require(`../assets/${url}?resize&sizes[]=300,sizes[]=600,sizes[]=900,sizes[]=1200,sizes[]=1800,sizes[]=1900&quality=90&format=webp`) } return ( diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index e239637..65d444c 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -4,7 +4,7 @@ import Document, { Head, Html, Main, NextScript } from 'next/document' const { publicRuntimeConfig } = getConfig() const description = - 'Sitio web para Seminario de Gestion de Contenidos para la web llevado a cabo por Lautaro Valdez e Ian Mancini' + 'Sitio web para Seminario de Gestion de Contenidos para la Web. Llevado a cabo por Lautaro Valdez e Ian Mancini. Año 2020' class MyDocument extends Document { render() { diff --git a/src/pages/notas.tsx b/src/pages/notas.tsx new file mode 100644 index 0000000..0a4d58f --- /dev/null +++ b/src/pages/notas.tsx @@ -0,0 +1,76 @@ +import { Link as ChakraLink, Stack, Heading, Text, Box, Flex } from '@chakra-ui/react' +import Link from 'next/link' + +import ResponsiveImage from '../components/ResponsiveImage' +import SEO from '../components/SEO' + +import { getAbout, getAllNotasWithImages, INotaWithImage, login } from '../lib/api' + +const Notas: React.FC<{ notas: INotaWithImage[] }> = ({ notas }) => { + return ( + <> + + + + Notas y pensamientos + + + {notas.map((nota) => ( + + + + + + + {nota.titulo} + + + {nota.tiempo_lectura} min de lectura + + + {nota.tags.map((tag) => ( + {tag} + ))} + + + + + + ))} + + + + ) +} + +export default Notas + +export async function getStaticProps() { + await login() + + const data = await getAllNotasWithImages() + + return { props: { notas: data } } +}