WEB DESIGN IN FIGMA ep.04: Horizontal Text + Image Cards (Free Web Design Course)

Mavi Design
27 Jan 202319:58

Summary

TLDRIn this episode of the Figma web design series, the creator guides viewers through the process of designing horizontal cards for a website. Emphasizing the importance of layout and spacing, they demonstrate how to structure elements using a 12-column grid and adjust proportions for visual balance. The tutorial covers creating components for reuse, including setting properties for text and button visibility. By the end, viewers gain practical insights into web design principles, such as the law of proximity, and learn how to effectively use Figma to build functional and visually appealing web sections.

Takeaways

  • πŸ˜€ This episode focuses on designing horizontal cards in Figma, featuring text and images side by side.
  • 🎨 The design uses a 12-column layout, with each column measuring 74 pixels wide and a total width of 1152 pixels.
  • πŸ“œ The title for the horizontal card is set to H2 or H3, rather than H1, to maintain a structured hierarchy.
  • πŸ“ The spacing between elements is set to 24 pixels using Auto Layout for consistent alignment.
  • πŸ–ΌοΈ Images are resized without distorting their aspect ratios by using object masking techniques.
  • πŸ”„ The component allows for easy swapping of the image and text properties, enhancing reusability across the design.
  • βš–οΈ The law of proximity is emphasized, ensuring related elements are visually grouped closer together.
  • πŸ”„ Variants of the horizontal card are created for different layouts, enabling easy toggling between image-first and text-first designs.
  • πŸ“š A focus on maintaining consistency across components helps streamline the design process.
  • πŸ“… Future episodes will explore social proof sections and call-to-action designs to further enhance website usability.

Q & A

  • What is the main topic of the video?

    -The video discusses the importance of mental health and strategies for maintaining it.

  • What strategies are suggested for improving mental health?

    -The video suggests mindfulness practices, regular exercise, and seeking professional help as effective strategies.

  • How does the video define mental health?

    -Mental health is defined as a state of well-being where individuals can cope with the stresses of life, work productively, and contribute to their community.

  • What role does physical health play in mental well-being?

    -Physical health plays a crucial role in mental well-being, as regular physical activity can reduce symptoms of anxiety and depression.

  • Are there any myths about mental health mentioned in the video?

    -Yes, the video debunks common myths such as the idea that mental health issues are a sign of weakness.

  • What resources are recommended for individuals struggling with mental health?

    -The video recommends online resources, hotlines, and community support groups for individuals seeking help.

  • How can mindfulness practices benefit mental health?

    -Mindfulness practices can help reduce stress, increase focus, and improve emotional regulation.

  • What is the significance of seeking professional help?

    -Seeking professional help is significant as it provides individuals with tailored strategies and support for their mental health challenges.

  • Does the video address the stigma surrounding mental health?

    -Yes, the video addresses stigma by encouraging open conversations about mental health to foster understanding and support.

  • What are the key takeaways from the video?

    -The key takeaways include the importance of mental health awareness, the effectiveness of self-care strategies, and the need to destigmatize mental health issues.

Outlines

00:00

🎨 Designing Horizontal Cards in Figma

In this episode of the Figma web design series, the focus is on creating horizontal cards, a layout where text and images are displayed side by side, often switching orders. The presenter explains the importance of layout, emphasizing a 12-column grid structure, and provides step-by-step instructions for creating a horizontal card component. Key elements include selecting appropriate headline styles, configuring Auto Layout for spacing and alignment, and ensuring responsive design. The section outlines how to adjust the size and position of the cards for better visual appeal while adhering to design principles like proximity. The session wraps up with creating a reusable component, discussing the use of component properties to manage direction, headlines, descriptions, and buttons, ensuring consistency across the design. Finally, the prototype is launched to showcase the completed horizontal cards section, setting the stage for future episodes on web design elements.

Mindmap

Keywords

πŸ’‘Figma

Figma is a cloud-based design tool widely used for UI/UX design, enabling collaboration among teams. In this video, Figma serves as the primary platform for designing a website, where the creator demonstrates how to build horizontal cards. This highlights Figma's versatility in managing design elements efficiently and facilitates an interactive workflow.

πŸ’‘Horizontal Cards

