Versión inicial

This commit is contained in:
Mauricio Baeza 2020-11-25 22:37:46 -06:00
parent 05f675b32e
commit 3ae504732d
2 changed files with 568 additions and 0 deletions

131
index.html Normal file
View File

@ -0,0 +1,131 @@
<!-- Thanks
JOHN DOES PAGE - https://github.com/cadars/john-doe/
-->
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Solo para Cuates</title>
<meta name="description" content="Servicios solo para cuates">
<!-- Recommended minimum -->
<meta property="og:title" content="Cuates.net">
<meta property="og:description" content="Servicios solo para cuates">
<meta property="og:image" content="img/site-image.jpg">
<!--
<meta name="twitter:card" content="summary_large_image">
-->
<!-- You could also inline the stylesheet -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>
<a href="#home">Cuates.net</a>
</h1>
<nav>
<a href="#about">Acerca de</a>
<a href="#news">Noticias</a>
<a href="#service">Servicios</a>
<a href="#cuates">Cuates</a>
</nav>
</header>
<main>
<section id="home"> <!-- HOME -->
<p>Servicios informáticos solo para cuates</p>
</section>
<section id="about"> <!-- ABOUT -->
<p>¿Qué es un <a href="https://es.wiktionary.org/wiki/cuate" target="_new">Cuate <label>1</label></a>?</p>
<p><cite>Persona querida con afecto desinteresado y muy estrecho,
especialmente si no está unida por lazos de parentesco.</cite> </p>
<!--
<a href="#another-page">This is a link to another page</a>.
-->
<!--
<figure>
<a href="#img-about">
<img loading="lazy" alt="" src="//via.placeholder.com/1200x600/ddd/ccc" width="1200" height="600">
</a>
<figcaption>Example of an image with a link to a larger version.</figcaption>
</figure>
-->
</section>
<section id="news"> <!-- NEWS -->
<article>
<h1>Nueva página <time>25.Nov.2020</time></h1>
<p>Volvemos a lo simple, puro texto gracias al extraordinario
trabajo de <a href="https://github.com/cadars/john-doe/"
target="_new">Gregory Cadars</a></p>
</article>
<!--
<article>
<h1>Blogging with Joe Bloggs <time>10.10.2020</time></h1>
<p> One <em>could</em> use this setup to write <s>a blog</s> short updates. For images make sure to use the <code>loading="lazy"</code> attribute, so they get loaded only when needed.<label for="lazy">1</label><input type="checkbox" id="lazy">
<small>
You might be able to use it for <code>iframe</code> embeds too(?), but maybe just write a link to the Youtube video instead.
</small></p>
</article>
<article>
<h1><a href="https://example.com">Why Your Cat Bites You</a> <time>12.12.2004</time></h1>
<p>Honestly you don't want to know.</p>
</article>
-->
</section>
<section id="service">
<p>Servicios informáticos que puedes probar, aprender y contratar</p>
<p>
<ul>
<li><b>Dominios</b> - </li>
<li><b>Hospedaje web</b> - </li>
<li><b>Desarrollo de software</b> - </li>
<li><b>VPS</b> - </li>
</ul>
</p>
</section>
<section id="cuates">
<p>Nuestros queridos cuates, que esperas para sumarte.</p>
<p>
<ul>
<li><b>Jose Antonio Pastrana</b> - Gracias por creer en
nuestros proyectos por tantos años</li>
</ul>
</p>
</section>
<section id="another-page"> <!-- ANOTHER PAGE -->
<p>This page is not referenced in the menu, yet it exists.</p>
<p><a href="#about">← back</a></p>
</section>
</main>
</body>
</html>

437
style.css Normal file
View File

