404 error example page with pure CSS using animations, plain colors and minimal HTML. See more creative examples in the related pens.
Read the full article here
A Pen by Ricardo Prieto on CodePen.
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> | |
<script type="text/javascript"> | |
// ------------------------------- | |
function range(f, t) { | |
if (t < f) throw "Para vei"; |
<!-- Icons purchased via Iconfinder under Basic License --> | |
<body class="permission_denied"> | |
<div id="particles-js"></div> | |
<div class="denied__wrapper"> | |
<h1>404</h1> | |
<h3>LOST IN <span>SPACE</span> App-Name? Hmm, looks like that page doesn't exist.</h3> | |
<svg id="astronaut" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> | |
<style> | |
.st0{fill:none;} .st1{fill:#504E55;} .st2{fill:#F39E72;} .st3{fill:#FFFFFF;} .st4{opacity:0.24;} .st5{fill:#77574E;} .st6{fill:#FBD68D;} .st7{fill:#ECECEC;} .st8{fill:#F4A89C;} .st9{fill:#CFC9E5;} .st10{opacity:0.28;} .st11{opacity:0.25;} .st12{fill:#6F635C;} .st13{fill:#DAE7BE;} .st14{fill:#FFE0A6;} .st15{fill:#5F5E60;} .st16{fill:#CFE1AF;} .st17{fill:#EBE9F5;} .st18{fill:#53515A;} .st19{opacity:0.42;} .st20{fill:#53515B;} |
404 error example page with pure CSS using animations, plain colors and minimal HTML. See more creative examples in the related pens.
Read the full article here
A Pen by Ricardo Prieto on CodePen.
<div id="clouds"> | |
<div class="cloud x1"></div> | |
<div class="cloud x1_5"></div> | |
<div class="cloud x2"></div> | |
<div class="cloud x3"></div> | |
<div class="cloud x4"></div> | |
<div class="cloud x5"></div> | |
</div> | |
<div class='c'> | |
<div class='_404'>404</div> |
@charset "UTF-8"; | |
h1.page-header { font-size: 1.8em; } | |
h2.page-header { font-size: 1.6em; } | |
h3.page-header { font-size: 1.4em; } | |
h4.page-header { font-size: 1.2em; } | |
h5.page-header { font-size: 1em; } | |
.page-header { | |
display: table; |
/** | |
* Return true while the string starts as search param | |
* | |
* str <==> search | |
* $ === $this-> (true) | |
* $t === $this-> (true) | |
* $th === $this-> (true) | |
* $thi === $this-> (true) | |
* $this === $this-> (true) | |
* $this- === $this-> (true) |
String.prototype.inArray = function(arr) { | |
if (typeof arr !== 'object') { | |
return false | |
} | |
var result = false | |
for (var i in arr) { | |
if (this.toString() == arr[i]) { | |
result = true | |
break |
<?php | |
function validarCnpj($cnpj) { | |
$cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); | |
// Valida tamanho | |
if (strlen($cnpj) != 14) { | |
return false; | |
} | |
// Verifica se foi informada uma sequência de digitos repetidos. Ex: 111.111.111-11 |