Horizontal cards are UI components where content, such as text and images, are displayed side by side. The creator focuses on designing horizontal cards in this episode, showcasing their importance in modern web design for presenting information clearly and attractively. The arrangement of elements is discussed in detail, emphasizing how it enhances user experience.

πŸ’‘Layout Grid

A layout grid is a framework used in design to create structured, consistent designs. In the video, the designer refers to a 12-column layout grid in Figma, explaining how it dictates the width and alignment of the horizontal cards. This concept is essential for achieving a balanced design that is visually appealing and functionally effective.

πŸ’‘Auto Layout

Auto Layout is a feature in Figma that allows designers to create responsive designs that adapt to content changes. The speaker utilizes Auto Layout to organize the text and button elements within the horizontal cards, ensuring that they resize and align correctly as design elements are adjusted. This concept underscores the efficiency of design iterations in Figma.

πŸ’‘Component

A component in Figma is a reusable design element that can be instantiated multiple times throughout a project. The creator demonstrates how to turn the horizontal cards into a component, enabling consistent use across the website. This concept is vital for maintaining uniformity in design and speeding up the design process.

πŸ’‘Proximity

Proximity is a design principle that suggests related elements should be placed closer together to indicate their connection. In the video, the creator discusses adjusting spacing between elements to adhere to the law of proximity, enhancing the layout's visual coherence. This principle is essential for creating intuitive and user-friendly designs.

πŸ’‘Headline

A headline is a prominent text element that typically conveys the main idea or purpose of a section. The designer emphasizes the use of H2 or H3 for the horizontal card headline, indicating its importance in establishing hierarchy within the design. Effective headlines help guide users through content and improve readability.

πŸ’‘Button

A button is a UI element that prompts user interaction, commonly leading to actions like navigation or submitting information. In this video, the creator adds a button to the horizontal cards, showcasing its function as a call to action. Designing effective buttons is crucial for enhancing user engagement and improving website functionality.

πŸ’‘Image Fill

Image fill refers to the method of using images as backgrounds or fills for design elements. The designer discusses how to manipulate image fills to maintain aspect ratios while resizing images within the horizontal cards. This technique is important for preserving the visual integrity of images in web design.

πŸ’‘Prototype

Prototyping is the process of creating a preliminary version of a product to test and evaluate design concepts. The creator mentions launching the prototype at the end of the video, which allows for user interaction and feedback on the horizontal card layout. Prototyping is a key step in the design process, facilitating adjustments based on user experience.

Highlights

Introduction to horizontal cards, focusing on a layout where text and images are side by side, switching orders.

The series is part of a playlist for designing websites in Figma, encouraging viewers to check previous episodes.

Utilization of a 12-column layout with each column measuring 74 pixels wide for structured design.

Introduction of text elements like horizontal card headline and description, using H2 or H3 for hierarchy.

Application of Auto Layout for the card components, adjusting spacing to maintain a clean layout.

Incorporation of image elements while maintaining aspect ratio, enhancing visual appeal.

Strategic decision to reduce spacing between horizontal cards for a balanced look, applying Gestalt principles.

Creation of a reusable component for horizontal cards, allowing easy updates across the website.

Introduction of component properties like direction and text fields for efficient content management.

Demonstration of how to update text and images within component instances easily.

Exploration of maintaining design consistency through centralized adjustments in Figma.

Discussion of the law of proximity to create visually cohesive sections in the design.

Encouragement for viewers to leave comments about interest in Gestalt principles for future content.

Final review of the prototype showcasing the horizontal cards section in a website context.

Closing remarks on the importance of understanding web design concepts through Figma tutorials.

Transcripts

play00:00

hello everyone and welcome to the fourth

play00:02

episode of Designing a website in figma

play00:05

in this episode we are going to focus on

play00:07

horizontal cards meaning this section of

play00:10

a website where the text and image kind

play00:12

of go side by side and they are

play00:14

switching orders and as I mentioned this

play00:17

video is a part of a series of Designing

play00:19

a website in figma so if you'd like to

play00:22

see how we created all these things all

play00:25

these elements and sections components

play00:27

Etc definitely go and check out my

play00:30

channel where I have a playlist where

play00:33

all of these videos are going to be

play00:35

compiled and now let's get started now

play00:37

this section is going to be very similar

play00:40

to what we have here which means the

play00:42

first title section the title area right

