The border line gracefully curves at the bottom and remains crisp and straight

I am trying to create a curved line between sections similar to what is shown here. The issue I am facing is that when I attempt to curve the border, the top also curves as well. My project utilizes nuxt.js and tailwind CSS. Although I have not completed the code yet, you can see where I intend to place these lines. Additionally, I am exploring how to properly position the images.

Code

<template>
    <div class="bg-gray-100 h-auto">
        <div class="lg:mx-32 xl:mx-60 h-96 w-auto text-blue-900">
            <div class="py-20">
                <h3 class="text-4xl font-bold text-center">Our Check-in Process</h3>
            </div>
            <h1 class="font-bold text-7xl text-gray-300 ml-10">1</h1>
            <div class="relative border-l-2 border-b-2 border-dashed rounded-xxl border-blue-900 w-1/2">
                <div class="m-10">
                    <h3 class="text-3xl font-bold items-end col-start-1 row-start-2 h-auto"><u>Scan</u> the traveler's document<br></h3>
                    <p class="col-start-1 row-start-3">
                        By simply scanning the MRZ code located at the bottom of the traveler's ID or Passport, our app instantly records all their personal data.
                    </p>
                </div>
            </div>
            <div class="relative w-1/2">
                <!-- <div class="layer0 bg-contain bg-no-repeat h-full w-2/3" :style="passport"></div>
                <div class="layer1 bg-contain bg-no-repeat h-full w-2/3" :style="phone"></div> -->
            </div>
            <div class="relative grid grid-cols-2 grid-rows-5 h-96 w-auto">
                <div class="absolute border-r-2 border-dashed rounded-xxl border-blue-900 bg-contain bg-no-repeat h-full w-1/2 row-span-4" :style="sign"></div>
                <div class="col-start-2 ml-5">
                    <h1 class="font-bold text-7xl text-gray-300 col-start-2 row-start-1">2</h1>
                    <h3 class="text-3xl font-bold items-end col-start-2 row-start-2 h-auto"><u>Guest's Signature</u></h3>
                    <p class="col-start-2 row-start-3">
                        After scanning their document, complete the registration with your guest's digital signature, using their finger or a stylus.
                    </p>
                </div>
            </div>
        </div>
    </div>
</template>

