This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Fluid Typography | |
* https://smashingmagazine.com/2022/10/fluid-typography-clamp-sass-functions/ | |
*/ | |
@use 'sass:math'; | |
$default-min-bp: 320px; | |
$default-max-bp: 960px; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Code Sandbox</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function getGithubProfile(username) { | |
let response; | |
try { | |
response = await fetch(`https://api.github.com/users/${username}`); | |
} catch (error) { | |
throw new Error(`Network error: ${error.message}`); | |
} | |
if (!response.ok) { | |
const message = `HTTP error! status: ${response.status}`; |
OlderNewer