play00:45

so and the image is going to be smaller

play00:47

while also we are not going to use H1

play00:50

but rather I think H2 or H3 maybe but an

play00:54

overall structure this is going to be

play00:56

very similar so let me just um let me

play00:59

just copy this and and I'm going to take

play01:01

this as a guide as we created this new

play01:04

section this new component so on this

play01:07

website we are using the 12 column

play01:10

layout so we have a layout grid with 12

play01:13

columns as you can see here each one of

play01:15

these is 74 pixels or points wide and

play01:19

the space between them is 74. and this

play01:22

is of course going to be reflected in

play01:24

our new component in our new section

play01:26

meaning it's going to have

play01:29

1152 pixels in width or less so that it

play01:33

fits within this layout right so let me

play01:36

just use my text tool by pressing t on

play01:38

my keyboard and then clicking once and

play01:40

I'm going to type in horizontal card

play01:43

headline and as I said we are not going

play01:46

to be using H1 which this appears to be

play01:50

H1 so under text on this right side I'm

play01:53

going to select H2 second most important

play01:56

headline and if you're wondering how we

play01:58

set this up again go and check out

play02:01

previous videos in this series anyway

play02:03

here we have here we have the horizontal

play02:06

card headline and then of course we're

play02:08

gonna also get the horizontal card

play02:10

description so let me just rewrite this

play02:13

horizontal card description the this is

play02:18

where we right I just I just wrote down

play02:21

a couple of sentences so that we can

play02:24

kind of use this as a placeholder and

play02:26

then of course there's gonna be the

play02:27

button so under assets I'm gonna go for

play02:30

search for button and then I'm gonna

play02:32

paste that right here by dragging

play02:34

awesome so now I can select these three

play02:37

components uh sorry these three elements

play02:39

and press shift a to add Auto layout

play02:42

then press enter and by shift clicking

play02:45

deselect the button right so that we

play02:47

select only the headline and the

play02:49

description and under horizontal

play02:51

resizing I'm gonna go for fill container

play02:54

with both of these and this means that

play02:56

the width of these text now depends on

play02:59

total width of this Frame which is which

play03:02

is what we need right and then under

play03:05

spacing in Auto layout I'm going to type

play03:07

in 24 so that we have 24 pixels in terms

play03:11

of spacing and then I'm going to rename

play03:13

this Frame by selecting it pressing

play03:15

command R and typing in horizontal sorry

play03:19

horizontal card content so this is now

play03:22

horizontal card content there's also be

play03:25

horizontal card image and I'm going to

play03:27

duplicate this image and paste that

play03:29

right here which is going to shrink our

play03:31

image and I'm gonna you know since we

play03:34

have an image fill and it is set to fill

play03:37

you can see that I can resize the image

play03:39

without squishing or pulling the image

play03:43

aspect ratio it kind of stays it kind of

play03:47

uses this object as a mask I think we

play03:49

could actually use only 10 10 of these

play03:53

columns right because since this is the

play03:55

title area this is the most important

play03:57

thing the most important section I think

play04:00

the horizontal card would be better off

play04:03

if we did something like this right you

play04:06

know using just the 10 of the 12 columns

play04:09

um we want we want to keep this at the

play04:12

most prominent visual kind of importance

play04:14

so let me just select these two elements

play04:17

press shift a and then set the spacing

play04:21

to 24 right 24 maybe we're going to go

play04:24

for 24 plus 74 and also I'm going to

play04:30

rename this to horizontal card container

play04:33

horizontal card container and then these

play04:37

elements both of these elements are

play04:40

going to be set to fill container I will

play04:43

probably change these settings later

play04:46

because I'm not sure if we want to keep

play04:48

you know if we want to we want this to

play04:51

happen for now I think we could set both

play04:53

of these to fill container right so both

play04:55

both have fill container and I said that

play04:59

this is going to take the width of 10

play05:02

columns right so let me just see what

play05:05

this actually looks like in terms of

play05:07

width so we have 10 columns and if each

play05:10

of these is 74 pixels that means it's

play05:13

going to have 70

play05:15

740 pixels in width but also we have to

play05:19

account for the spacing between these

play05:22

and 10 columns have nine spaces between

play05:25

them which means 740 plus 9 times 24 and

play05:31

if we add this to the field over here

