{"id":2080,"date":"2024-01-12T14:41:47","date_gmt":"2024-01-12T19:41:47","guid":{"rendered":"https:\/\/carleton.ca\/cutheme-docs\/?page_id=2080"},"modified":"2024-10-30T10:44:20","modified_gmt":"2024-10-30T14:44:20","slug":"icon-cards","status":"publish","type":"page","link":"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-3-featured-content-blocks\/icon-cards\/","title":{"rendered":"Icon Cards"},"content":{"rendered":"\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n            <div class=\"cu-textmedia flex flex-col lg:flex-row mx-auto gap-6 md:gap-10 my-6 md:my-12 first:mt-0 max-w-5xl\">\n        <div class=\"justify-start cu-textmedia-content cu-prose-first-last\" style=\"flex: 0 0 100%;\">\n            <header class=\"font-light prose-xl cu-pageheader md:prose-2xl cu-component-updated cu-prose-first-last\">\n                                    <h1 class=\"cu-prose-first-last font-semibold !mt-2 mb-4 md:mb-6 relative after:absolute after:h-px after:bottom-0 after:bg-cu-red after:left-px text-3xl md:text-4xl lg:text-5xl lg:leading-[3.5rem] pb-5 after:w-10 text-cu-black-700 not-prose\">\n                        Icon Cards\n                    <\/h1>\n                \n                                \n                                    \n\n<p>Module 3.2 \u2013 Mastery: Featured Content Blocks: Icon Cards<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/block-library\/card-blocks\/\">Examples: Icon Cards<\/a><\/div>\n<\/div>\n\n\n                            <\/header>\n\n                    <\/div>\n\n            <\/div>\n\n    <\/div>\n<\/section>\n\n\n\n\n<div class=\"w-full max-w-xl mx-auto overflow-hidden bg-white rounded-lg shadow-lg cu-stackedlist cu-component not-contained not-prose\">\n    <h2 class=\"px-6 py-4 text-base font-semibold border-b rounded-t-lg md:text-xl bg-gray-50 text-cu-black-800\">\n        Table of Contents\n    <\/h2>\n    <div class=\"grid cu-scrollto cu-stackedlist--toc cu-stackedlist--1 md:grid-cols-1\">\n            <div class=\"space-y-1\">\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        1.\n                    <\/span>\n\n                    <a href=\"#step-by-step\" class=\"font-medium hover:underline\">\n                        Step-By-Step\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        2.\n                    <\/span>\n\n                    <a href=\"#video-tutorial\" class=\"font-medium hover:underline\">\n                        Video Tutorial\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n                    \n            <div class=\"pl-4 text-cu-red-700\">\n                <div class=\"flex gap-2 pb-3 text-base md:text-lg\">\n                    <span class=\"font-light text-cu-black-700\">\n                        3.\n                    <\/span>\n\n                    <a href=\"#try-it-out\" class=\"font-medium hover:underline\">\n                        Try it Out!\n                    <\/a>\n                <\/div>\n\n                            <\/div>\n            <\/div>\n\n    <\/div>\n<\/div>\n\n\n\n<p>The Icon Cards block is a block that is used to highlight content, similar to <a href=\"https:\/\/carleton.ca\/cutheme-docs\/advanced\/module-4-homepage\/featured-cards\/\">Featured Cards<\/a>. You can use it on your homepage (like Quick Links in our CMS theme). Or you can use it anywhere else on your site to draw attention to info and other pages on your site. The icon cards block features text excerpts, icons, and buttons for calls to action.<\/p>\n\n\n\n<h2 id=\"step-by-step\" class=\"wp-block-heading\">Step-By-Step<\/h2>\n\n\n\n<p>1. To add an &#8220;Icon&#8221; block, <a href=\"https:\/\/carleton.ca\/cutheme-docs\/getting-started\/module-3-essential-text-blocks\/module-3-blocks-overview\/#addblock\">open up the block menu<\/a> and select &#8220;Icon Cards.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"170\" height=\"164\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-12.58.05@2x.png\" alt=\"Icon cards\" class=\"wp-image-2089\" style=\"width:104px;height:auto\"\/><\/figure>\n\n\n\n<p>An empty row of 3 icon cards will be added to your page with a default &#8220;headphones&#8221; icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1936\" height=\"454\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x.png\" alt=\"Empty text icon block\" class=\"wp-image-3956\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x.png 1936w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x-512x120.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x-1024x240.png 1024w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x-320x75.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x-768x180.png 768w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.53.36@2x-1536x360.png 1536w\" sizes=\"auto, (max-width: 1936px) 100vw, 1936px\" \/><\/figure>\n\n\n\n<p>2. Start by clicking on a single icon card within the block. Under the block options tab, select your icon from the dropdown. <\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/cuweb.github.io\/rds\/?path=\/story\/resources-icons--icons\">View all available icons<\/a><\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"592\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.05.41@2x.png\" alt=\"\" class=\"wp-image-2097\" style=\"width:231px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.05.41@2x.png 558w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.05.41@2x-320x339.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.05.41@2x-512x543.png 512w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p>3. Next, click in the title area to add a title. (Note the 80-character text limit)<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"452\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.16@2x.png\" alt=\"80 character title limit screenshot\" class=\"wp-image-3958\" style=\"width:239px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.16@2x.png 616w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.16@2x-512x376.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.16@2x-320x235.png 320w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n\n\n\n<p>4. Click in the content area below the title to add a description.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"420\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.59@2x.png\" alt=\"Content area screenshot\" class=\"wp-image-3960\" style=\"width:248px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.59@2x.png 600w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.59@2x-512x358.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.55.59@2x-320x224.png 320w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>5. Under block options at the rught, add a button by selecting <strong class=\"myprefix-text-bold\">Internal <\/strong>or<strong class=\"myprefix-text-bold\"> External <\/strong>and then add the URL.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"556\" height=\"316\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.25.52@2x.png\" alt=\"\" class=\"wp-image-2103\" style=\"width:289px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.25.52@2x.png 556w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.25.52@2x-320x182.png 320w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/01\/CleanShot-2024-01-15-at-13.25.52@2x-512x291.png 512w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p>6. Access options for the entire block by clicking at the top left of the context menu.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"552\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.57.00@2x.png\" alt=\"\" class=\"wp-image-3961\" style=\"width:265px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.57.00@2x.png 674w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.57.00@2x-512x419.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.57.00@2x-320x262.png 320w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p>Choose your options under the Block tab.<\/p>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    <div class=\"grid gap-6 mx-auto my-6 cu-column md:gap-10 md:grid-cols-2 md:my-10 first:mt-0\">\n        \n<div class=\"cu-column-content\">\n    \n\n<ol class=\"wp-block-list\">\n<li>Add a header for the block.<\/li>\n\n\n\n<li>Select white or grey for the block background.<\/li>\n\n\n\n<li>Select the number of columns (icon cards in each block). <\/li>\n<\/ol>\n\n\n<\/div>\n\n\n<div class=\"cu-column-content\">\n    \n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"586\" src=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.58.16@2x.png\" alt=\"Display options screenshot\" class=\"wp-image-3962\" style=\"width:332px;height:auto\" srcset=\"https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.58.16@2x.png 540w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.58.16@2x-512x556.png 512w, https:\/\/carleton.ca\/cutheme-docs\/wp-content\/uploads\/sites\/2\/2024\/07\/CleanShot-2024-07-05-at-14.58.16@2x-320x347.png 320w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/figure>\n\n\n<\/div>\n\n\n    <\/div>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"video-tutorial\" class=\"wp-block-heading\">Video Tutorial<\/h2>\n\n\n\n<div class=\"cu-section cu-section-5xl not-contained  cu-prose cu-prose-dark\"><figure class=\"cu-embed cu-component not-contained mx-auto max-w-5xl\"><div class=\"relative w-full pb-[56.25%] overflow-hidden border border-cu-black-100\"><iframe title=\"Videos Embed\" src=\"https:\/\/www.youtube.com\/embed\/zbHO1eNQf-c\" class=\"cu-embed-iframe\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div><\/figure><\/div>\n\n\n\n<section class=\"w-screen px-6 cu-section cu-section--white ml-offset-center md:px-8 lg:px-14\">\n    <div class=\"space-y-6 cu-max-w-child-5xl  md:space-y-10 cu-prose-first-last\">\n\n        \n    \n    <dl class=\"cu-description cu-component-updated\">\n        \n    <div class=\"grid pt-4 pb-3 border-b accordion border-cu-black-100 md:pt-6 md:pb-5 first:border-t\">\n        <dt class=\"font-semibold not-prose\">\n            <button class=\"flex items-center justify-between w-full text-left accordion__button\" aria-expanded=\"false\" aria-controls=\"accordion-transcript-icon-cards\">\n                <span class=\"flex-1 ml-auto text-left break-words whitespace-normal cu-icon\">\n                    Transcript \u2013 Icon Cards\n                <\/span>\n                <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewbox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" class=\"w-5 h-5 ml-auto transition-transform rotate-0 accordion__icon text-cu-black-500\">\n                    <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 4.5l7.5 7.5-7.5 7.5\"><\/path>\n                <\/svg>\n            <\/button>\n        <\/dt>\n        <dd class=\"p-0 mt-0 cu-prose cu-prose-first-last accordion__content md:p-0 md:mt-0\" hidden=\"\" id=\"accordion-transcript-icon-cards\">\n            \n\n<p>In this video, we are going to explore using Icon Cards for your website\u2019s content.<\/p>\n\n\n\n<p>Icon Cards are very similar in functionality and appearance to Featured Cards. The difference being instead of a featured image, you use icons instead.<\/p>\n\n\n\n<p>An example set of icon cards is shown in the screen in different customization options you can go for.<\/p>\n\n\n\n<p>Now that we have explained the purpose of a Icon Cards block and how it can improve your website\u2019s content, we will now show you how to add them to your pages.<\/p>\n\n\n\n<p>First, you want to go into editing mode of the page you want to add a block into. Then navigate to the block menu and add the block to your page.<\/p>\n\n\n\n<p>Once its on your page, you can enter the information you want into each card.<\/p>\n\n\n\n<p>If you want to insert more information in each card, lets say a button, or change the icon in a card, you can do so by clicking on the card you want to edit \u2013 a menu on the right should appear.<\/p>\n\n\n\n<p>From there you can change your card\u2019s icon or add a button link.<\/p>\n\n\n\n<p>If you want to add another card, select anywhere in the block and click \u201cselect icon cards.\u201d A blue plus button should appear on the bottom right of the block. Click on that and a new card should appear<\/p>\n\n\n\n<p>If you want to customize the block as a whole, select the whole block using the same method you just did to add another card.<\/p>\n\n\n\n<p>A menu on the right should appear, and from there you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a header<\/li>\n\n\n\n<li>Add a description<\/li>\n\n\n\n<li>Choose background colours<\/li>\n\n\n\n<li>Change your column amount<\/li>\n<\/ul>\n\n\n\n<p>As well as change card specific appearances such as background colours, card shadows, icon background, or icon shadows.<\/p>\n\n\n\n<p>And by finishing those steps, we have now successfully added Icon Cards to a page.<\/p>\n\n\n        <\/dd>\n    <\/div>\n\n\n    <\/dl>\n\n\n    <\/div>\n<\/section>\n\n\n\n<h2 id=\"try-it-out\" class=\"wp-block-heading\">Try it Out!<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add an Icon Cards block<\/li>\n\n\n\n<li>Change the icon from the default<\/li>\n\n\n\n<li> Add a title and some text to each icon card<\/li>\n\n\n\n<li>Add buttons to the cards<\/li>\n\n\n\n<li>Play around with the various block options to change the number of columns and display options.<\/li>\n\n\n\n<li>Preview your page!<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/carleton.ca\/cutheme-docs\/mastery\/module-3-featured-content-blocks\/stat-cards\/\">Next: Stat Cards<\/a><\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Icon Cards block is a block that is used to highlight content, similar to Featured Cards. You can use it on your homepage (like Quick Links in our CMS theme). Or you can use it anywhere else on your site to draw attention to info and other pages on your site. The icon cards [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":2059,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_cu_dining_location_slug":"","footnotes":"","_links_to":"","_links_to_target":""},"cu_page_type":[11],"class_list":["post-2080","page","type-page","status-publish","hentry","cu_page_type-general"],"acf":{"cu_post_thumbnail":false},"_links":{"self":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/comments?post=2080"}],"version-history":[{"count":5,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2080\/revisions"}],"predecessor-version":[{"id":4425,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2080\/revisions\/4425"}],"up":[{"embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/pages\/2059"}],"wp:attachment":[{"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/media?parent=2080"}],"wp:term":[{"taxonomy":"cu_page_type","embeddable":true,"href":"https:\/\/carleton.ca\/cutheme-docs\/wp-json\/wp\/v2\/cu_page_type?post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}