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> | |
<head> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
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
export function truncate(str) { | |
const length = 100; | |
const ending = "..."; | |
if (str.length > length) { | |
return str.substring(0, length - ending.length) + ending; | |
} else { | |
return str; | |
} | |
} |
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
/* WIDTH: 1200 to 2000px */ | |
@media only screen and (max-width: 2000px) { | |
} | |
/* WIDTH: 1024 to 1200px */ | |
@media only screen and (max-width: 1200px) { | |
} | |
/* WIDTH: 768 to 1024px */ | |
@media only screen and (max-width: 1024px) { |
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
// USER OBJECT | |
const user = { | |
name: "blogtheorem", | |
ID: 123, | |
isCoding: true, | |
}; | |
// CRUD OPERATION | |
//1. CREATE |
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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
text-decoration: none; | |
list-style: none; | |
} | |
.clearfix::after { |