play05:33

years which means 740 plus 740 plus 9

play05:39

times 24 we get

play05:41

956 so that's the total width this

play05:45

horizontal card container is going to

play05:46

have

play05:48

956.956 and this also means that I'm

play05:51

gonna add another Auto layout on top of

play05:54

this horizontal current container which

play05:56

means selecting this and pressing shift

play05:58

a and then I'm going to to make it 1440

play06:02

pixels wide 1440 and also

play06:05

96 over here zero here and then add a

play06:10

fill so this means that now when we

play06:12

actually resize this this section stays

play06:15

in the Middle with a firm predetermined

play06:18

width which is our goal and now let's

play06:21

just actually put that into our website

play06:24

frame we are going to turn this into a

play06:27

component later but for now let's just

play06:29

test how this looks in the context of a

play06:32

website here you can see that it fits

play06:35

nicely precisely within 10 columns but

play06:39

at the same time I think we could make

play06:41

the text section a bit more narrow to be

play06:45

specific I think we could make it span

play06:47

four columns in total so now this means

play06:51

that as I said this is going to be fixed

play06:53

this is going to be fill container but I

play06:55

think we could also reduce the spacing

play06:58

275 4 which is the width of one column

play07:02

so yeah I think this layout these

play07:05

proportions will look best in my opinion

play07:08

right so let's just keep this in mind

play07:11

and of course there's going to be also

play07:13

the opposite direction of this card

play07:15

which means the image will go first and

play07:18

then the text will go second so I'm

play07:21

going to duplicate this and then what

play07:23

I'm gonna do is Select horizontal card

play07:26

content and just use command and bracket

play07:30

to move that to this second position

play07:32

right so that it's on the right side

play07:35

right now now here's the thing or rather

play07:38

two things if we keep the vertical

play07:40

padding 96 we will get this huge spacing

play07:44

between these features if between this

play07:46

sorry these horizontal cards if we stack

play07:49

them on top of each other so what I

play07:51

think could be better approach right

play07:54

here would be getting rid of the top

play07:56

part of the padding which means setting

play07:58

the top one to zero while also keeping

play08:03

the bottom one at 96 so this creates a

play08:06

consistent spacing similar to what we

play08:09

have here what we have here right in the

play08:11

feature section we also turned off the

play08:14

top padding for this section I think we

play08:17

could do the same here makes the most

play08:19

sense right and the second thing is

play08:22

maybe this is just my OCD acting up but

play08:26

I think we could it could look more

play08:29

balanced if we had these sides of the

play08:32

image kind of aligning vertically what I

play08:35

have in mind is if we increase the

play08:38

spacing right so if we increase the

play08:40

spacing to about what's the right value

play08:44

110 seems to be the right value so if we

play08:47

set both of these to 110 you can see how

play08:51

these images kind of their edges meet

play08:54

horizontally when I use a guide it

play08:56

becomes more apparent right these edges

play08:59

meet right here and I think this looks

play09:02

better than the alternative so that's

play09:05

the reason why I would keep this this

play09:08

setup or since we now have this huge

play09:11

spacing right here which goes against

play09:14

the law of proximity which states that

play09:17

items that that logically belong

play09:20

together should be closer together and

play09:23

this kind of so this distance is smaller

play09:27

than this distance now we are getting

play09:30

really technical but since logically

play09:34

these belong closer together than these

play09:37

two right so these are completely two

play09:39

separate horizontal cards but these

play09:41

elements are two parts of the same

play09:43

horizontal card that's where the law of

play09:47

proximity states that this should be

play09:49

closer to the image than these two image

play09:52

between each one so I think we should be

play09:56

looking at increasing this value this

play09:59

width of this text section so that it it

play10:03

kind of decreases this spacing right

play10:06

here and since we set this value to fill

play10:09

and this one to fill as well I think we

play10:13

could test the spacing with both of

play10:15

these two space between and then we can

play10:18

move the boundary of this text section

play10:20

without actually

play10:23

changing the size of the image so again

play10:26

I'm going to use I'm going to select

play10:28

this horizontal card container and then

play10:30

go to Advanced layout and space between

play10:33

and then I can do this right so I'm

play10:36

going to position this I think somewhere

play10:39

around here similar to this one that

play10:42

will also end here and the spacing is

