1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-07-09 17:46:20 +02:00

Merge pull request #25 from restoreddev/develop

More tweaks to home page and basics chapter
This commit is contained in:
Andrew
2019-01-08 22:55:24 -06:00
committed by GitHub
3 changed files with 26 additions and 8 deletions

View File

@ -90,7 +90,7 @@ button:hover .icon svg {
.button {
background-color: $primary-color;
color: $white;
padding: 0.25em 0.75em;
padding: 0.5em 0.75em;
border-radius: 2em;
display: inline-block;
}
@ -212,7 +212,23 @@ button:hover .icon svg {
}
.home-buttons .menu {
display: inline-block;
padding: 0.25em 0.75em;
padding: 0.5em 0.75em;
}
@media only screen and (max-width: 420px) {
.home-buttons {
padding-top: 0.5em;
max-width: 15em;
margin: 0 auto;
}
.home-buttons .button {
text-align: center;
display: block;
}
.home-buttons .menu {
margin-top: 0.5em;
text-align: center;
display: block;
}
}
.menu {
margin-bottom: 1.5em;

View File

@ -5,18 +5,20 @@
<div class="home-title-wrapper">
<div class="home-logo"><?= icon('elephant') ?></div>
<h1 class="home-title">PHP Apprentice</h1>
<h3 class="home-subtitle">A site for learning how to use PHP</h3>
<h3 class="home-subtitle">A book for learning how to use PHP</h3>
</div>
<p>
The goal of PHP Apprentice is to be an easy to understand resource for learning how to write good code in the PHP programming language. There are a lot of PHP tutorials on the internet that use outdated practices or insecure code. I want this site to show how to write PHP code with quality.
PHP Apprentice is an online, open source book about the PHP programming language. PHP is one of the most popular platforms for building websites and web services. It is a great language that is easy to learn and allows you to build powerful and complex web applications very quickly.
</p>
<p>
PHP Apprentice is for beginners and for developers who already know some PHP. The site currently has content for learning the basics of PHP. In the future, more pages will be added for more advanced topics like building websites, database integration and security.
The goal of PHP Apprentice is to be an easy to understand resource for learning how to write good code in PHP. There are a lot of PHP tutorials on the internet that use outdated practices or insecure code. I want this book to show how to write PHP code with quality.
</p>
<p>
PHP Apprentice is for beginners and for developers who already know some PHP. The book currently has content for learning the basics of the language. In the future, more pages will be added for more advanced topics like building websites, database integration and security.
</p>
<p>
PHP Apprentice is currently a work in progress. If you would like to give feedback or request a certain discussion topic, check out the <a href="https://github.com/restoreddev/phpapprentice" target="_blank">GitHub repository</a>.
</p>
<p>Let's get started!</p>
<div class="home-buttons">
<a href="<?= page_path('basics') ?>" class="button">
<div class="icon"><?= icon('book-reference') ?></div>

View File

@ -1,6 +1,6 @@
If you want to follow along by writing code, start by downloading a code editor. I recommend
[Visual Studio Code](https://code.visualstudio.com/) or [Sublime Text](https://www.sublimetext.com/).
Next, create a new file in your editor called `basics.php` and save it anywhere on your computer like a folder
Next, create a new file in your editor called `basics.php` and save it anywhere on your computer, like a folder
in your documents called `phpapprentice`. Now, we can write some PHP.
All PHP files must start with a `<?php` tag unless it is for a html template.
@ -47,5 +47,5 @@ No semi-colon is a no-no
PHP Apprentice
```
With any code that we explore in future chapters, I recommend writing a PHP file for it.
With any code in future chapters, I recommend writing a PHP file for it.
It is a great way to get some practice with the language.