Skip to content

Commit

Permalink
Merge pull request #5 from pradipchaudhary/git-page
Browse files Browse the repository at this point in the history
Initial commit: Set up GitHub Pages with a basic layout and essential…
  • Loading branch information
pradipchaudhary authored Mar 3, 2024
2 parents 770992d + b86e4c2 commit 6045dd9
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 0 deletions.
42 changes: 42 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Learn PHP Fundamentals - PHP is Cool !</title>
<link rel="stylesheet" href="../assets/style.css" />
</head>
<body>
<!-- Header -->
<header class="page-header" role="banner">
<h1 class="project-name">Learn PHP Fundamental</h1>
<h2 class="project-tagline">PHP is cool</h2>

<a href="https://github.com/odan/learn-php" class="btn"
>View on GitHub</a
>
</header>
<main id="content" class="main-content" role="main">
<h1 class="learn-php-fundamentals">Learn PHP Fundamental</h1>

<p>
<a href="https://www.php.net/" target="_blank">
<img src="../assets/php-logo.svg" alt="php-logo" width="250" />
</a>
</p>
<p>
A curated list of resources for <a href="https://php.net/">PHP</a>
</p>
<h2 id="table-of-contents">Table of Contents</h2>

<!-- Footer -->
<footer class="site-footer">
<span class="site-footer-owner">Learn PHP Fundamental </span>
<span class="site-footer-credits"
>This page was created by
<a href="http://himalayaminds.com/">HimalayaMinds</a></span
>
</footer>
</main>
</body>
</html>
Binary file added assets/page-header-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/php-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 114 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
line-height: 1.5;
color: #606c71;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}

a {
background-color: transparent;
text-decoration: none;
}

a:active,
a:hover {
outline: 0;
}
/* Header */
.page-header {
background-color: #4f5b93;
background-image: unset;
background: url(../assets/page-header-background.png) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
color: #fff;
text-align: center;
}
.project-name {
font-size: 3.25rem;
margin-top: 0;
margin-bottom: 0.1rem;
}
.project-tagline {
font-size: 1.25rem;
margin-bottom: 2rem;
font-weight: normal;
opacity: 0.7;
}
.btn {
display: inline-block;
margin-bottom: 1rem;
color: rgba(255, 255, 255, 0.7);
background-color: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.2);
border-style: solid;
border-width: 1px;
border-radius: 0.3rem;
transition: color 0.2s, background-color 0.2s, border-color 0.2s;
padding: 0.75rem 1rem;
}
.btn:hover {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
background-color: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.3);
}

.main-content {
max-width: 64rem;
padding: 2rem 6rem;
margin: 0 auto;
font-size: 1.1rem;
}
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
color: #333;
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: normal;
}

.main-content p {
margin-bottom: 1em;
}

@media screen and (min-width: 64em) {
.page-header {
padding: 5rem 6rem;
}
}
/* Footer */
footer {
font-size: 1rem;
}
.site-footer {
padding-top: 2rem;
margin-top: 2rem;
border-top: 1px solid #eff0f1;
}
.site-footer-owner {
display: block;
font-weight: bold;
}
.site-footer-credits {
color: #819198;
}

0 comments on commit 6045dd9

Please sign in to comment.