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.

            
              <main>
	<span class="card">
		<header>
			<h1>
				Faculté des Sciences de Paris
				<div class="header-accent"></div>
			</h1>
			<address>
				<span class="title">Institut du Radium</span>
				<span class="street-address">
					<span class="laboratory">Laboratoire Curie</span><br>
				1, Rue Pierre-Curie, Paris (5<sup>e</sup>)
				</span>
				<div class="address-accent"></div>
			</address>
			<time datetime="1921-5">
				Paris, le 
				<div class="month">May</div>
				19<span class="cursive">21</span>
			</time>
		</header>
		<section class="body">
			<p class="lead">To Mrs. Gertrude Martin,</p>
			<p class="note">
				I ask you to thank the American Colle-<br>
				giate Alumnae and to accept for<br>
				yourself the expression of my gratitude.
			</p>
			<img class="signature" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/Signature_Marie_Curie.svg/1920px-Signature_Marie_Curie.svg.png" alt="Marie Curie signature">
		</section>
	</div>
</main>
            
          
!
            
              $card-height: 37.5rem;
$card-ratio: 1.33;

$black: #3B3B3B;

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	color: $black;
}

body {
	background: rgba($black,0.025);
}

main {
	display: flex;
	justify-content: center;
	align-items: center;

	height: 100vh;
	width: 100%;
}

.card {
	background: #fff;
	border: 1px solid rgba($black, 0.15);
	box-shadow: 0 0 0.5rem rgba($black, 0.15), 0 0 1rem rgba($black, 0.05) inset;

	display: grid;

	grid-template-rows: 42% auto;

	grid-template-areas:
		"header"
		"body";

	height: $card-height;
	width: $card-height * $card-ratio;
}

header {
	display: grid;

	grid-area: header;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 42% auto;
	grid-template-areas:
		"header header"
		"address date";
}

.body {
	grid-area: body;

	font-family: "Homemade Apple", cursive;
	font-size: 2rem;
	letter-spacing: 0.03rem;
	line-height: 1.75;

	padding: 1rem 0 0 4rem;
	
	.lead {
		text-align: center;
	}
	
	.note {
		text-align: justify;
	}

	.signature {
		display: block;
		margin: 0 auto;
		opacity: 0.77;
		width: 18rem;
	}
}

h1 {
	grid-area: header;

	text-align: center;
	text-transform: uppercase;

	font-family: "Arimo", sans-serif;
	font-size: 1.7rem;
	font-weight: bold;

	letter-spacing: 0.2rem;
	word-spacing: 0.1rem;

	line-height: 1;

	margin-top: 3.25rem;

	.header-accent {
		border: 1.5px solid $black;
		border-radius: 50%;

		width: 0.3rem;
		height: 0.3rem;

		margin: 0.55rem auto;

		position: relative;

		&::before,
		&::after {
			border-bottom: 1px solid $black;
			content: "\27a4";

			display: block;

			font-size: 0.4rem;
			letter-spacing: -0.025rem;
			line-height: 1;
			text-align: right;

			position: absolute;
			top: -1px;

			height: 0.1rem;
			width: 4rem;
		}

		&::before {
			right: 0.2rem;
		}

		&::after {
			left: 0.2rem;
			transform: scale(-1, 1);
		}
	}
}

address {
	grid-area: address;

	padding: 1.5rem 0;
	text-align: center;

	.title {
		font-family: "Crimson Text", serif;
		font-size: 1.25rem;

		text-transform: uppercase;
		letter-spacing: 0.05rem;
		word-spacing: 0.1rem;

		position: relative;

		&::after {
			border-bottom: 1px solid $black;
			content: "";
			display: block;

			margin: 0.75rem auto;
			width: 3rem;
		}
	}

	.street-address {
		font-family: "Josefin Sans", sans-serif;
		line-height: 1.75;
		letter-spacing: 0.075rem;
		word-spacing: 0.05rem;

		.laboratory {
			text-transform: uppercase;
		}
	}

	.address-accent {
		border: 1.5px solid $black;
		border-radius: 50%;

		width: 0.2rem;
		height: 0.2rem;

		margin: 0.55rem auto;

		position: relative;

		&::before,
		&::after {
			border-bottom: 1.5px solid $black;
			content: "\27a4";

			display: block;

			font-size: 0.5rem;
			letter-spacing: -0.025rem;
			line-height: 0.75;
			text-align: right;

			position: absolute;
			top: -2px;

			height: 0.1rem;
			width: 1rem;
		}

		&::before {
			right: 0.1rem;
		}

		&::after {
			left: 0.1rem;
			transform: scale(-1, 1);
		}
	}
}

time {
	grid-area: date;

	font-family: "Crimson Text", serif;
	font-size: 1.25rem;
	font-style: italic;

	padding: 1.5rem 1rem;

	.month {
		display: inline-block;
		border-bottom: 1px dotted $black;

		font-family: "Homemade Apple", cursive;
		line-height: 0.5rem;
		text-align: center;

		width: 13rem;
	}
}

.cursive {
	font-family: "Homemade Apple", cursive;
}

            
          
!
            
              // Background
//
// Thank you note written to Dr. Gertrude Martin by Marie Curie, thanking her and the Association of Collegiate Alumnae (predecessor to the modern American Association of University Women). The Association of Collegiate Alumnae organized to help Curie purchase 1g of radium, which at the time cost $100,000. Curie was gifted 1g of radium and the remaining funds used to establish the Marie Curie Fellowship.
//
// More information: https://www.aauw.org/article/when-marie-curie-needed-radium/

// The last sentence in the thank you note has an unknown word in it that I could not determine. I replaced it with "extent", because it makes a little sense even if it looks incorrect. If anybody is able to determine what it actually says I would like to replace it. 

// Update 3/27/2019
// -fixed text to say "expression"
// -changed black to an off-black to better replicate ink
// -re-justified text
// -added inset shadow to mimic shape of cardstock
// -added some transparency to Marie Curie's signature to look closer in color to the other text.
            
          
!
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