In the Figmaster - Lessons Figma file, open the 4.3 Booking App page.
Introduction
In this chapter, you will learn how to build a simple Booking App page. Then, I will cover some more advanced auto layout schemes.
Step 1. Page
- Open the frame tool (F).
- Create a frame with Macbook Pro size, 1440x900 px (Desktop > Mackbook Pro - in the Frame panel on the right).
- Resize it to be 1678 px high.
- Rename the frame to Booking App.
- Set the page's Fill to Neutral/10.
- In the Layout grid panel on the right, add 12 col style.
Step 2. Navbar
Part 1. Navigation
- Grab the Logo component from the Assets panel and drop it on the canvas.
- Create a text layer with Buy text inside 48 px to the right of the Logo.
- Change its text style to Text M/Medium.
- Change its color to Neutral/90.
- Duplicate the text layer 24 px to the right, so there are four text layers in total.
- Group them with auto layout.
- Change the group's name to Links.
- In the auto layout settings, set the alignment to Left - Center.
- Change the second layer's text to Sell.
- Change the third layer's text to Rent.
- Change its color to Primary/Main.
- Change the last layer's text to Compare.
- Select the Logo and Links and group them with auto layout.
- Rename the group to Navigation.
Part 2. Search
- Grab the Input field component from the Assets panel and drop it on the canvas ~200 px on the right of the Navigation group.
- Change its placeholder text to Search.
- Grab the Button component from the Assets panel and drop it on the canvas 4 px on the right of the input field.
- Select both Input field and Button and group them with auto layout.
- Rename the group to Search.
- Select the Input field inside and set its Resizing (width) property to Fill container.
- Select the Button inside.
- Change its Content property to Icon Only in the Instances panel.
- Swap the Icon to Icon / MagnifyingGlass.
- Resize the Search group to 248 px in width.
Part 3. Grouping it all together
- Select Navigation and Search groups.
- Group them with auto layout.
- Rename the group to Navbar.
- Set the group's Fill to Neutral/10.
- Add Shadow 2 effect.
- In the auto layout settings:
- Alignment: Space between - Center.
- Padding Top and Bottom: 20 px.
- Padding Left and Right: 48 px.
- Move it inside the Booking App frame.
- Press ALT + W to align it to the top.
- Resize it so it spans across the entire width of the Booking App frame.
Step 3. Header
Part 1. Title
- On the canvas, create a text layer with the following properties:
- Text: Paradise Luxury Hotel Hawaii.
- Text style: Heading/L.
- Text color: Neutral/100.
Part 2. Details
- Below the heading, on the canvas, drop the Icon / Star from the Assets panel.
- Resize the icon to 20x20 px.
- Change the icon color to Primary/Main.
- Create a text layer 4 px on the right of the Icon with the 4.24/5 (456 Reviews) text inside.
- Change the text style to Text M/Regular.
- Change the text color to Neutral/90.
- Select both Icon and Text layer.
- Group them with auto layout.
- Rename the group to Detail.
- In the auto layout settings, set the Alignment to Left - Center.
- Duplicate the Detail group 16 px to the right two times, so there are three items in total.
- Select all Detail items and group them with auto layout.
- Rename the group to Details.
- In the second Detail:
- Swap Icon to Icon / Medal.
- Icon color to Primary/Main.
- Text to Superhost.
- In the third Detail:
- Swap icon to Icon / MapPin.
- Text to 1901 Thornridge Cir. Shiloh, Hawaii 81063.
Part 3. Action Icons
- Grab the Icon / BookmarkSimple from the Assets panel and drop it on the canvas ~200 px on the right of the Details group.
- Duplicate the Icon 8 px to the right.
- Select the second Icon and swap it to be Icon / ShareNetwork.
- Change the color of both icons to Neutral/70.
- Group both icons with auto layout.
- Rename the group to Action Icons.
Part 4. Details Wrapper
- Select both Details and Icons and group them with auto layout.
- Rename the group to Details Wrapper.
- In the auto layout settings:
- Alignment: Space between, Center.
Part 5. Grouping it all together
- Select the Heading and Details Wrapper.
- Group them with auto layout.
- Rename the group to Header.
- In the auto layout settings, set the Spacing between items to 16 px.
- Press Enter to select elements inside.
- Change their Resizing (width) property to Fill container.
- Move the Header to Booking App frame 48 px below the Navbar.
- Resize the Header in width to be aligned with the Logo and Search (48 px from the left and right edges of the Booking App frame).
Step 4. Gallery
Part 1. Main Image
- Inside the Booking App frame, 32 px below the Header, create a rectangle that is 1115x680 px.
- Fit it inside ten columns on the left. Make sure to have your layout grid visible. You can turn it on/off with CTRL + SHIFT + 4.
- Set the rectangle's corner radius to 4 px.
- Rename the rectangle to Main Image.
Part 2. Lightbox
- Inside the Booking App frame, 16 px on the right of the Main Image, create a rectangle that is 212x158 px.
- Set its corner radius to 4 px.
- Duplicate it 16 px to the bottom three times, so there are four rectangles in total.
- Select all four small rectangles and group them with auto layout.
- Rename the group to Lightbox.
- Select all rectangles inside and set their Resizing (width) property to Fill container.
Part 3. Grouping it all together
- Select the Main Image and Lightbox group.
- Group them and apply auto layout.
- Rename the group to Gallery.
- Select the Main Image inside and set its Resizing to Fill container.
- Go to www.unsplash.com and copy some random hotel-related photo.
- Select the Main Image and paste the photo.
- Repeat the action for the rest of the rectangles.
Step 5. Tabs
- Grab the Tabs component from the Assets panel and drop it 48 px below the Gallery.
- Remove the Inner shadow effect from the component.
- Change texts of the Tabs in the following order from the left: Description, Features, Virtual, Location.
- Select and hide the last Tab item with CTRL + SHIFT + H.
- Grab the long Lorem ipsum paragraph from the Resources frame. I've used the Lorem ipsum plugin to generate it. The plugin is pretty straightforward to use, so I didn't want to waste your time describing how to use it.
- Move it 48 px below the Tabs component.
- Select both elements and group them with auto layout.
- Rename the group to Content.
- Select the paragraph inside and set its Resizing (width) property to Fill container.
- Resize the Content so it spans across seven columns from the left in the Booking App frame.
Step 6. CTA
Part 1. Title Wrapper
- On the canvas, create a text layer with the following properties:
- Text: Add dates for prices.
- Text style: Heading/S.
- Test color: Neutral/100.
- In the Header group, inside the Details group, select the Reviews Detail.
- Copy it and paste it 8 px below the Add dates for prices heading.
- Select the heading and Detail and group them with auto layout.
- Rename the group to Title Wrapper.
- Select the elements inside and set their Resizing (width) property to Fill container.
Part 2. Form
- Grab the Input component from the Assets panel and drop it 24 px below the Title Wrapper group.
- Select the Input helper text and hide it.
- Change the Label of the Input to Check-in.
- Change the placeholder of the Input to MM/DD/YYYY.
- Duplicate the Input instance 8 px to the right.
- Change the Label of the second Input to Check out.
- Select both elements and group them with auto layout.
- Rename the group to Dates.
- Select the elements inside and set their Resizing (width) property to Fill container.
- Grab the Select + Label component from the Assets panel and drop it 16 px below the Dates group.
- Hide its helper text.
- Change its Label to Guests.
- Change the Select placeholder to 1 guest.
- Select Dates and Select + Label.
- Group them and apply auto layout.
- Rename the group to Form.
- Select the elements inside and set their Resizing (width) property to Fill container.
Part 3. Grouping it all together
- Grab the Button component from the Assets panel and drop it 24 px below the Form group.
- Resize the Button, so its width matches the Form group.
- Change the Button's text to Check availability.
- In the Instances panel, change the Button's Size to Big.
- Select Title, Form, and Button.
- Group them by adding auto layout.
- Rename the group to CTA.
- Select the elements inside and set their Resizing (width) property to Fill container.
- In the auto layout panel, set the padding (all sides) to 48 px.
- Set the Fill of the CTA to Neutral/10.
- Add a Stroke that is 1 px Inside Neutral/40.
- Add the Shadow 2 effect.
- Set the group's corner radius to 4 px.
- Move the CTA group inside the Booking App frame.
- Set it 48 px below the Gallery.
- Resize its width across the four last columns of the Booking App frame.
Step 7. Main Content
- Select the Content and CTA.
- Group them and apply the auto layout.
- Rename the group to Main Content.