Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<title>Rogue Comedy Network</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
</head>
<body>
	<header id = "header">
		<div id = "logo">
			<img id ="header-img" src = "https://raw.githubusercontent.com/pdwarkanath/freeCodeCamp/master/projects/landing-page/RogueComedy.webp"> Rogue Comedy Network</div>
		<nav id = "nav-bar">
			<ul>
				<li><a class = "nav-link" href = "#about">About</a></li>
				<li><a class = "nav-link" href = "#events">Events</a></li>
				<li><a class = "nav-link" href = "#contact">Contact</a></li>
			</ul>
		</nav>
	</header>
	<main>
	<div id ="welcome-section" class="min-vh-100 welcome">
    <h1 class="center-text">Rogue Comedy</h1>
    <p class="center-text">Welcome to Rogue Comedy Network. The home for comedy in the Brazos Valley.</p>
  </div>
	<div id ="about" class="about">
    <div class="section-content">
      <div class="about-section">
		<p id ="about-description">Rogue Comedy produces real, raw, respectable stand-up comedy shows at unique venues across Texas. We work for the respect comedy and comedians deserve. We work for the comedian. We work for funny.</p>
		<form id = "form" action = "https://www.freecodecamp.org/email-submit">
			<label for = "email">Subscribe to our mailing list fo regular updates</label><br>
			<input type="email" id = "email" name="email" placeholder="Enter your email" required><br>
			<input id = "submit" type="submit" class = "button" value = "Subscribe">
		</form>
    </div>
    <div class="about-section">
		<iframe src="https://www.facebook.com/plugins/video.php?height=317&href=https%3A%2F%2Fwww.facebook.com%2FComedyRogue%2Fvideos%2F3947212962011956%2F&show_text=false&width=560" width="560" height="317" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowFullScreen="true"></iframe>
    </div>
    </div>
    </div>
	<div id ="events">
    <div class="section-content">
      <div class="event-card">
        <div>
          <img src="https://raw.githubusercontent.com/pdwarkanath/freeCodeCamp/master/projects/landing-page/MarkNormand1.jpg" class="event-img">
        </div>
        <p class="center-text">Mark Normand in Bryan!<br/>Feb 18, 7:50 PM
Third Floor Cantina
      </div>
      <div class="event-card">
        <div>
          <img src="https://raw.githubusercontent.com/pdwarkanath/freeCodeCamp/master/projects/landing-page/MarkNormand2.jpg" class="event-img">
        </div>
        <p class="center-text">Mark Normand in Bryan!<br/>Feb 19, 7:50 PM
Third Floor Cantina
      </div>
      <div class="event-card">
        <div>
          <img src="https://raw.githubusercontent.com/pdwarkanath/freeCodeCamp/master/projects/landing-page/DowntownComedy.png" class="event-img">
        </div>
        <p class="center-text">Downtown Comedy<br/>Every Tuesday, 7:50 PM
Third Floor Cantina
      </div>
    </div>
	</div>
	<div id ="contact">
    <div class="section-content">
      <div>
      <h2>Contact Us</h2>
      <p>For show information, booking inquiries etc. email: <a href="mailto:alexenciniacomedy@gmail.com">alexenciniacomedy@gmail.com</a><br/>
        Location: Third Floor Cantina, 201 W 26th St, Bryan, TX 77803, USA</p>
      </div>
	</div>
	</main>
</body>
              
            
!

CSS

              
                body {
		font-family: Open Sans, monospace;
	}
	#header {
		position: fixed;
		height: 50px;
		top: 0;
		left: 0;
		width: 100%;
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		background-color: #f3f3f3;
	}
	#logo {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	#header-img {
		max-width: 50px;
	}

	nav ul {
		display: flex;
		flex-direction: row;
		width: 15vw;
		justify-content: space-around;
	}
	nav ul li {
	list-style: none;
	}
	.nav-link {
		text-decoration: none;
		color: black;
	}
	.nav-link:hover {
		text-decoration: underline;
		color: black;
	}

.min-vh-100 {
  min-height: 100vh;
}
.welcome {
    background-image: url(https://raw.githubusercontent.com/pdwarkanath/freeCodeCamp/master/projects/landing-page/RogueHeader.jpg);
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.center-text {
  color: white;
  text-align: center;
}
	#about {
		background-color: lightgrey;
		padding-top: 50px;
	}
#events {
  background-color: black;
  padding-top: 50px;
}
#contact {
  padding-top: 50px;
}
.event-img {
  max-width: 400px;
}

.event-card {
  border: solid 1px white;
  padding: 15px;
  margin: 20px 10px;
  text-align: center;
}
.section-content {
    display: flex;
		flex-direction: row;
		justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

#video {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .section-content {
    flex-wrap: wrap;
  }
  .event-img {
    max-width: 80%;
  }
}
@media screen and (min-width: 768px) {
  .about-section {
    max-width: 50%;
  }
}
  

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console