GithubHelp home page GithubHelp logo

assignment-1's Introduction

Frontend Mentor - 2 side card

This is a solution to the [QR code component challenge on Frontend Mentor](https://www.fro qr-code-component-iux_sIO_H).

Screenshot

SCREENSHOT OF THE DESKTOP VIEW OF WEBSITE.

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Display

What I learned

With this work I learnt about,

  1. FLEX Property
  2. MEDIA QUERY

Here the code snippets I used for this project.

<div class='container'>
    <div class = 'items'>
        
        <div class = 'item first'>
            <h2 class='heading'> The Great <span style='color: hsl(277,64%,61%);'>Indian Sale </span> is on Now!! </h2>
            <p class='para'> Visit your nearest Fashion hub merchandise and own your designs. </p>
            <div class = 'statistics'>
                <div class='one'>
                <div> 10k+</div>
                <p> Companies</p>
                </div>
                    <div class='one'>
                <div> 374</div>
                <p> Templates</p>
                </div>
                    <div class='one'>
                <div> 12M+</div>
                <p> Queries</p>
                </div>
            </div>
        </div>
        <div class= 'item second'>
            <div class='sale-image'></div>
        </div>
        
        
    </div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Island+Moments&family=Raleway:ital,wght@0,100;1,200&family=Rubik+Bubbles&display=swap');

.sale-image{
	background: url(https://thumbs.dreamstime.com/b/new-year-s-sale-clothing-store-discounts-new-year-s-sale-clothing-store-discounts-103607006.jpg), hsl(277, 64%, 61%);
	background-blend-mode: luminosity;
	height: 18rem;
	width: 30rem;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 5px;
    
}

.items{
    display: flex;
    width: 100%;
    
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    margin-right: 2rem;
    height:100vh;
    
}
.statistics{
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    
}
.one div{
	font-family: 'Raleway', sans-serif;
	color: hsl(277, 64%, 61%);
	font-size: 2rem;
}
.one p {
	font-family: 'Raleway', sans-serif;
	color: hsl(277, 64%, 61%);
	font-size: 0.5rem;
}

.heading{
	text-align:left;
	font-family: 'Raleway';
	font-size: 2rem;
}
.para{ 
text-align:left;
	font-family: 'Island Moments';
    font-size:1.5rem;
}
.first{
   
    width: 30rem;
    min-height: 18rem;
    padding-left: 0.5rem;
    background-color: rgb(250, 250, 250);
    line-height: 2rem;
}
.second{
   
   
    background-color: rgb(250, 250, 250);
}


@media (max-width: 650px){
    .items{
        display: flex;
        flex-direction: column-reverse;
    }
    .first{
        text-align: center;
        min-height: auto;
    }
    .sale-image{
        background: url(https://thumbs.dreamstime.com/b/new-year-s-sale-clothing-store-discounts-new-year-s-sale-clothing-store-discounts-103607006.jpg), orchid;
        background-blend-mode: luminosity;
}
.statistics{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
}

Continued development

  1. Planning to upgrade this card design to make as personal portfolio.

Author

assignment-1's People

Contributors

prasanna-collab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.