You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To begin working on this task, create a branch based off of the currently checked out branch using the following convention: proj-me-initials-49
For your convenience, an image of the design has been added to the bottom of this issue.
If you haven't already, create at least 4 pieces of content of the "Blog" content type. You can use random titles, descriptions, images, etc.
This view (Blog Post) should already be created and can be found at Structure » Views.
Edit this view and add a Block display to it. Rearrange the fields so that the "Authored on" field is before the "Title field". Click on the "Authored on" field and click on "Rewrite results". Choose "Override the output of this field with custom text". In the text field, type the following: BLOG // {{ created }}. This will change the output of this field to display something like "BLOG // April 3, 2017", just how it is in the design. Apply this only to the block display and Save the view.
To place this view block on the homepage, you will need to use the Panels module.
Navigate to Structure » Pages. Edit the "Home" page. Click on the "Home" variant on the left side and then click on "Content".
Click on "+ Add new block" and find and select the "Blog post" block. Choose to not display the title and click on "Add block".
Update and Save and visit your home page. You should see the blogs view on the homepage!
You might notice that the date is in a different format than what is originally in the design. You can fix this by editing the block display of the blog post view and clicking on the "Authored On" field. Under date format, choose custom and refer to the documentation for php date formats to get the correct format. Edit the format as necessary until the format is exactly like this: April 3, 2017. Save the view.
You should now style this view according to the design.
The background color for the pieces of content should be #f4f4f3.
The font color of the word "Blog" should be #c2653b.
The font color of the Blog titles should be #382a3b
The background image for the top piece of content will be uploaded to this task
You should apply a hover effect to this view so that when a piece of content is hovered over, it'll get a background color of #c4673d.
Style the rest of this view according to the design and apply SASS as necessary.
Upon completion of the task, please commit and push all your work to your fork of the proj-me repository. Additionally, export all your configuration by using the drush cex command while inside vagrant and in /var/www/dev-1/proj-me/web. This configuration will also need to be committed and pushed. Remember to create a pull request.
Leave a comment on this issue when you:
Start working on this task
Have a question about this task
Complete this task (please comment on this task with a link to your pull request).
The text was updated successfully, but these errors were encountered:
proj-me-initials-49
BLOG // {{ created }}
. This will change the output of this field to display something like "BLOG // April 3, 2017", just how it is in the design. Apply this only to the block display and Save the view.drush cex
command while inside vagrant and in /var/www/dev-1/proj-me/web. This configuration will also need to be committed and pushed. Remember to create a pull request.The text was updated successfully, but these errors were encountered: