add: h-card properties, style

- Add the h-card properties for a representative h-card
- Try to make the instructions more understandable
- Give it some pizzaz! (∩^o^)⊃━☆゜.*
This commit is contained in:
Mrs. D 2021-05-16 15:45:36 -04:00
parent bd82640b7b
commit fb7f39c078
2 changed files with 50 additions and 20 deletions

View file

@ -2,6 +2,8 @@
This repository provides minimal HTML for starting a new web site! This repository provides minimal HTML for starting a new web site!
Your own unique website can be your identity on the Internet! You can use it to set up a simple personal page that lets you use [IndieAuth](https://indieweb.org/IndieAuth) and [social readers](https://indieweb.org/social_reader).
## How to play ## How to play
1. Fork this repository to your user account. 1. Fork this repository to your user account.

View file

@ -1,39 +1,67 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="authorization_endpoint" href="https://indieauth.com/auth"> <link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token"> <link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<!-- replace the below link with what aperture.p3k.io gives you after signing-in. <!-- To use social readers via microsub, follow these steps.
(Details: https://indieweb.org/Microsub#Getting_Started) (Details: https://indieweb.org/Microsub#Getting_Started)
In summary: 1. After publishing this to your domain, sign in to https://aperture.p3k.io/login with your domain
1. sign in to https://aperture.p3k.io/login with your domain 2. You will see a <link> tag displayed on your dashboard that looks like:
2. you will see a <link> tag displayed on your dashboard
3. copy that <link> tag that looks like:
<link rel="microsub" href="https://aperture.p3k.io/microsub/000"> <link rel="microsub" href="https://aperture.p3k.io/microsub/000">
after this HTML comment. --> 3. Copy that <link> tag and paste it after this HTML comment.
4. Publish the updated page!
-->
<title>My New Website</title> <title>My New Website</title>
<style>
@media (prefers-color-scheme: dark) {
html { background-color: #111111; color: #fbfbfb; }
a { color: #ca8465; }
}
body {
line-height: 1.6;
font-family: system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
text-align: center;
margin: 1rem auto;
min-height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
img.u-photo { border-radius: 50%; }
ul { padding: 0; list-style: none; }
</style>
</head> </head>
<body>
<h1>My New Website</h1>
<div class="h-card">
<p>
Hi, my name is <span class="p-name">Jane Smith</span> and I am a human on the Internet.
</p>
<p> <body>
You can find me on other websites below: <!-- Reference for representative h-card properties: https://microformats.org/wiki/h-card -->
<main class="h-card" rel="author">
<!-- Uncomment and add __your_image__ to display a photo!
<img class="u-photo" alt="My profile photo" src="__your_image__" />
-->
<h1>
I'm <span class="p-name">Jane Smith</span>.
</h1>
<p class="p-note">
...and I am a human on the Internet.
</p> </p>
<ul> <ul>
<!-- replace _mygithubid_ with your GitHub username --> <!-- Replace __this_page__ with your domain -->
<li><a class="u-uid u-url" href="__this_page__">My New Website</a></li>
<!-- Update or remove the below links!
Replace _mygithubid_ with your GitHub username -->
<li><a class="u-url" href="https://github.com/_mygithubid_" rel="me">@_mygithubid_</a></li> <li><a class="u-url" href="https://github.com/_mygithubid_" rel="me">@_mygithubid_</a></li>
<!-- replace _mytwitterid_ with your Twitter username (if you have one, if not, delete the <li>…</li>) --> <!-- Replace _mytwitterid_ with your Twitter username -->
<li><a class="u-url" href="https://twitter.com/_mytwitterid_" rel="me">@_mytwitterid_</a></li> <li><a class="u-url" href="https://twitter.com/_mytwitterid_" rel="me">@_mytwitterid_</a></li>
</ul> </ul>
</div> </main>
</body> </body>
</html> </html>