play10:45

calculated automatically for us which

play10:47

means that these horizontal cards now

play10:51

adhere to the law of proximity which is

play10:54

very important I'm also planning to do a

play10:56

video on Gestalt principles and the law

play10:59

of proximate is one of them so if you're

play11:01

interested in hearing more about the law

play11:03

of proximity and all these Crystal

play11:05

principles in web design definitely

play11:07

leave a comment below or leave a like

play11:10

right so we have figured out the layout

play11:12

we have figured out the position of

play11:15

elements their size and the overall

play11:17

position and how they kind of work

play11:18

together so now what I think would be

play11:21

great is if we actually turn this into a

play11:23

component and make sure that we can

play11:26

reuse these elements across our website

play11:29

without you know while also keeping

play11:32

everything consistent so let me just

play11:35

remove this title area I'm going to

play11:37

rename this to horizontal horizontal

play11:41

card left and then horizontal card right

play11:45

and I'm going to select both of these

play11:48

and go to this drop down menu on the top

play11:50

under components and I'm gonna click on

play11:53

create component set right so we have

play11:57

now a component that's called component

play11:59

one which I'm going to rename to

play12:02

horizontal card horizontal sorry

play12:04

horizontal card and we want to do a

play12:08

couple of things we're going to make it

play12:10

easy for us to change that the direction

play12:12

which means that it's going to be a

play12:14

property that we can easily switch we

play12:16

want to make sure that we can easily

play12:17

change the text of the headline

play12:19

description and the button and that we

play12:21

can also easily update the image with

play12:24

the image it's going to be a bit more

play12:26

difficult because component properties

play12:28

doesn't offer us with the option to swap

play12:31

an image easily only through instant

play12:34

swap I believe and we are not going to

play12:36

use that we're just going to rely on the

play12:38

fact that we can kind of select the

play12:42

image directly in in a given instance

play12:45

right and then change the image fill

play12:48

right here so we can hide it for example

play12:50

or paste different fills so that's kind

play12:52

of how we are going to change the image

play12:55

but in other cases with other things in

play12:58

this component we are going to be be

play13:00

using component properties so first of

play13:03

all let me create a property or actually

play13:05

just rename this property to Direction

play13:08

and then I'm going to set the direction

play13:12

of this one to yes or actually no no

play13:16

this one's going to be no and this one's

play13:19

going to be yes and what's the reason

play13:21

the reason is that we that when we

play13:24

actually use an instance of this

play13:26

component we can easily switch Direction

play13:28

by clicking this toggle button right

play13:31

it's more intuitive and I think it makes

play13:33

sense so that's one thing we have set up

play13:35

the direction the next thing is

play13:37

selecting the headline so I'm pressing

play13:40

command and shift and then clicking

play13:42

these two headlines and under content

play13:45

I'm going to create a text property and

play13:48

I'm going to name this headline and I'm

play13:50

going to type in as a default value

play13:52

headline text create property right this

play13:56

will update these and then something

play13:57

similar with this description again

play14:00

select both of these by pressing command

play14:02

and shift create new property and this

play14:05

one is going to be called description

play14:06

and the default value will just keep the

play14:09

default value right so that's that's

play14:12

great then with the button I'm going to

play14:15

select the button in the first variant

play14:18

and then command and click over here to

play14:20

select the button in the second variant

play14:22

and then I'm going to go to layer and

play14:25

create a Boolean property which is going

play14:28

to hide or show our button and then I'm

play14:31

going to name this component property

play14:34

show button and it's going to be true or

play14:37

false right in this case it's true

play14:39

because it's visible and then what I'm

play14:41

going to do is also select this whole

play14:44

component go to properties and click

play14:47

this plus over here and then expose

play14:49

properties from nested instances

play14:52

so from nested instances we get kind of

play14:55

this and now when we actually use an

play14:59

instance of this component we get also

play15:02

not only options to select this overall

play15:05

feature card but we also get the options

play15:07

on the button so so this should be now

play15:10

done let me just demonstrate for you how

play15:12

this actually works right so we have

play15:14

created a component that has two

play15:17

variants and to use an instance of this

play15:20

I'm going to go to assets and then

play15:22

search for horizontal card and I'm going

play15:24

to click and drag that over here so here

play15:27

is our instance of the horizontal card

