summaryrefslogtreecommitdiffstats
path: root/src/components/Icons
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-29 17:52:21 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-29 18:01:06 +0100
commit8e0c8c9255ba5ab466d8372fe223efeb5a3f0833 (patch)
tree67102c4c0776f83c8f845266728cb4099a14b41a /src/components/Icons
parent76c01d51ccbdd0faaf12b624328a40ef24f33f88 (diff)
chore: replace read more link with ButtonLink component
I also fix the load more button position since I removed the margin auto.
Diffstat (limited to 'src/components/Icons')
-rw-r--r--src/components/Icons/Arrow/Arrow.module.scss7
-rw-r--r--src/components/Icons/Arrow/Arrow.tsx18
-rw-r--r--src/components/Icons/index.tsx2
3 files changed, 27 insertions, 0 deletions
diff --git a/src/components/Icons/Arrow/Arrow.module.scss b/src/components/Icons/Arrow/Arrow.module.scss
new file mode 100644
index 0000000..49e9b02
--- /dev/null
+++ b/src/components/Icons/Arrow/Arrow.module.scss
@@ -0,0 +1,7 @@
+@use "@styles/abstracts/functions" as fun;
+
+.icon {
+ fill: var(--color-primary);
+ width: var(--icon-size, #{fun.convert-px(30)});
+ transition: all 0.25s ease-in-out 0s;
+}
diff --git a/src/components/Icons/Arrow/Arrow.tsx b/src/components/Icons/Arrow/Arrow.tsx
new file mode 100644
index 0000000..61edfca
--- /dev/null
+++ b/src/components/Icons/Arrow/Arrow.tsx
@@ -0,0 +1,18 @@
+import styles from './Arrow.module.scss';
+
+const ArrowIcon = () => {
+ return (
+ <svg
+ className={styles.icon}
+ viewBox="0 0 64.644997 23.476001"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="m 0,15.45 40.008,-0.018 v 8.044 L 64.645,11.715 39.845,0 V 8.044 L 0,8.186 Z"
+ id="path2"
+ />
+ </svg>
+ );
+};
+
+export default ArrowIcon;
diff --git a/src/components/Icons/index.tsx b/src/components/Icons/index.tsx
index 9144619..1594775 100644
--- a/src/components/Icons/index.tsx
+++ b/src/components/Icons/index.tsx
@@ -1,3 +1,4 @@
+import ArrowIcon from './Arrow/Arrow';
import BlogIcon from './Blog/Blog';
import CloseIcon from './Close/Close';
import ContactIcon from './Contact/Contact';
@@ -10,6 +11,7 @@ import SunIcon from './Sun/Sun';
import ThemeIcon from './Theme/Theme';
export {
+ ArrowIcon,
BlogIcon,
CloseIcon,
ContactIcon,