My fist school project at Yrgo. The assigment was to to build a news feed with fake news articles in PHP.
- PHP
- CSS
- HTML
git clone https://github.com/amandafager/FAKENEWS.git
cd path/to/project/folder/FAKENEWS
php -S localhost:8000
-
Open http://localhost:8000/index.php in your browser
- Felix Östergren
- Carolina Hagman
By Simon Lindstedt
generalI suggest that all img tags are accompanied by an alt tag.generalMake sure that the php is closed properly when used in conjunction with html.culture.php:51Moving the last<section>tag inside the if-statment of the foreach-loop.economy.php:51Same as above.sport.php:51Same as above.main.css:16-18I suggest auto-margin for placing the popular news and socials in the centre of the screen at smaller sizes.posts.css:154:-158I suggest the same as above, for placing all of the articles in the middle when using smaller screens smaller sizes.functions.php:5-6I would suggest removing the require line, because as far as I can tell the data is not needed in the function-definitions.aside.php:3Strict types declared where it may not be useful.aside.php:27, 32, 38, 43, 49, 54: Since no<use>tag is used, the<defs>can be removed, as far as I can tell. Otherwise, i think you can 'define' your gradient once, and then 'use' it for all three social-media-icons. Like detailed here. I also added a /n character after the first a-tag of each icon, for the sake of readability.- And finally, great job! ✊🏻
This project is licensed under the MIT License - see the LICENSE file for details