play15:30

horizontal feature card maybe we can go

play15:33

in here and update the headline here

play15:35

right update headline here and if we

play15:39

confirm this change it's going to update

play15:41

our headline and similar here so I'm

play15:44

just going to type in two extra words on

play15:46

the start of the sentence similar here

play15:49

and you can see it updated our

play15:51

description addition this Additionally

play15:52

the button we can change the text of the

play15:55

button so we can say learn more learn

play15:58

more and you can see it updates the

play16:00

button right here but we also can change

play16:02

the type of the button to no background

play16:04

because we have defined a button state

play16:07

that button state right here I want to

play16:10

keep that at default so right now let me

play16:14

also show you how you could update the

play16:16

image right so very quickly very quickly

play16:18

here's an image from pixels.com I can

play16:21

select the fill copy command C and then

play16:25

select this image directly and command V

play16:27

this is going to add a new fill layer on

play16:31

top of our previous one which is gonna

play16:33

kind of update the image right so I'm

play16:36

going to now what I'm going to do is

play16:38

paste that right into our website and

play16:41

then I am going to duplicate this by by

play16:45

pressing alt and then dragging and I

play16:48

have a second horizontal card I'm going

play16:51

to change the direction easily here

play16:53

select the image directly and remove the

play16:56

new image fill so we now have two

play16:58

sections with two different images we

play17:01

could also I could also hide the button

play17:03

which I'm not going to do but I'm going

play17:05

to change the headline so second

play17:07

headline right here and then we could do

play17:11

like description of the second

play17:15

horizontal card horizontal card and I

play17:18

can now move this close together press

play17:22

shift a with both of these selected and

play17:24

you can see that when I duplicate this I

play17:27

can just keep duplicating and keep

play17:29

adding more features more horizontal

play17:32

cards if I want to but for now I'm just

play17:34

going to keep this at just two right so

play17:37

what I'm also going to do is select the

play17:40

features headlines so command C and then

play17:43

select this and command B put that on

play17:45

the very top build container Center tag

play17:48

select the parent layer by clicking by

play17:51

pressing shift enter renaming this

play17:53

parent layer to horizontal cards section

play17:57

and then I'm going to add some padding

play17:59

on the top actually so 96 I'm going to

play18:03

add some spacing around I think or

play18:05

actually I'm just going to add the top

play18:07

padding on this first feature card which

play18:09

is going to be on this first horizontal

play18:12

card which is going to be let's say 48

play18:14

maybe again select the parent layer and

play18:17

add a fill so now we get this right here

play18:20

right and also I'm going to remove the

play18:22

top padding similar situation to here so

play18:26

zero enter and then I'm gonna change

play18:28

this headline to horizontal cards

play18:32

section

play18:34

and now uh it's very easy to maintain

play18:36

consistency because if I decide to for

play18:38

example change the color of the text

play18:40

within this section everywhere on the

play18:43

website I can just reduce that I can

play18:45

just change that here and then it's

play18:47

going to update everywhere right so

play18:49

components instances the usual you

play18:52

probably already know this so yeah let

play18:54

me just launch the Prototype and check

play18:56

what we have now this final result looks

play18:59

like we get a title features that we

play19:02

have created in previous videos and then

play19:05

we get the horizontal cards section

play19:07

which is also quite a common element on

play19:11

all the websites so yeah this is how you

play19:13

create horizontal cards in the next

play19:15

episodes we are going to I think work on

play19:18

some kind of social proof section which

play19:21

means quotes testimonials whatever and

play19:23

then we're gonna finish up with call to

play19:25

action and the footer so thanks for

play19:27

tuning in to this episode I hope you

play19:29

have learned something new I hope this

play19:32

series is helping you to understand

play19:33

stand web design in figma better if

play19:37

there's anything unclear let me know in

play19:38

the comments below if this video helped

play19:40

you please also leave a like and also as

play19:42

I said check out my channel where I have

play19:45

all episodes in a playlist also check

play19:47

the description where I well I have this

play19:50

playlist featured as well and yeah

play19:52

thanks for tuning in and I will see you

play19:54

in the next one

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Web DesignFigma TutorialUI DesignHorizontal CardsDesign PrinciplesAuto LayoutUser ExperienceComponent DesignCreative ProcessVisual Elements