This task involves implementing a component named RecommendedResourceCard in Studio to display recommended resources to users within the recommended resources side panel. The implementation wraps around the KCard component.
Description and outcomes
Design requirements
Markup requirements
The outermost element is <KCard>
<KCard ...>
// Other Recommended resources relevant code
...
</KCard>
Styling requirements
This card inherits from the KCard component.
Architecture requirements
Is built as a single component
Wraps around the KCard component
Has appropriate props to pass data into KCard
Uses KIcon to render icons
Uses KIconButton to render clickable icons
Uses the learningActivity to dynamically set the learning activity and its corresponding icon
It uses the the horizontallayout and the smallthumbnailDisplay. See KCard specifications
Props
Name
Description
Type
Required
Default
to
Router-link object that enables user navigation to the intended route.
Object
true
-
title
Sets the value of the title text.
String
false
null
level
Sets the value of the level text.
String
false
null
thumbnailSrc
Source URL of a thumbnail image
String
false
null
thumbnailScaleType
Specifies how an image should be scaled within the thumbnail area. See KImg for supported types.
String
false
'centerInside'
learningActivity
Sets the value of the learning activity.
String
false
null
Events
Name
Description
focus
Emitted when the card element has received focus.
hover
Emitted when the mouse pointer enters or leaves the card element
Acceptance Criteria
Conforms fully to the specification above
Assumptions and Dependencies
The implementation wraps around the KCard component
Overview
This task involves implementing a component named
RecommendedResourceCard
in Studio to display recommended resources to users within the recommended resources side panel. The implementation wraps around theKCard
component.Description and outcomes
Design requirements
Markup requirements
<KCard>
Styling requirements
KCard
component.Architecture requirements
KCard
componentKCard
KIcon
to render iconsKIconButton
to render clickable iconslearningActivity
to dynamically set the learning activity and its corresponding iconhorizontal
layout
and thesmall
thumbnailDisplay
. See KCard specificationsProps
to
Object
true
title
String
false
null
level
String
false
null
thumbnailSrc
String
false
null
thumbnailScaleType
KImg
for supported types.String
false
'centerInside'
learningActivity
String
false
null
focus
hover
Acceptance Criteria
Assumptions and Dependencies
KCard
componentKCard
will initially be developed in Studio before being moved into KDSScope
The scope of this task is limited to;
This task doesn’t include;
KCard
componentAccessibility Requirements
KCard
’s accessibility featuresResources