Skip to content

Instantly share code, notes, and snippets.

View cristinafsanz's full-sized avatar

Cristina Fernández Sanz cristinafsanz

View GitHub Profile
<search role="search">
	<form action="/search">
		<label>
			Search:
			<input type="search" name="search">
		</label>
		<button>Search</button>
	</form>

Same as:

john: {
  firstname: "John",
  lastname: "Doe",
  greet: function() {
    return `Hi ${this.firstname}`
  }
}
<section>
  <div class="ballet"></div>
  <div class="cat"></div>
  <div class="gramophone"></div>
  <div class="sparrow"></div>
  <div class="sunset"></div>
  <div class="turkey"></div>
</section>
$colors:(
"color-primary": #303960,
"color-secondary": #e03960
);
@function color($color-name) {
return map-get($colors, $color-name);
}
.section {
.container {
display: grid;
place-items: center;
}
new Date().toLocaleDateString("de-DE", {
  year: "numeric",
  month: "2-digit",
  day: "2-digit",
})