using w3 templates to learn

This commit is contained in:
2025-08-19 08:56:47 +00:00
parent cbfd20c073
commit dc1fc40068
3 changed files with 226 additions and 65 deletions

0
README.md Normal file → Executable file
View File

177
index.html Normal file → Executable file
View File

@@ -2,40 +2,159 @@
<html lang="eng">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Peter the Baker</title>
<link rel="stylesheet" type="text/css" media="screen" href="/resources/css/index.css" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="/resources/css/index.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Iceland">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body, h1,h2,h3,h4,h5,h6 {font-family: "Iceland", sans-serif}
.w3-row-padding img {margin-bottom: 12px}
/* Set the width of the sidebar to 120px */
.w3-sidebar {width: 120px;background: #222;}
/* Add a left margin to the "page content" that matches the width of the sidebar (120px) */
#main {margin-left: 120px}
/* Remove margins from "page content" on small screens */
@media only screen and (max-width: 600px) {#main {margin-left: 0}}
</style>
</head>
<body class="w3-black">
<body>
<div id="container">
<!--<img id="avatar" src="/resources/img/pp.jpg" width="200" />-->
<div id="title" class="tstyle">
Petrus Pistor
</div>
<div id="links">
<nav>
<ul>
<li .id="social">
<strong>Social</strong>
</li>
<li .id="pistorium">
<strong>Pistorium</strong>
</li>
<li .id="contact">
<strong>Contact</strong>
</li>
</ul>
<!-- Icon Bar (Sidebar - hidden on small screens) -->
<nav class="w3-sidebar w3-bar-block w3-small w3-hide-small w3-center">
<!-- Avatar image in top left corner -->
<a href="#" class="w3-bar-item w3-button w3-padding-large w3-black">
<i class="fa fa-home w3-xxlarge"></i>
<p>HOME</p>
</a>
<a href="#about" class="w3-bar-item w3-button w3-padding-large w3-hover-black">
<i class="fa fa-user w3-xxlarge"></i>
<p>SOCIAL</p>
</a>
<a href="#photos" class="w3-bar-item w3-button w3-padding-large w3-hover-black">
<i class="fa fa-eye w3-xxlarge"></i>
<p>PISTORIUM</p>
</a>
<a href="#contact" class="w3-bar-item w3-button w3-padding-large w3-hover-black">
<i class="fa fa-envelope w3-xxlarge"></i>
<p>CONTACT</p>
</a>
</nav>
<!-- Navbar on small screens (Hidden on medium and large screens) -->
<div class="w3-top w3-hide-large w3-hide-medium" id="myNavbar">
<div class="w3-bar w3-black w3-opacity w3-hover-opacity-off w3-center w3-small">
<a href="#" class="w3-bar-item w3-button" style="width:25% !important">HOME</a>
<a href="#about" class="w3-bar-item w3-button" style="width:25% !important">SOCIAL</a>
<a href="#photos" class="w3-bar-item w3-button" style="width:25% !important">PISTORIUM</a>
<a href="#contact" class="w3-bar-item w3-button" style="width:25% !important">CONTACT</a>
</div>
</div>
<!-- Page Content -->
<div class="w3-padding-large" id="main">
<!-- Header/Home -->
<header class="w3-container w3-padding-32 w3-center w3-black" id="home">
<h1 class="w3-jumbo"><span class="w3-hide-small"></span>Petrus Pistor</h1>
<p>Web Designer.</p>
<img src="/resources/css/index.css">" alt="boy" class="w3-image" width="992" height="1108">
</header>
<!-- About Section -->
<div class="w3-content w3-justify w3-text-grey w3-padding-64" id="about">
<h2 class="w3-text-light-grey">Peter Baker</h2>
<hr style="width:200px" class="w3-opacity">
<p>Some text about me. Some text about me. I am lorem ipsum consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum consectetur
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
</p>
<p class="w3-wide">Web Design</p>
<button class="w3-button w3-light-grey w3-padding-large w3-section">
<i class="fa fa-download"></i> Download Resume
</button>
<!-- Testimonials -->
<h3 class="w3-padding-24 w3-text-light-grey">My Reputation</h3>
<img src="/w3images/bandmember.jpg" alt="Avatar" class="w3-left w3-circle w3-margin-right" style="width:80px">
<p><span class="w3-large w3-margin-right">Chris Fox.</span> CEO at Mighty Schools.</p>
<p>John Doe saved us from a web disaster.</p><br>
<img src="/w3images/avatar_g2.jpg" alt="Avatar" class="w3-left w3-circle w3-margin-right" style="width:80px">
<p><span class="w3-large w3-margin-right">Rebecca Flex.</span> CEO at Company.</p>
<p>No one is better than John Doe.</p>
<!-- End About Section -->
</div>
<!-- Portfolio Section -->
<div class="w3-padding-64 w3-content" id="photos">
<h2 class="w3-text-light-grey">Pistorium (Projects)</h2>
<hr style="width:200px" class="w3-opacity">
<!-- Grid for photos -->
<div class="w3-row-padding" style="margin:0 -16px">
<div class="w3-half">
<img src="/w3images/wedding.jpg" style="width:100%">
<img src="/w3images/rocks.jpg" style="width:100%">
<img src="/w3images/sailboat.jpg" style="width:100%">
</div>
<div class="w3-half">
<img src="/w3images/underwater.jpg" style="width:100%">
<img src="/w3images/chef.jpg" style="width:100%">
<img src="/w3images/wedding.jpg" style="width:100%">
<img src="/w3images/p6.jpg" style="width:100%">
</div>
<!-- End photo grid -->
</div>
<!-- End Portfolio Section -->
</div>
<!-- Contact Section -->
<div class="w3-padding-64 w3-content w3-text-grey" id="contact">
<h2 class="w3-text-light-grey">Contact Me</h2>
<hr style="width:200px" class="w3-opacity">
<div class="w3-section">
<p><i class="fa fa-map-marker fa-fw w3-text-white w3-xxlarge w3-margin-right"></i> Yucaipa, CA</p>
<p><i class="fa fa-phone fa-fw w3-text-white w3-xxlarge w3-margin-right"></i> VP: 9513090099 </p>
<p><i class="fa fa-envelope fa-fw w3-text-white w3-xxlarge w3-margin-right"> </i> Email: connect-web@petruspistor.com</p>
</div>
<br>
<p>Let's get in touch. Send me a message:</p>
<form action="/action_page.php" target="_blank">
<p><input class="w3-input w3-padding-16" type="text" placeholder="Name" required name="Name"></p>
<p><input class="w3-input w3-padding-16" type="text" placeholder="Email" required name="Email"></p>
<p><input class="w3-input w3-padding-16" type="text" placeholder="Subject" required name="Subject"></p>
<p><input class="w3-input w3-padding-16" type="text" placeholder="Message" required name="Message"></p>
<p>
<button class="w3-button w3-light-grey w3-padding-large" type="submit">
<i class="fa fa-paper-plane"></i> SEND MESSAGE
</button>
</p>
</form>
<!-- End Contact Section -->
</div>
<!-- Footer -->
<footer class="w3-content w3-padding-64 w3-text-grey w3-xlarge">
<i class="fa fa-facebook-official w3-hover-opacity"></i>
<i class="fa fa-instagram w3-hover-opacity"></i>
<i class="fa fa-snapchat w3-hover-opacity"></i>
<i class="fa fa-pinterest-p w3-hover-opacity"></i>
<i class="fa fa-twitter w3-hover-opacity"></i>
<i class="fa fa-linkedin w3-hover-opacity"></i>
<p class="w3-medium">Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank" class="w3-hover-text-green">w3.css</a></p>
<!-- End footer -->
</footer>
<!-- END PAGE CONTENT -->
</div>
</body>
</html>
</html>

116
resources/css/index.css Normal file → Executable file
View File

@@ -1,41 +1,83 @@
@import 'https://fonts.googleapis.com/css?family=Iceland|Cairo&display=swap';
body {
background-image: url("/resources/img/pb_16_9_under512kb.webp");
background-repeat: no-repeat;
background-position: top center;
background-size: 100% auto;
background-color:#2c2c2c;
color:#efefef;
}
/*.tstyle{background:-webkit-linear-gradient(-45deg, #A3FF00 30%, #49FF00 35%, #00FF45 45%, #04FF54 60%, #00FFD2 65%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-family:damion;max-width:fit-content;margin:auto}*/
.tstyle {
color: #FFD700; /* Gold */
font-family: Iceland;
max-width: fit-content;
margin: auto;
text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}
@import 'https://fonts.googleapis.com/css?family=Iceland|Cairo&display=swap'
/* W3.CSS 5.02 - Cleaned Version */
#container {
text-align:center;
font-family:Iceland;
position:absolute;
top:45%;
left:50%;
transform:translate(-50%,-45%);
width:auto;
/* Base Reset */
html, body { font-family: Verdana, sans-serif; font-size: 15px; line-height: 1.5; margin: 0; overflow-x: hidden; box-sizing: border-box }
*, *:before, *:after { box-sizing: inherit }
/* transparent box padding */
background: rgba(0, 0, 0, 0.9); /* black box at 90% opacity */
padding: 20px 40px; /* space inside the box */
border-radius: 12px; /* rounded corners */
h1,h2,h3,h4,h5,h6 {
font-family: "Segoe UI", Arial, sans-serif;
font-weight: 400;
margin: 10px 0;
}
h1 { font-size: 36px } h2 { font-size: 30px } h3 { font-size: 24px }
h4 { font-size: 20px } h5 { font-size: 18px } h6 { font-size: 16px }
#container #avatar{border-radius:50%;margin-bottom:-.75em}
#container #title{font-size:4em}
#container #text{line-height:1.375}
#container #links{margin-top:1.25em;white-space:nowrap;letter-spacing:.5em;line-height:2}
@media all and (max-width:1000px){#brave-shill{margin-top:.35em;max-width:100%;border-radius:.5em}}
@media all and (min-width:1001px){#brave-shill{margin-top:.35em;width:50%;border-radius:.5em}}a{color:#1ee9ff;text-decoration:none}
#container #links a{user-select:none;text-decoration:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none}
.icon{width:24px}
a { background: transparent; color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0 }
/* Tables */
.w3-table, .w3-table-all { border-collapse: collapse; width: 100% }
.w3-table-all { border: 1px solid #ccc }
.w3-table td, .w3-table th,
.w3-table-all td, .w3-table-all th {
padding: 8px; text-align: left; vertical-align: top
}
.w3-bordered tr, .w3-table-all tr { border-bottom: 1px solid #ddd }
.w3-striped tbody tr:nth-child(even),
.w3-table-all tr:nth-child(even) { background: #f1f1f1 }
/* Buttons */
.w3-button, .w3-btn {
display: inline-block; padding: 8px 16px;
border: none; cursor: pointer; background: inherit; color: inherit;
text-align: center; white-space: nowrap;
user-select: none; -webkit-user-select: none;
}
.w3-button:hover { background: #ccc; color: #000 }
/* Lists */
.w3-ul { list-style: none; margin: 0; padding: 0 }
.w3-ul li { padding: 8px 16px; border-bottom: 1px solid #ddd }
.w3-ul li:last-child { border-bottom: none }
/* Containers */
.w3-container, .w3-panel { padding: 0.01em 16px }
.w3-panel { margin: 16px 0 }
/* Grid */
.w3-row:after, .w3-row-padding:after, .w3-clear:after {
content: ""; display: table; clear: both
}
.w3-col { float: left; width: 100% }
@media (min-width:601px) { .w3-col.m6 { width: 50% } }
@media (min-width:993px) { .w3-col.l4 { width: 33.33% } }
/* Cards */
.w3-card { box-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12) }
.w3-card-4 { box-shadow: 0 4px 10px rgba(0,0,0,0.2), 0 4px 20px rgba(0,0,0,0.19) }
/* Utilities */
.w3-hide { display: none !important }
.w3-show { display: block !important }
.w3-center { text-align: center !important }
.w3-left { float: left !important }
.w3-right { float: right !important }
.w3-round { border-radius: 4px }
.w3-circle { border-radius: 50% }
/* Colors (sample subset) */
.w3-red { background: #f44336 !important; color: #fff !important }
.w3-green { background: #4CAF50 !important; color: #fff !important }
.w3-blue { background: #2196F3 !important; color: #fff !important }
.w3-yellow { background: #ffeb3b !important; color: #000 !important }
.w3-black { background: #000 !important; color: #fff !important }
.w3-white { background: #fff !important; color: #000 !important }
.w3-grey, .w3-gray { background: #9e9e9e !important; color: #000 !important }
/* Text Colors */
.w3-text-red { color: #f44336 !important }
.w3-text-green { color: #4CAF50 !important }
.w3-text-blue { color: #2196F3 !important }
.w3-text-black { color: #000 !important }
.w3-text-white { color: #fff !important }