Pen Settings

HTML

CSS

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

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

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.

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

              
                <!-- Tag div care incapsuleaza tot continutul -->
<div class="container">
	
	<!-- Tag header de organizare in care am pus titlu si motto -->
	<header class="header">
	
		<!-- Tag titlu -->
		<h1 
		id="title" 
		class="text-center">
		IT Junior Salvează
		</h1>
		
		<!-- Tag paragraf -->
		<p 
		id="description" 
		class="description text-center">
		Mulțumim că ați ales să salvați vieți prin platforma noastră
		</p>
		
	</header>
	
	
	<!-- Tag form care ajuta inputurile sa poata avea atributul required -->
	<form id="survey-form">
	
		<!-- Input de tip text -->
		<div class="form-group">
		
			<label 
			id="name-label" 
			for="name">
			Nume
			</label>
			
			<input 
			type="text"
			name="name" 
			id="name" 
			class="form-control" 
			placeholder="Introdu numele" 
			required />
		
		</div>
		
		<!-- Input de tip email -->
		<div class="form-group">
		
			<label 
			id="email-label" 
			for="email">
			Email
			</label>
			
			<input 
			type="email" 
			name="email" 
			id="email" 
			class="form-control" 
			placeholder="Indrodu Email" 
			required />
			
		</div>
		
		<!-- Input de tip number -->
		<div class="form-group">
			
			<label 
			id="number-label" 
			for="number">
			Vârstă
			
				<span 
				class="clue">
				( obligatoriu peste 14 ani )
				</span>
				
			</label>
			
			<input 
			type="number" 
			name="age" 
			id="number" 
			min="18" 
			max="110" 
			class="form-control" 
			placeholder="Vârstă" 
			required />
		</div>
		
		<!-- Input de tip DropDown List -->
		<div class="form-group">
		
			<p>Gen</p>
			
			<select 
			id="dropdown" 
			name="role" 
			class="form-control" 
			required>
			
				<option 
				disabled selected value>
				Selectează genul
				</option>
				<option value="masculin">Masculin</option>
				<option value="feminin">Feminin</option>
				<option value="nu">Aleg sa nu spun</option>
				
			</select>
			
		</div>
		
		<!-- Input de tip radio -->
		<div class="form-group">
			<p>Metoda de plată</p>
			
			<!-- Pentru a grupa mai multe radio 
			buttons atributul 'name' trebuie sa aiba 
			pentru toate aceeasi valaore -->
			
			<label>
			
				<input 
				name="plata" 
				value="card-bancar" 
				type="radio" 
				class="input-radio" 
				checked />
				
				Card bancar
			</label>
	  
			<label>
				<input 
				name="plata" 
				value="card-revolut" 
				type="radio" 
				class="input-radio" />
				Card Revolut
			</label>
	  
			<label>
				<input 
				name="plata" 
				value="paypal" 
				type="radio"
				class="input-radio" />
				PayPal
			</label>
		</div>
		
		<!-- Input de tip number -->
		
		<div class="form-group">
			<p>
			Suma (EUR) <span class="clue">(suma se va împărți egal catre numărul de carități selectate)</span>
			</p>
			<input type="number" name="age" id="number" class="form-control" placeholder="Suma pe care doriți să o donați" />
		</div>
		
		<!-- Input de tip checkbox -->
		<div class="form-group">
		
			<p>
			Alege grupurile de caritate unde vrei să donezi:  
			</p>

			<label>
				<input 
				name="prefer" 
				value="united-way" 
				type="checkbox" 
				class="input-checkbox" />
				
				<a 
				target = "_blank" 
				href = "https://www.unitedway.org/#">
				United Way Worldwide
				</a>
				
			</label>
	 
      <label>
		<input name="prefer" value="task-force" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://taskforce.org/">Task Force for Global Health</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="salvation-army" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.salvationarmy.org/">Salvation Army</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="direct-relief" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.directrelief.org/">Direct Relief</a>
	  </label>
	  
	  <label>
		<input name="prefer" value="habitat-humanity" type="checkbox" class="input-checkbox" />
		<a target = "_blank" href = "https://www.habitat.org/emea">Habitat for Humanity</a>
	  </label>
	  
    </div>
	
	<!-- Input de tip textarea -->
	
	<div 
	class="form-group">
	
      <p>Comentarii si sugestii:</p>
	  
      <textarea 
	  id="comments" 
	  class="input-textarea" 
	  name="comment" 
	  placeholder="Introdu comentariul tau aici...">
	  </textarea>
    </div>

	<!-- Buton -->
    <div class="form-group">
	
      <button 
	  type="submit" 
	  id="submit" 
	  class="submit-button">
        Dute catre plată!
      </button>
	  
    </div>
	
	</form>

</div>
              
            
!

CSS

              
                /* Import google font */
@import url("https://fonts.googleapis.com/css?family=Poppins:200i,400&display=swap");

/* Variabile */
:root {
  --color-black: #000000;
  --color-darkblue: #c2d6d6;
  --color-darkblue-alpha: rgba(0, 204, 0, 0.5);
  --color-green: #37af65;
}

/* Salector pentru tag body
- culoarea in tot site ul
- font */

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  margin: 0;
}

/* Selector before pentru tag body
- background cu gradient */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background-image: linear-gradient(
      rgba(117, 163, 163, 0.9),
      rgba(224, 235, 235, 0.8)
    ),
    url(https://i.pinimg.com/originals/10/20/4e/10204e2cf94ed01b71805a97cdf1047b.jpg);
  background-size: cover;
  background-position: center;
}

/* Salector pentru tag h1, p */
h1 {
  font-weight: 400;
  line-height: 1.2;
}

p {
  font-size: 1.125rem;
}

h1,
p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Salector pentru tag label */
label {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Selector pentru restul tag urilor de input */
input,
button,
select,
textarea {
	min-height: 40px;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Selector pentru buton*/

button {
  border: none;
}

/* Clasa pentru primul div
- in care am aranjat tot continutul pe mijloc*/

.container {
  width: 100%;
  margin: 3.125rem auto 0 auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
/* Clase pentru header
- am pus titlu si motto in mijlocul continutului
- am pus umbre la textul motto ului*/
.header {
  padding: 0 0.625rem;
  margin-bottom: 1.875rem;
}

.text-center {
  text-align: center;
}

.description {
  font-style: italic;
  font-weight: 200;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

.clue {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  color: #e4e4e4;
}
/* slector pentru formular 
- am pus backgournd ul colorat*/
form {
  background: var(--color-darkblue-alpha);
  padding: 2.5rem 0.625rem;
  border-radius: 0.5rem;
}

@media (min-width: 480px) {
  form {
    padding: 2.5rem;
  }
}

/* Clasale pentru fiecare div */
.form-group {
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;
}

/* Clasale pentru fiecare input */
.form-control {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  background-clip: padding-box;
  border: 2px solid #ced4da;
  border-radius: 0.5rem;
  
}

/* Clasale pentru fiecare input cand era selectate
- am pus un desing pentru fiecare input 
atunci cand este selectat */

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Clasale pentru restul inputurilor*/
.input-radio,
.input-checkbox {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}

.input-textarea {
  min-height: 120px;
  width: 100%;
  padding: 0.625rem;
  resize: vertical;
}

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-green);
  color: inherit;
  border-radius: 2px;
  cursor: pointer;
}

a{
  text-decoration: none;
  color: black;
}

a:hover {
  color: red;
}
              
            
!

JS

              
                
              
            
!
999px

Console