123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              

<html>
	<head>
		
		<title> Jerry's Pastries</title>
		<!-- Stylesheet -->
		<link rel="stylesheet" type="text/css" href="style.css">
		<!-- Fonts -->
		<link rel="stylesheet" href="https://use.typekit.net/erb4yqq.css">
		<!-- Script -->
		
		<script src="Code/script.js"> </script>æ
</head>
	
	<body>
		
		<main id="Hero">  
		<div id="NavBar">
		<ul>
			<li class="Menu"><img alt="Menu" src="Artboard 1.svg">Menu</li>
			<li class="Logo"><img src="Vectors.svg" alt="Logo"> </li>
			<li class="About"><img src="VectorSmartObject_81018ec0-c129-4eb0-b8c7-2e975380102e.svg" alt="More">About</li>
		</ul>
		</div>
		
			<div class="Text">
				<h1>Welcome to Jerry's Pastries</h1>
				<p>The best solution to your <span>sweet</span> tooth </p>
			</div>
			
			<div class="PlaceOrder">
				<img alt="Buy icon" src="Buy.svg">
				<p> Place Order </p>
			</div>
			
		</main>
        
     <div class="Div-1"> 
        </div>   
        
        
        
        <main id="Section-1">
            
            <div class="Section-1-About">
                <section class="text2">
                    <h1> Welcome to Jerry's Pastries</h1>
                    
                    <p> Lorem ipsum dolor sit amet, vel ne quas accommodare, no partiendo signiferumque pro, antiopam iracundia maiestatis ne mel. 
                        Eius diceret molestie ad est, melius nusquam accusata usu ex, et vel case malis principes. Id his aeterno signiferumque, ne 
                        ridens blandit duo. Ea mel numquam facilisi, aliquip eripuit maiestatis et quo, epicuri dissentiunt nam ne.</p>
                    
                    
                    <button>More About Us </button>
                </section>
                
               
                
                <section class="Image">
                    <img alt="Front of Store" src="VectorSmartObject_96c3b2a5-a94c-47ae-83e0-918598ca9b3c.png">
                </section>
            </div>
            
            <div class="Section-1-menu">
                
                <section class="text2">
                    
                </section>
                
            </div>
            
            
            
            </main>
        
	</body>
</html>
            
          
!
            
              

body {
	position: relative;
	top: 0;
	left: 0;
	margin: 0;
	padding: 0;
}



#Hero {   
    background-image: url(https://images.pexels.com/photos/669731/pexels-photo-669731.jpeg?cs=srgb&dl=apple-appreciation-bread-669731.jpg&fm=jpg);
    background-repeat: no-repeat;
	background-clip: content-box;
	background-size: cover;
	box-sizing: content-box;
    position: absolute;
    margin: 0;
    padding: 0;
	top: 0;
    height: 930px; 
    width: 1920px; 
	
}

/*Navigation Bar */

#NavBar {
	position: absolute;
	width: 1413px;
	height: 166px;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	
}
.Menu {
	position: relative;
	top: 50%;
    left: 90%;
	transform: translate(-50%,-50%);

}

.Menu img {
	position: relative;
	top: 50%;
	right: 20%;
	transform: translate(-50%,-50%);
	float: left;
	padding-right: 10px;
	
}

.About {
	position: absolute;
	top: 50%;
	left: 5% ;
	transform: translateY(-50%);
	padding-left: 60px;
}

.About img {
	position: absolute;
	top: 50%;
	left: 30%;
	transform: translate(-50%,-50%);
	float: left;
	width:35px;
	height: 45px;
	padding-right: 10px;
}
.Logo {
	position: absolute;
	top: 0%;
	left: 50%;
    transform: translateY(-50%);
    transform: translateX(-50%);
    width: 10%;
	
	
}
#NavBar ul {
	
	position: relative;
	width: 1413px;
	height: 166px;
    flex-direction: row;
	top: 0;
	left: 0;
	padding:0;
	margin:0;
	display: flex;
	object-fit: cover;
	object-position: center;

}
#NavBar ul li{
	list-style-type: none;
	font-size: 20pt ;
	font-family: "europa", sans-serif;
	font-weight: 200;
	color: white;
	display: inline;
}

/* Welcome + Slogan + Button */ 


.Text {
	position: relative;
	top: 30%;
    margin: 0 auto;
    width:70%;
	height: auto;
	box-sizing: border-box;
    text-align: center;
}
#Hero .Text p {
	color: white;
	font-family: "didot", serif;
	font-weight: 400;
	font-size: 50px;
    
	
}

#Hero .Text p span {
  font-style: italic;
}

#Hero .Text h1 {
	color: white; 
	font-size: 90px;
	font-family: "europa", sans-serif;
	font-weight: 500;

	
}

.PlaceOrder{
	position: relative;
	margin: 0 auto;
	background-color: #6dcff6;
	width: 744px;
	height: 128px;
	box-shadow: 0px 0px 100px 50px rgba(7,98,134,0.16);
	top: 320px;
}

.PlaceOrder p {
position: relative;
font-family: "europa", sans-serif;
font-size: 35px;
top: 50%;
transform: translateY(-50%);
text-align: center;
font-weight: 300;
color: white;
}

.PlaceOrder img {
	width: 59px;
	height: 59px;
	float: left;
	position: relative;
	top: 50%;
	left: 31%;
	transform: translateX(-50%);
	transform: translateY(-50%);
}

/* Brown Dividing */

.Div-1 {
    position: absolute;
    top:  900px;
    box-shadow: 10px 10px 30px 50px rgba(0,0,0,.25) ; 
    background: #836447;
    height: 60px;
    width: 1920px;
    
    z-index: 1;
}

/* Section 1: About + Menu */


.Section-1-About {
    display: grid;
	grid-template: 1fr 1fr 1fr / 50% 50%;
    position:relative;
    top: 940px;
    background: white;
	margin: 0;
	pdding: 0;
    width: 1920px;
    height: 2118px;
	border-bottom: solid 1px #c0a288;
	
	border-right: solid 1px #c0a288;
}
.Section-1-About h1 {
	text-align: center;
	font-size: 50px;
}

.Section-1-About .text2 {
    grid-column: 50% ;
    grid-row: 1fr;
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
    width: 738.7px;
	height: 856px ;
}

.Section-1-About img {
    grid-column: 50%;
    grid-row: 1;
    width: 800px;
	height: 850px;
	position: relative;
	
	top: 50%;
	left: 50%;
	position-size: 60%;
	transform: translate(-50%,-50%);
    background: white;
    z-index: 6;
    border-bottom: solid 1px #c0a288;
}




            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console