0:04
[Music]
0:10
hey so in this video we are going to be
0:12
looking at the Bento stack and what
0:14
we're going to be doing is we're going
0:15
to be building out this layout that we
0:18
have inside of the Bento demo this is
0:22
also the layout that's been used for
0:23
years on the Weaver space homepage so
0:26
without further Ado let's Jump On In now
0:29
edit mode for bento is different than
0:31
any other stack you've probably used at
0:33
the top here we have an entire grid
0:35
designer that we can design and
0:37
customize for each break point we have
0:40
extra small small medium and
0:44
large now if we look at the grid that we
0:47
want to build we actually want to start
0:49
off and design what our grid is going to
0:51
look like on mobile devices so I'm going
0:55
to use the device viewer from our
0:56
measure stack and I'm going to go ahead
0:57
and select an iPhone 15 and now we'll
1:00
open up this particular demo for our
1:03
mobile layout so let's go ahead and
1:05
build this now when we're designing
1:08
grids for bento essentially what we want
1:11
to do is we want to think of an
1:14
underlying table such as like an Excel
1:17
table where we have to find the smallest
1:19
cell that we have and in this example
1:21
it's these boxes that are down in the
1:23
lower right hand lower leftand corner
1:26
and if you'll notice here if this is one
1:30
cell here in this particular lay we're
1:32
going to be 1 2 3 4 columns wide okay
1:38
and let's look at how many rows of
1:40
content we have we have 1 2 3 four rows
1:44
of content so on mobile we want this to
1:47
be a
1:48
4x4
1:50
grid so if we notice here inside uh
1:53
Bento we're going to go ahead and what
1:55
we're going to do is we're going to
1:56
start off with extra small which is the
1:57
default and we're going to Define the
2:00
number of columns as four and we want
2:04
the number of rows to also be four now
2:07
here we can also customize the gutter um
2:09
for columns and rows as
2:12
well and uh number of items let's just
2:15
leave that at zero for now let's go
2:17
ahead and build out this layout and
2:19
you'll see how easy and fun this
2:21
actually is so below our grid designer
2:24
you'll notice that we have Bento item
2:26
number zero by default and let's go
2:29
ahead and change that to be item number
2:31
one if you notice here when I changed
2:33
the item to be number one it actually
2:36
highlighted that directly in here inside
2:39
edit mode inside of our grid designer
2:42
which is really
2:43
cool now let's go ahead and Define the
2:46
sizing for this if we look at our
2:49
original layout we actually want this to
2:51
be two columns wide so let's go ahead
2:55
and do that we're going to set columns
2:56
to be
2:58
two and basically what we can do is we
3:00
can add another Bento item we can go
3:03
ahead and set that to be number
3:06
two and I want number two to also be two
3:09
columns wide so we're going to set
3:11
columns wide for extra small to be
3:16
two let's just keep on adding items
3:18
we're going to add in number
3:21
three and item number three is going to
3:24
be four wide because this particular
3:26
item is going to take up the entire
3:27
width of my grid so I'm do is I'm going
3:30
to make that columns
3:33
four and then here we have number
3:36
four and number five those are also
3:39
these smaller areas so we're going to go
3:41
four five and then six is going to be
3:44
foundation so let's start building those
3:46
out I'm going go ahead and uh I'm just
3:48
going to go and copy and paste number
3:49
three we're going to make that number
3:51
four um but that one's just going to be
3:53
one right and we're going to copy paste
3:57
and make that one number five
4:00
and then we're going to copy paste that
4:02
one make that number
4:06
six but now number six is foundation
4:08
this one's going to be too wide and Too
4:13
Tall so this is going to be it's going
4:15
to take up two columns and two rows and
4:19
if we look at the grid we're getting
4:21
very close to what our layout is here
4:23
which is really cool let's go ahead and
4:25
add our last two which is number seven
4:27
and number eight which is just going to
4:28
be um a one so we're going to go ahead
4:30
and uh duplicate number five and just
4:32
make that content number
4:34
seven and we can go here and copy paste
4:38
that and that has number
4:40
eight so there we go I I now can
4:43
populate all of these items um with
4:46
actual content and we'll do that shortly
4:49
but I just want to show you get you
4:50
really quick to show you how we actually
4:51
design these and let's go ahead and I
4:54
can customize these colors as well what
4:56
you'll notice is the um colors match
4:59
okay we can have we have a highlight
5:01
color here inside the settings and that
5:03
color will be displayed up here as well
5:06
as in the label of each individual item
5:09
you'll see it actually tells you which
5:11
item number um it is being used inside
5:13
the
5:16
grid so let's say for like number three
5:19
let's go ahead and change that highlight
5:21
color let's make that one maybe blue and
5:23
then maybe like four five 7 and eight I
5:27
am selecting all of them just by holding
5:29
down the option key and let's make those
5:32
like an orange
5:33
color right so now here I have my little
5:36
layout so I kind of have you know one
5:38
two and six are kind of you know they're
5:41
kind of similar sized sizewise and then
5:44
four five and four five seven and eight
5:46
are small so we can kind of visualize
5:48
our grid a little bit here in edit mode
5:50
and as you see the colors um directly
5:53
for each item will change as well so
5:55
it's easy to kind of locate them so you
5:57
can see where your items are going to be
5:59
placed within the
6:01
grid now we had skipped a setting
6:04
earlier and you'll notice that it is the
6:06
extra small items and in this basically
6:09
after you build out your grid you should
6:10
put in here the number of items that we
6:13
have so in this case I'm going to say we
6:14
have eight items I going to click
6:17
eight now before we move on to the next
6:20
break points I do want to show if you
6:21
click on the plus button here you can
6:22
actually customize the actual break
6:25
points that will be used within uh the
6:28
Bento layout so we're not going to cover
6:30
all these right now we'll cover those in
6:32
a separate video um but just let you
6:34
know that you can customize the break
6:36
points that are used um for your uh
6:39
responsive
6:41
layouts so now that we have our extra
6:43
small layout built essentially what we
6:45
need to do is we need to go to the other
6:47
uh break points and Define those layouts
6:49
as well so what we'll do now is we're
6:51
going to go into
6:53
small and now for me I just want extra
6:56
small and small to be exactly the same
6:59
so I'm just I'm just going to copy this
7:00
out so I'm going to say we had eight
7:01
items um we have a
7:05
4x4 okay and let's do maybe our our Gap
7:08
be a little bit bigger let's do 15 for
7:10
our gutter so now extra small and small
7:14
are going to have basically the same
7:17
layout but now we want to change things
7:19
up for medium so we're going to go up to
7:21
medium you notice that things are a
7:23
little wonky right now so let's bring up
7:25
what our medium grid is going to look
7:26
like so we're going to go over here and
7:28
let's Swap this to be say an iPad so as
7:32
a reminder here is the layout that we
7:35
want for medium and large devices and
7:38
what we want to do is we want to find
7:39
the smallest common denominator for our
7:41
cell size right it's going to be for
7:42
this particular layout the smaller uh
7:45
items here so if we were if this this
7:48
was to be one item let's go this is 1 2
7:52
3 4 and then this one is four so we're
7:54
going to have eight wide and height wise
7:57
we're going to be one two three four
8:01
tall so our grid here our underlying
8:05
kind of grid is is going to be four rows
8:10
by eight
8:12
columns so let's go ahead and build that
8:14
so I know I'm going to keep the same
8:16
number of medium items so let's set that
8:18
to eight and then I said we wanted
8:20
number of columns was going to be eight
8:23
and number of rows was going to be
8:25
four okay and um let's let's put leave
8:29
our gutters for medium at 20
8:32
pixels okay so what we now need to do is
8:35
we need to go through all of
8:38
our items and adjust the sizing so if we
8:42
look at our sizing before we had only
8:44
modified the default sizing which is for
8:46
extra small and if you remember the
8:48
small sizing we wanted it to be exactly
8:50
the same as extra small so what we're
8:52
going to do is we're going to leave that
8:53
as inherit which is the default setting
8:55
so for small it's going to inherit from
8:58
extra small small but on medium we want
9:01
different sizing so what we're going to
9:02
do is we're going to click on
9:06
size so for bento item number one what
9:10
what size do we want let's have a look
9:12
at that again so if we look at this
9:14
layout essentially if you look at this
9:17
icon here it's about the same size as
9:18
these four so basically I want this to
9:20
be a 2X two and I'm going to want that
9:23
for number one number two and then
9:26
number six let's go ahead and do that so
9:29
we're going to do is we're going to go
9:30
to number one uh I'm going to highlight
9:32
number one number two and number six and
9:35
uh we're going to go ahead and set the
9:38
medium size to be two columns wide and
9:42
two rows
9:44
tall there we go
9:48
perfect right now number three okay
9:52
number three if you remember that was
9:53
the really big one right that's kind of
9:55
like and what that was is going to be a
9:58
4x4 it's so it's going to take up pretty
10:00
much half the grid uh it's going to be
10:03
four columns wide and four rows tall let
10:07
just go ahead and set that we're going
10:08
to set custom sizing for medium and
10:11
we're going to set that to be a
10:15
4x4 and just like that magic our grid is
10:19
now done right if we if we look at this
10:22
grid layout it's exactly what we had
10:24
defined um and and what we designed
10:26
inside of our
10:28
layouts and like I said just we did from
10:30
extra small to small I want my uh large
10:33
grid to be exactly the same so I'm going
10:35
to do is here is we're going to large
10:36
items is eight and we're going to do um
10:39
eight columns not 808 and four and there
10:43
we go now all of our items we don't need
10:45
to tweak those
10:47
because we want the large to inherit
10:50
from
10:51
medium but I want to tweak things a
10:53
little bit I want to I thought it would
10:55
be fun to show you um if you notice
10:57
there are two options here for sizing we
10:59
have size and
11:01
position so I can do for large just for
11:04
number let's say number
11:06
three I want to adjust the position a
11:09
little bit okay let's say on large
11:12
devices I'm going to go ahead and change
11:14
the
11:15
position and I want the sizing to be I
11:17
would still want it to be
11:19
4x4 okay but what we now have a we now
11:23
have access to is position we can Define
11:26
where this is going to be Loc at so um
11:30
by default it's going to be one in one
11:32
so if we have this to be a 4x4
11:36
cell the position is going to be at
11:38
start at column one row one but we can
11:42
also start it at column two or column
11:45
three right so let's say we wanted that
11:48
right so now on medium this large one is
11:51
going to be off again flush to the right
11:54
but then on large it's going to move and
11:56
change its position so that it's
11:59
actually centered within the
12:02
grid so that's the kind of slightly more
12:05
advanced position position setting it uh
12:08
again you can customize the sizing as
12:10
well as the starting position of that
12:13
particular
12:15
item so let me go ahead and populate uh
12:17
these with content and let's preview our
12:20
grid so what I've done here is I've just
12:22
added some containers and header from my
12:24
free starter pack um and just added some
12:27
gray boxes that just have a number in
12:29
them so we can kind of see those item
12:31
numbers let's go ahead and preview this
12:35
so here we are in preview and we can now
12:37
see our grids now I have a measure stack
12:39
on this page to kind of show us what
12:41
where we are in our break points right
12:43
so right now we're in small and we have
12:45
1 2 3 4 5 6 7 8 right all right here now
12:49
what you might notice is number six it
12:52
kind of looks a little odd because it's
12:53
not actually stretching its content um
12:56
we're going to look at that really quick
12:58
essentially the by default what what's
12:59
going on is Bento has reserved this
13:02
space for our content but by default
13:05
Bento is going to Center our content but
13:08
we can easily make that stretch so if we
13:11
look at our project let's go ahead and
13:13
look at number six and I'm going to take
13:16
the alignment option as you see the
13:17
default is Middle I'm just going to go
13:19
ahead and set that to be
13:21
stretch and if we refresh the page we'll
13:24
see that voila number six is now
13:26
stretching its height so that uh it's
13:29
exactly the layout that we were
13:31
expecting let's go ahead and make our
13:34
grid a little bit larger and we have a
13:37
little issue we kind of have a similar
13:39
issue with number three right but we
13:40
know the easy fix for
13:42
that we're just going to straight go
13:44
into number three we're going to set the
13:47
alignment to be
13:51
stretch refresh our page refresh our
13:55
page and voila there we go okay and
13:57
let's just keep going and and there we
13:59
are now you might be looking at this
14:01
grid and be thinking wait but number one
14:04
and number two they're kind of not the
14:05
same height as number 6 what's going on
14:08
there so essentially what's going to
14:09
happen is Bento is going to react to
14:12
whatever content you add into it here I
14:14
just have something very simple it's
14:16
just a gray box with a header but as you
14:19
put more content either with paragraphs
14:21
or with images Bento is going to morph
14:25
the sizes of our grid and dynamically
14:28
make it all look uniform based on the
14:31
rules that we've defined so if we look
14:34
here at the Bento uh demo that we built
14:37
remember we built this exact grid
14:39
essentially what's making these these
14:42
items taller is the images as well as
14:45
padding that I've added right if you'll
14:47
notice down here it's just the images
14:49
there's no words so that's going to make
14:52
those particular items smaller have I
14:55
had titles in this that would make each
14:57
of these taller which then turn make the
14:59
foundation one taller right so it's
15:02
going to all kind of mesh and it grid
15:05
will dynamically figure out um the
15:08
height that it needs to create for its
15:10
containers and it's going to make
15:11
everything look
15:17
[Music]
15:22
uniform