In order to gain experience with Laravel, js/jquery, and bootstrap, I am working on my own project. The structure of the site/layout I am using for all views is as follows:
| Home |----- content -----| FRIENDS |
| Blog |----- content -----| George |
| Forum |----- content -----| Pablo |
| About |----- content -----| Boris |
--------------------------------------
| -------------- footer ------------- |
There are 3 columns - the first contains the menu for navigation, the second displays the current Laravel view, and the third shows the logged-in user's friends. The friends data is passed to every view through ViewServiceProvider.
For mobile display, I want the following structure:
|------header with icons ------|
|---------- content -----------|
|---------- content -----------|
|---------- content -----------|
| ---------- footer ---------- |
The header is now horizontal and includes icons for home, friends, notifications, and chats.
I have some questions regarding how to implement this design:
How can I change the navigation column to display icons instead of anchor words? Should I use JavaScript to detect the window width and manipulate the DOM, or should I utilize Bootstrap's display properties?
In the header navigation, when clicking on the "friends" icon, I want to display all friends on the phone screen. Since the friends data is already passed to every view, should I create a separate view for friends, or should I hide/display columns based on screen size using Bootstrap?