@ -0,0 +1,437 @@
* { margin: 0; padding: 0; box-sizing: border-box;
/* Color scheme */
--textcolor: #121212;
--bgcolor: #fff;
--highlight: #2749c9;
}
@media (prefers-color-scheme: dark) {
* {
--textcolor: #dadada;
--bgcolor: #141414;
--highlight: #ffc400;
}
}
body {
font-size: 18px;
font-family: system-ui, sans-serif;
line-height: 1.45;
color: var(--textcolor);
background: var(--bgcolor);
position: relative;
max-width: 64em; /* remove this for a full-width layout */
margin: 0 auto; /* centers the layout */
}
@media only screen and (max-width: 680px) { /* smaller screens */
body {
font-size: 16px;
}
}
/* ------- Sections ------- */
section {
padding: calc(6em + 5vw) 5vw 8vw 5vw;
/* !! Everything below is needed !! */
display: none;
position: absolute;
top: 0;
min-height: 100vh;
width: 100%;
background: var(--bgcolor);
}
section:target { /* Show section */
display: block;
}
section#home { /* Show #home by default */
display: block;
}
/* ------- Header ------- */
header {
padding: 5vw 5vw 0 5vw;
display: flex;
flex-wrap: wrap;
position: relative;
z-index: 2;
}
header h1 {
font-size: 1em;
flex: 1;
white-space: nowrap;
padding: 0 20vw .5em 0;
}
nav a:not(:last-of-type) {
margin-right: 1.5vw;
}
/* ------- General ------- */
a {
text-decoration: none;
color: var(--highlight);
}
a:hover {
border-bottom: 1px solid;
}
h2, h3, h4 {
font-size: 1em;
font-weight: 600;
margin: 1.6em 0 .6em 0;
}
p, ul, ol, article {
max-width: 60ch; /* Limit line-length to 60 characters */
margin-bottom: .6em;
}
ul {
list-style-type: none;
}
ul li::marker {
content: "\2022 ";
}
li {
margin-bottom: 1em;
}
ul, ol {
padding-left: 2ch;
}
b, strong {
font-weight: 600;
}
small {
font-size: .85em;
}
hr {
height: 1px;
border: 0;
background: currentColor;
opacity: .1;
margin: 1.2em 0;
}
abbr {
text-decoration: none;
}
abbr[title]:hover {
opacity: .7;
cursor: help;
}
blockquote {
padding-left: 2ch;
opacity: .7;
margin-bottom: .6em;
position: relative;
}
blockquote:before {
content: "";
position:absolute;
left: 0;
top: .3em;
bottom: .3em;
background: currentColor;
width: 1px;
opacity: .2;
}
img, svg, video, audio {
display: block;
max-width: 100%;
height: auto;
fill: currentColor;
}
code, pre, textarea {
font-family: ui-monospace, SF Mono, Menlo, Monaco, Andale Mono, monospace;
font-size: 1em;
opacity: .7;
}
a code {
opacity:1;
}
textarea { /* for code samples */
font-size: .9em;
color: inherit;
line-height:inherit;
padding:.6em .9em;
margin: .8em 0 1em 0;
position: relative;
display: block;
width: 100%;
white-space: pre;
border:0;
border-radius: 4px;
background:rgba(255,255,100,.075);
box-shadow: inset 1px 1px 0 rgba(0,0,0,.2), inset -1px -1px 0 rgba(0,0,0,.04) ;
}
/* Inline footnotes */
label {
cursor: pointer;
vertical-align: super;
line-height: 1;
font-size: .75em;
padding-left: .1em;
}
label:hover {
color: var(--highlight);
}
label:before {content:"[";}
label:after {content:"]";}
label + input,
label + input + small {
display: none;
}
input:checked + small {
display: block;
padding: .8em 0 1em 2.5vw;;
}
/* Figures */
figure {
margin: 2em 0 1.5em 0;
}
figure figcaption {
margin: 0.8em 0 0 0;
font-size: .85em;
opacity: .7;
}
/* Responsive video embeds */
figure.video {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
overflow: hidden;
}
figure.video iframe, figure.video object, figure.video embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
visibility: hidden; /* so loading="lazy" should work? */
}
section:target iframe {
visibility: visible;
}
/* External links */
a[href*="//"]:after {
font-weight: 300;
content: "\2197"; /* top right arrow: ↗ */
color: var(--textcolor);
opacity: .25;
}
a[href*="//"]:hover:after {
color: var(--highlight);
opacity: 1;
}
/* File links */
a:before {
font-size: .7em;
margin-right: .4em;
}
/* Add more filetypes here if you want */
a[href$=".pdf"]:before { content: "PDF"; }
a[href$=".txt"]:before { content: "TXT"; }
a[href$=".mp3"]:before { content: "MP3"; }
a[href$=".jpeg"]:before,
a[href$=".jpg"]:before,
a[href$=".gif"]:before,
a[href$=".png"]:before { content: "IMG"; }
/* ------- News ------- */
article + article {
margin-top: 5em;
}
article h1 {
font-size: 1em;
font-weight:700;
margin-bottom: 1em;
}
article time {
margin-left: .6em;
font-size: .8em;
font-weight: 400;
opacity: .7;
}
/* ------- Images Grid ------- */
.grid {
display: grid;
grid-gap: 5vmin;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
grid-auto-flow: dense;
padding: 2em 0;
}
.grid a {
position: relative;
border: 0;
}
.grid a:before {
content: "";
display: block;
padding-top: 100%;
}
.grid a img {
position: absolute;
top: 0;
width: 100%;
height: 100%;
object-fit: contain;
}
.grid a:hover {
transform: scale(.975);
}
/* ------- Slideshow ------- */
.slides {
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
overflow-y:scroll;
scroll-snap-type:y mandatory;
}
.slides figure {
height:100vh;
padding:0 5vw;
margin:0;
display:grid;
place-items:center;
align-content: center;
scroll-snap-align:center;
background-size: cover; /* Full bleed background images */
background-position: center center;
}
.slides figure img {
max-height:88vh;
}
/* ------- Lightbox ------- */
.lightbox {
position: fixed;
display: none;
color: var(--textcolor);
}
.lightbox:target {
top: 0;
right: 0;
left: 0;
height: 100vh;
display: grid;
place-items: center;
align-content: center;
background: var(--bgcolor);
border: 0;
z-index: 3;
}
.lightbox img {
max-height: 100vh;
z-index: 4;
}
.lightbox:target:before { /* Loading spinner */
content:"";
height: 2em;
width: 2em;
animation: spin .8s infinite linear;
border: 1px solid;
border-right-color: transparent;
border-radius: 50%;
display: block;
position: absolute;
transform: translateX(-50%);
opacity: .25;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.lightbox:target:after { /* × to close */
content: "\00D7";
position: fixed;
font-size: 2em;
font-weight: 200;
line-height: 0;
top: .75em;
right: .5em;
z-index: 4;
}
/* ------- Print ------- */
@media print {
nav, .lightbox:target:after { display: none; }
article, figure, img {
page-break-inside: avoid;
break-inside: avoid;
}
/* Inline footnotes */
label + input + small { display: inline; }
label + input + small:before { content: "["; }
label + input + small:after { content: "]"; }
}