From 855cdbea763db85e4a06641fab45980b36b4104e Mon Sep 17 00:00:00 2001 From: RohanSreelesh Date: Tue, 14 Jun 2022 13:22:30 +0530 Subject: [PATCH 1/3] article component --- src/components/Article.astro | 86 ++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 src/components/Article.astro diff --git a/src/components/Article.astro b/src/components/Article.astro new file mode 100644 index 0000000..244208a --- /dev/null +++ b/src/components/Article.astro @@ -0,0 +1,86 @@ +--- +const {title , body} = Astro.props; +--- + + +
+
{title}
+ +
+
{body}
+
+ +
+ + \ No newline at end of file From f3ed1fb24f1545640c038effe8154516110aac1b Mon Sep 17 00:00:00 2001 From: RohanSreelesh Date: Tue, 14 Jun 2022 13:38:19 +0530 Subject: [PATCH 2/3] Fixed some spacing --- src/components/Article.astro | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Article.astro b/src/components/Article.astro index 244208a..6f6f726 100644 --- a/src/components/Article.astro +++ b/src/components/Article.astro @@ -7,19 +7,16 @@ const {title , body} = Astro.props; } .container{ position:relative; - background-color: var(--colour); border-radius: 0.1em; width: 30em; height: 17em; box-shadow: 0 0px 8px 0 rgba(0,0,0,0.07); - } .title{ padding: 20px 20px 0px 20px; font-weight: 500; font-size:30px; - } .body{ @@ -29,9 +26,7 @@ const {title , body} = Astro.props; -webkit-line-clamp: 5; -webkit-box-orient: vertical; max-width: 100%; - overflow: hidden; - - + overflow: hidden; } .body-container{ padding: 20px 20px 20px 20px; @@ -67,7 +62,6 @@ const {title , body} = Astro.props; .icon{ width: 20px; vertical-align:middle; - } From 0ad76e33a538adffb650ed8ce90eae777980517a Mon Sep 17 00:00:00 2001 From: RohanSreelesh Date: Fri, 17 Jun 2022 11:01:59 +0530 Subject: [PATCH 3/3] svg file --- public/assets/book-outline.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 public/assets/book-outline.svg diff --git a/public/assets/book-outline.svg b/public/assets/book-outline.svg new file mode 100644 index 0000000..9f6133c --- /dev/null +++ b/public/assets/book-outline.svg @@ -0,0 +1 @@ +Book \ No newline at end of file