Skip to content

Instantly share code, notes, and snippets.

@larturi
larturi / [platform].js
Created July 18, 2021 22:35
Nextjs dynamic url prevent 404 with getStaticPaths and getStaticProps
/* eslint-disable react-hooks/exhaustive-deps */
import React, { useState, useEffect } from 'react';
import { useRouter } from 'next/router';
import { Loader } from 'semantic-ui-react';
import { size } from 'lodash';
import BasicLayout from '../../layouts/BasicLayout';
import { getPlatformApi } from '../../api/platform';
import { getGamesPlatformApi, getTotalGamesPlatformApi } from '../../api/game';
import Games from '../../components/Games';
import Pagination from '../../components/Pagination';
@larturi
larturi / gist:bfe1f98d6f16c58cf28ed7684d78fefb
Created April 22, 2020 16:50
Bootstrap - Grid Responsive
<html>
<header>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</header>
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6">
One of three columns