An awesome responsive navbar with cool animations using flexbox and css clip-path properties and little javascript for click events.
A Pen by Hiten Sharma on CodePen.
| import { connectToDatabase } from '$lib/db'; | |
| import { ObjectId } from 'mongodb'; | |
| export async function get(request) { | |
| try { | |
| const completed = request.query.get('completed') === 'true' ? true : false; | |
| const dbConnection = await connectToDatabase(); | |
| const db = dbConnection.db; | |
| const collection = db.collection('sveltetodos'); | |
| const todos = await collection.find({ completed }).toArray(); |
| var GithubApi = require('github'); | |
| var github = new GithubApi({ | |
| version: '3.0.0' | |
| }); | |
| function getPentaCodeAvatar() { | |
| return new Promise((resolve, reject) => { | |
| github.search.users({ q: 'pentacode' }, (err, res) => { | |
| if (err) { |
| #results1.col-sm-6.col-sm-offset-3 | |
| #results2.col-sm-6.col-sm-offset-3 | |
| #results3.col-sm-6.col-sm-offset-3 |