<style>
    .layer0 {
        position: relative;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .layer1 {
        position: absolute;
        top: 0;
        left: 62%;
        z-index: 1;
    }
</style>

<script>
    export default {
        components: {},
        data() {
            return {
                passport: {backgroundImage: "url(passport.png)"},
                phone: {backgroundImage: "url(phone_scan.png)"},
                sign: {backgroundImage: "url(sign.png)"}
            };
        }
    }
</script>

Answer №1

If you visit figma.com, you can follow these steps:

  1. Start by using the pen tool to create the shape or lines you desire.

  2. Afterwards, simply right click on the shape or lines and select "Copy as SVG."

  3. Now, all you need to do is paste the copied SVG code into your own project's codebase.

Since it is in SVG format, you have the flexibility to apply CSS styles to it and integrate it however you see fit.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Unable to set maximum width for images in Firefox browser

Welcome to my page where I am utilizing the latest version of Bootstrap v3.2.0 I have encountered an issue when using the display: table-cell; CSS property within a div block. Specifically, the max-width: 100%; CSS property does not function as expected f ...

How to apply distinct CSS styles to individual pages in Orchard CMS?

If we have two pages within Orchard CMS - the homepage and the About Us page, is there a way to include a RoyalSlider on just the homepage without affecting the About Us page? Within Orchard CMS, I am utilizing the Contoso theme. Previously, I attempted t ...

"Showing Images in a Slider: A Step-by-Step Guide

I'm facing an issue with displaying images in a slider. The problem is that the images are stacking vertically instead of appearing side by side in a slideshow. Below is how I have structured my code: @if (Model.Photos.Count > 0) { <div s ...

Tips for populating input fields that are generated dynamically based on the completion of an AJAX request

I am encountering an issue with my HTML code that adds barcode[] and description[] input fields dynamically to a form. The onfocusout event triggers the get_barcode_data JS function, which is supposed to retrieve the barcode description. However, it seems ...

Choose or deselect images from a selection

I am currently working on a feature for an album creation tool where users can select photos from a pool of images and assign them to a specific folder. However, I'm facing difficulty in selecting individual photos and applying customized attributes t ...

Tips for utilizing the <img src> tag within Google Apps Script

I am trying to incorporate an image into a google apps script using the src attribute. I have specified the folder id and path, but unfortunately the image is not displaying as expected. The folder has been shared here for reference. Any assistance with t ...

Ways to retrieve the file name and additional attributes from a hidden input type

Is it possible to access the file name and other attributes of a hidden file when submitting it using the <input type="hidden"> tag? My current project involves drag and drop file functionality on a server using Node.js. If I am able to dynamically ...

Include money symbols within input fields with padding and vertical alignment

I am looking to create an input field that includes either € or $ currency symbols. The challenge is ensuring perfect vertical centering inside the input, especially when using padding. Is there a foolproof method to achieve this? https://i.stack.imgur ...

Show error messages from HTML 5 Validation using a software program

Is it possible to manually trigger the HTML 5 validation message using code? As far as I can tell, there isn't a straightforward way to do so directly. However, it seems we can prompt this message by simulating a click on the submit button. I attempt ...

Having trouble making the JavaScript mouseenter function work properly?

Hi there, I'm having trouble with this code and I can't figure out why it's not working. $('#thumbs > li').mouseenter(function() { $(this).find("div").fadeIn(); }).mouseleave(function(){ $(this).find("div").fadeOut(); ...

Ribbon with slanted angle displayed on top of an image using

I am working on creating an angled cornered ribbon to overlay on images. In the screenshot below, you can see that I want to display a "Sold" ribbon on items that have been sold. https://i.sstatic.net/EgZax.png I have shared a link to the codepen where I ...

I am interested in incorporating a SVG with a unique blend mode on top of a video

Struggling to overlay a svg logo onto a video clip (mp4) using mix-blend-mode: difference in Shopware 6. Here is my CSS: #gr-logo svg path { mix-blend-mode: difference; } I've attempted with png files, applied blend modes to containers, and more. I ...

Click on the 'appearance' dropdown menu while using Safari or Chrome on a Mac computer

Struggling to achieve uniform appearance for the select box across all browsers and devices? It seems like IE 10 and Microsoft Edge are giving you trouble with the appearance property. Any suggestions on how to fix this issue would be greatly appreciated. ...

Tips for creating a cursor follower that mirrors the position and size of another div when hovering over it

I am trying to create a cursor element that follows the mouse X and Y position. When this cursor hovers over a text element in the menu, I want it to change in size and position. The size of the cursor should match the width and height of the text being h ...

How to test the value of an HTML Label in React using Enzyme?

I need to verify that my label component accurately interprets the data in the principal object. Here is the label I am using: <label id="userInfo"><b>Logged in as: </b>{principal.emailAddress}, <b>Role: </b>{userRole}</l ...

Concealed HTML element or generated on-the-fly using JavaScript

What is considered the best practice? I have multiple windows on a page: Auth, Execution Result, and Popups. I can display them in two ways: Create them in pure HTML with CSS, set to display: none, and then fadeIn using jQuery. Create the elements ...

Switch the div's class when the parent element is chosen

I have encountered a complex issue involving two problems for which I am unable to find a solution. In the default state without hover or selection, this div displays with a purple border when selected. My concern is: How can I change the class of the ico ...

Adjusting color of fixed offcanvas navbar to become transparent while scrolling

After creating a navbar with a transparent background, I am now using JavaScript to attempt changing the navigation bar to a solid color once someone scrolls down. The issue is that when scrolling, the box-shadow at the bottom of the navbar changes inste ...

Can CSS be used to show text at a descent rather than baseline?

Is there a correct method to position text at the descent height of a line rather than its baseline? For more information, please visit: http://en.wikipedia.org/wiki/Baseline_(typography) and http://jsfiddle.net/YPPnU/ The objective is to align the bo ...

Retrieve the desired placeholder text color by utilizing the capabilities of the Selenium WebDriver

https://i.sstatic.net/g52uN.pngLooking for guidance on how to verify the color of placeholder text in an input element using Selenium and Java. In my test scenario, I have an HTML structure like this: <div class="pe-input"> <label for="in ...