From c9a7f312efcee00f0e61ff1551f6c85ad93c8673 Mon Sep 17 00:00:00 2001 From: nik-r-cmd Date: Mon, 13 May 2024 13:23:45 +0530 Subject: [PATCH] added the resource card feature --- Public/styles/result.css | 32 +++++++++++- views/result.ejs | 106 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 136 insertions(+), 2 deletions(-) diff --git a/Public/styles/result.css b/Public/styles/result.css index c678c5c..923a401 100644 --- a/Public/styles/result.css +++ b/Public/styles/result.css @@ -195,4 +195,34 @@ body { /* change the direction of the change here */ color: #fff; text-decoration: none; -} \ No newline at end of file +} + +.recommended-resources { + background-color: rgb(255, 255, 255); + border-radius: 5px; + padding: 1rem; + margin-top: 2rem; +} + +.recommended-resources h2 { + text-align: center; /* Center align the text inside the header */ + font-weight: bold; /* Make the text bold */ + margin-bottom: 1rem; /* Add space below the header */ +} + +.resource-card { + display: inline-block; /* Make cards appear side-by-side */ + width: calc(20% - 1rem); /* Set width to 20% of available space with 1rem margin */ + margin: 0.5rem; /* Add some margin between cards */ + padding: 1rem; /* Add padding inside cards */ + border: 1px solid #ddd; /* Add a thin border */ + border-radius: 5px; /* Add rounded corners to cards */ + background-color: #fff; /* Set card background color (white) */ + text-align: center; /* Center align content within cards */ +} + + + + + + diff --git a/views/result.ejs b/views/result.ejs index 0d708f6..2200cee 100644 --- a/views/result.ejs +++ b/views/result.ejs @@ -128,7 +128,111 @@ + - +