From e69d9582df226f189bd416c8d4c3d2c4529d2f7c Mon Sep 17 00:00:00 2001 From: sounmind Date: Mon, 10 Jun 2024 21:29:51 -0400 Subject: [PATCH 1/2] chore: fix html structure - remove duplicated body and head tags - format little code styles --- index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 59be2e7..7a4a23f 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,16 @@ - + placeholder title - + + @@ -18,10 +22,9 @@ rel="stylesheet" href="https://cdn.jsdelivr.net/gh/spoqa/spoqa-han-sans/css/SpoqaHanSansNeo.css" /> + - - +
From 5ac7a6f7650a999b06654745e40237c2ee38a212 Mon Sep 17 00:00:00 2001 From: sounmind Date: Mon, 10 Jun 2024 21:36:41 -0400 Subject: [PATCH 2/2] feat: add global css - set styles of - a tag - font family - scroll behavior - box sizing --- global-styles.css | 41 +++++++++++++++++++++++++++++++++++++++++ index.html | 14 ++++---------- styles.css | 15 --------------- 3 files changed, 45 insertions(+), 25 deletions(-) create mode 100644 global-styles.css delete mode 100644 styles.css diff --git a/global-styles.css b/global-styles.css new file mode 100644 index 0000000..d08f3ba --- /dev/null +++ b/global-styles.css @@ -0,0 +1,41 @@ +* { + font-family: "Spoqa Han Sans Neo", "Noto Sans KR", sans-serif; +} + +*, +*::before, +*::after { + box-sizing: border-box; +} + +a { + text-decoration: none; + color: inherit; + background: none; + border: none; + font: inherit; + margin: 0; + padding: 0; + cursor: pointer; +} + +a:visited { + color: inherit; +} + +a:hover { + color: inherit; + text-decoration: none; +} + +a:active { + color: inherit; +} + +a:focus { + outline: none; +} + +html { + scroll-behavior: smooth; +} diff --git a/index.html b/index.html index 7a4a23f..3286f64 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -11,7 +11,7 @@ > - +