|
|
Line 27: |
Line 27: |
| </div> | | </div> |
| </div> | | </div> |
| | <img src="https://images.pexels.com/photos/16725860/pexels-photo-16725860/free-photo-of-two-peo[…]ing-around.jpeg" alt="" role="presentation"> |
| </div> | | </div> |
|
| |
|
Line 79: |
Line 80: |
| } | | } |
| </pre> | | </pre> |
|
| |
| <div class="moha-start-section-v2">
| |
| <div class="moha-start-section-content-v2">
| |
| Below you'll find guides and information for artists interested in getting involved at MoHA.
| |
|
| |
| As first steps we recommend
| |
| *Joining the [[Newsletter_MoHA|MoHA newsletter]]
| |
| *Signing up for [[Open_Calls|open call list]]
| |
| *Saying hello on [[Discord]]
| |
| <br>
| |
| <div class="moha-start-section-quicklinks">
| |
| For a list of programs and opportunities for specific fields you can skip to
| |
| *'''[[Artist_Start#Digital_Artist|Digital Artist]]'''
| |
| *'''[[Artist_Start#Visual_Artist|Visual Artist]]'''
| |
| *'''[[Artist_Start#Performing_Artist|Performing Artist]]'''
| |
| </div>
| |
| </div>
| |
| <img src="https://images.pexels.com/photos/16725860/pexels-photo-16725860/free-photo-of-two-peo[…]ing-around.jpeg" alt="" role="presentation">
| |
| </div>
| |
Revision as of 15:43, July 20, 2023
This is the form class for you:
This is your start page intro code:
Here is the quicklink class:
div class="moha-start-section-quicklinks"
This is the button code:
Internal Link
External Link
CSS Page
https://moha.wiki/MediaWiki:Common.css
Java Script Page
https://moha.wiki/MediaWiki:Common.js
Instructions for start page intro box w/ image
A good option for this is to use the CSS Grid.
https://css-tricks.com/snippets/css/complete-guide-grid/
I've marked the necessary HTML and CSS with comments in the Codepen for reference.
https://codepen.io/Nick-Sergent/pen/mdQKbaZ
The gist:
The client will need to add the image within the "moha-start-section" div of the Artist Start page. Keep in mind that this needs to be after the "moha-start-section-content" div. This will place the text content and image next to one another in the "moha-start-section" div. We then use CSS to set those elements in a grid structure and define column widths that make it responsive for different screens.
That is this line:
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
If the client would like to adjust the breakpoint at which the text content and image break onto two lines they can change the pixel value in that line.
If the client needs a more detailed explanation of what's going on, this article explains the responsive CSS.
https://css-tricks.com/look-ma-no-media-queries-responsive-layouts-using-css-grid/
The following CSS was added to the stylesheet for this element
.moha-start-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.moha-start-section img {
object-fit: cover;
max-width: 100%;
height: 100%;
padding: 0;
margin: 0;
}