m (1 revision imported: From 2017 Site) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{Main2019}} |
<html> | <html> | ||
Line 22: | Line 22: | ||
<h3 id="colors"> Colors </h3> | <h3 id="colors"> Colors </h3> | ||
− | <p> The colors used on | + | <p> The colors used on 2019.igem.org are: </p> |
<table> | <table> | ||
<tr height="50px"> | <tr height="50px"> | ||
− | <td bgcolor="# | + | <td bgcolor="#542160" ></td> |
− | <td bgcolor="# | + | <td bgcolor="#90528f" ></td> |
− | <td bgcolor="# | + | <td bgcolor="#b48cb7" ></td> |
− | <td bgcolor="# | + | <td bgcolor="#c7aaca" ></td> |
− | <td bgcolor="# | + | <td bgcolor="#d9c5dd" ></td> |
− | <td bgcolor="# | + | <td bgcolor="#fff" ></td> |
+ | <td bgcolor="#f2f2f2"></td> | ||
+ | <td bgcolor="#d3d3d3"></td> | ||
+ | <td bgcolor="#989898"></td> | ||
+ | <td bgcolor="#000"></td> | ||
</tr> | </tr> | ||
<tr align="center"> | <tr align="center"> | ||
− | <td ># | + | <td > #542160 </td> |
− | <td ># | + | <td> #90528f</td> |
+ | <td > #b48cb7 </td> | ||
+ | <td> #c7aaca </td> | ||
+ | <td >#d9c5dd </td> | ||
+ | <td > #ffffff</td> | ||
<td >#f2f2f2</td> | <td >#f2f2f2</td> | ||
+ | <td >#d3d3d3 </td> | ||
+ | <td > #989898</td> | ||
<td >#000000</td> | <td >#000000</td> | ||
− | |||
− | |||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
+ | |||
+ | <div class="clear extra_space"></div> | ||
+ | <div class="clear extra_space"></div> | ||
<h3> Icons </H3> | <h3> Icons </H3> | ||
Line 75: | Line 85: | ||
<div class="column full_size"> | <div class="column full_size"> | ||
<h2> Creating a new page </h2> | <h2> Creating a new page </h2> | ||
− | <p> Pages created in the | + | <p> Pages created in the 2019.igem.org website must follow a naming convention in order fit the website structure and to be reflected properly in the menu system. The naming convention should make them fall under these categories:</p> |
<ul> | <ul> | ||
<li>About </li> | <li>About </li> | ||
<li>Calendar </li> | <li>Calendar </li> | ||
− | + | <li>Teams </li> | |
<li>Community | <li>Community | ||
<ul> <li> Mentorship </li> </ul> | <ul> <li> Mentorship </li> </ul> | ||
Line 94: | Line 104: | ||
<li>Judging </li> | <li>Judging </li> | ||
<li>Safety</li> | <li>Safety</li> | ||
+ | <li>Human Practices </li> | ||
+ | <li>Measurement </li> | ||
<li>Sponsors | <li>Sponsors | ||
<ul> <li> Special Offers </li> </ul> | <ul> <li> Special Offers </li> </ul> | ||
Line 99: | Line 111: | ||
<li> Resources </li> | <li> Resources </li> | ||
+ | |||
+ | <li> Sitemap</li> | ||
</ul> | </ul> | ||
Line 104: | Line 118: | ||
<p> Here is an example for creating a new <b>application</b> page under the <b>Community</b> namespace and within the <b>Mentorship</b> submenu: <br> | <p> Here is an example for creating a new <b>application</b> page under the <b>Community</b> namespace and within the <b>Mentorship</b> submenu: <br> | ||
− | <b> | + | <b> 2019.igem.org/Community/Mentorship/Apply </b> |
</p> | </p> | ||
Line 121: | Line 135: | ||
<div class="column full_size" id="menu"> | <div class="column full_size" id="menu"> | ||
<h2> Updating the Menu </h2> | <h2> Updating the Menu </h2> | ||
− | <p> Remember to update the menu appropriately when you make a new page and be careful when adding, closing and opening submenus. </p> | + | <p> |
+ | The 2019 Menu is loaded by the wiki template and the original code can be found here: <a href="https://2019.igem.org/HQ:Menu">https://2019.igem.org/HQ:Menu</a> | ||
+ | The code has been updated so you do not need to include ids for the menu to highlight the current page you are in. Remember to update the menu appropriately when you make a new page and be careful when adding, closing and opening submenus. </p> | ||
<div class="clear"></div> | <div class="clear"></div> | ||
Line 129: | Line 145: | ||
<div class="column half_size" id="adding_menu"> | <div class="column half_size" id="adding_menu"> | ||
<h3> Adding a menu item </h3> | <h3> Adding a menu item </h3> | ||
− | <p> The first tier of the menu is reserved for highly important pages, usually hubs that showcase the subpages within that namespace. To create a menu item on the first tier, you can use the following code. This example creates a menu button for " | + | <p> The first tier of the menu is reserved for highly important pages, usually hubs that showcase the subpages within that namespace. To create a menu item on the first tier, you can use the following code. This example creates a menu button for "Colors". </p> |
</div> | </div> | ||
Line 136: | Line 152: | ||
<div class="highlight gray"> | <div class="highlight gray"> | ||
<p> | <p> | ||
− | + | <div class="igem_menu_item"><br><br> | |
− | + | <a href="https://2019.igem.org/Colors"><br> | |
− | + | <div class="hub_icon"> <br> | |
− | + | <img src="https://static.igem.org/mediawiki/2019/8/81/colors_icon.svg"><br> | |
− | + | </div> <br><br> | |
− | + | ||
− | + | <div class="hub_title"> <br> | |
− | + | COLORS<br> | |
− | + | </div> <br> | |
+ | </a><br><br> | ||
+ | </div> | ||
</p> | </p> | ||
</div> | </div> | ||
Line 152: | Line 170: | ||
<div class="column half_size" id="adding_submenu"> | <div class="column half_size" id="adding_submenu"> | ||
− | <h3> Adding a submenu | + | <h3> Adding a submenu and submenu items</h3> |
− | <p> To add another submenu page to the menu, just copy the following code and place it inside the desired submenu wrapper. | + | <p> To add another submenu page to the menu, just copy the following code and place it inside the desired submenu wrapper. In this example we are creating three subpages ("Yellow" and"Red") under the "Colors Hub" The "submenu_item subsection_title" class will create an empty button where you can place the title of that particular section of pages. |
− | + | ||
</p> | </p> | ||
Line 163: | Line 181: | ||
<div class="highlight gray"> | <div class="highlight gray"> | ||
<p> | <p> | ||
− | |||
− | |||
− | <div class=" | + | <div class="igem_menu_item"><br><br> |
+ | <a href="https://2019.igem.org/Colors"><br> | ||
+ | <div class="hub_icon"> <br> | ||
+ | <img src="https://static.igem.org/mediawiki/2019/8/81/colors_icon.svg"><br> | ||
+ | </div> <br><br> | ||
+ | <div class="hub_title"> <br> | ||
+ | COLORS<br> | ||
+ | </div> <br> | ||
+ | </a><br><br> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <b> <div class="submenu_access"></div><br> | ||
+ | |||
+ | <div class="igem_submenu"><br><br> | ||
+ | |||
+ | <div class="submenu_item subsection_title"> Warm Colors </div><br><br> | ||
− | + | <a href="https://2019.igem.org/Colors/Red"><br> | |
− | <div class="submenu_item | + | <div class="submenu_item"><br> |
− | + | Red<br> | |
</div><br> | </div><br> | ||
− | </a> <br> | + | </a><br><br> |
+ | <a href="https://2019.igem.org/Colors/Yellow"><br> | ||
+ | <div class="submenu_item"><br> | ||
+ | Yellow<br> | ||
+ | </div><br> | ||
+ | </a><br><br> | ||
+ | |||
+ | |||
+ | </div></b><br> | ||
+ | <br> | ||
</div> | </div> | ||
Line 196: | Line 229: | ||
<div class="column half_size" id="adding_menu"> | <div class="column half_size" id="adding_menu"> | ||
− | <h3> Adding a | + | <h3> Adding a subsubmenu and subsubmenu items </h3> |
− | <p> | + | <p> If the subpage you created has pages under it, you will have to add a subsubmenu. First you need to indicate that the subpage, in this case we will use 'Reds' has a subsubmenu by adding the class "with_subsub_menu" and then you will have to follow a similar nesting process to adding a submenu. The following code shows the example of adding 'Colors/Reds/Scarlet'. </p> |
− | </p> | + | |
</div> | </div> | ||
Line 205: | Line 237: | ||
<div class="highlight gray"> | <div class="highlight gray"> | ||
<p> | <p> | ||
− | + | ||
− | + | ||
− | + | <div class="igem_menu_item"><br><br> | |
+ | <a href="https://2019.igem.org/Colors"><br> | ||
+ | <div class="hub_icon"> <br> | ||
+ | <img src="https://static.igem.org/mediawiki/2019/8/81/colors_icon.svg"><br> | ||
+ | </div> <br><br> | ||
+ | |||
+ | <div class="hub_title"> <br> | ||
+ | COLORS<br> | ||
+ | </div> <br> | ||
+ | </a><br><br> | ||
+ | |||
+ | |||
+ | <div class="submenu_access"></div><br> | ||
+ | |||
+ | <div class="igem_submenu"><br><br> | ||
+ | |||
+ | <div class="submenu_item subsection_title"> Warm Colors </div><br><br> | ||
+ | |||
+ | <a href="https://2019.igem.org/Colors/Reds"><br> | ||
+ | <div class="submenu_item <b>with_subsub_menu</b>"><br> | ||
+ | Reds<br> | ||
</div><br> | </div><br> | ||
− | </a><br> | + | </a><br><br> |
− | + | ||
− | <div class=" | + | <b> <div class="submenu_access"></div><br> |
− | + | ||
− | + | <div class="igem_subsubmenu"><br><br> | |
− | + | ||
− | </ | + | <a href="https://2019.igem.org/Colors/Reds/Scarlet"><br> |
− | + | <div class="subsubmenu_item"><br> | |
+ | Scarlet<br> | ||
+ | </div><br> | ||
+ | </a><br> | ||
+ | |||
+ | </div></b> <br> </br> | ||
+ | |||
+ | <a href="https://2019.igem.org/Colors/Yellow"><br> | ||
+ | <div class="submenu_item"><br> | ||
+ | Yellow<br> | ||
</div><br> | </div><br> | ||
+ | </a><br><br> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </div><br> | ||
+ | <br> | ||
+ | </div> | ||
</p> | </p> | ||
Line 512: | Line 581: | ||
<p> Layout classes will help structure your page. You will need to call it when you start your page to have the proper layout and make it responsive. There are four types of layout options, which vary between one column up to four in the same row. <br> | <p> Layout classes will help structure your page. You will need to call it when you start your page to have the proper layout and make it responsive. There are four types of layout options, which vary between one column up to four in the same row. <br> | ||
<ul> | <ul> | ||
− | <li> One column: class="column full_size" </li> | + | <li> One column (100%) : class="column full_size" </li> |
− | <li> Two columns: class="column half_size" </li> | + | <li> Three quarters column (75%) : class="column three_quarter_size" </li> |
− | <li> Three columns: class="column third_size" </li> | + | <li> Two thirds column (66%) : class="column two_thirds_size" </li> |
− | <li> Four columns: class="column | + | <li> Two columns (50%) : class="column half_size" </li> |
+ | <li> Three columns (33%): class="column third_size" </li> | ||
+ | <li> Four columns (25%) : class="column quarter_size" </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | |||
<div class="column half_size"> | <div class="column half_size"> | ||
Line 530: | Line 604: | ||
+ | <div class="clear extra_space"></div> | ||
+ | |||
+ | <div class="column full_size"> | ||
+ | <img src="https://placehold.it/1050x200"> | ||
+ | </div> | ||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | <div class="column half_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <div class="column half_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | <div class="column quarter_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | <div class="column quarter_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="column quarter_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="column quarter_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | |||
+ | <div class="column quarter_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <div class="column three_quarter_size"> | ||
+ | <img src="https://placehold.it/1050x100"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | <div class="column third_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | <div class="column third_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | <div class="column third_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | <div class="clear"></div> | ||
+ | |||
+ | <div class="column third_size"> | ||
+ | <img src="https://placehold.it/550x200"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="column two_thirds_size"> | ||
+ | <img src="https://placehold.it/1050x180"> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
+ | |||
+ | <div class="clear extra_space"></div> | ||
<div class="clear extra_space"></div> | <div class="clear extra_space"></div> | ||
Line 555: | Line 717: | ||
− | <div class="clear"></div> | + | <div class="clear extra_space"></div> |
Line 565: | Line 727: | ||
<ul> | <ul> | ||
<li> <b> class="highlight gray" </b> to add a gray background </li> | <li> <b> class="highlight gray" </b> to add a gray background </li> | ||
− | <li> <b> class="highlight | + | <li> <b> class="highlight decoration_top"</b> to add a decorative line on top </li> |
− | <li> <b> class="highlight | + | <li> <b> class="highlight decoration_full" </b> to add a border around the div </li> |
+ | <li> <b> class="highlight decoration_light_top"</b> to add a light color decorative line on top </li> | ||
+ | <li> <b> class="highlight decoration_light_full" </b> to add a light color border around the div </li> | ||
+ | <li> <b> class="highlight decoration_dark_top"</b> to add a dark color decorative line on top </li> | ||
+ | <li> <b> class="highlight decoration_dark_full" </b> to add a dark color border around the div </li> | ||
</ul> | </ul> | ||
Line 573: | Line 739: | ||
− | <div class="column | + | <div class="column quarter_size"> |
− | <div class="highlight | + | <div class="highlight decoration_dark_full" > |
<p> | <p> | ||
− | <div class="column | + | <div class="column quarter_size" > <br> |
− | <div class="highlight | + | <div class="highlight decoration_dark_full"><br><br> |
</div><br> | </div><br> | ||
</div> | </div> | ||
Line 585: | Line 751: | ||
</div> | </div> | ||
− | <div class="column | + | <div class="column quarter_size"> |
− | <div class="highlight gray | + | <div class="highlight gray decoration_light_top"> |
<p> | <p> | ||
− | <div class="column | + | <div class="column quarter_size" > <br> |
− | <div class="highlight gray | + | <div class="highlight gray decoration_light_top"><br><br> |
</div><br> | </div><br> | ||
</div> | </div> | ||
Line 597: | Line 763: | ||
</div> | </div> | ||
− | + | <div class="clear extra_space"></div> | |
− | <div class="clear"></div> | + | |
<div class="column half_size" id="button"> | <div class="column half_size" id="button"> | ||
Line 624: | Line 789: | ||
− | <div class="clear"></div> | + | <div class="clear extra_space"></div> |
<div class="column half_size" id="clear"> | <div class="column half_size" id="clear"> | ||
Line 648: | Line 813: | ||
<div class="line_divider"></div> | <div class="line_divider"></div> | ||
<div class="clear extra_space"></div> | <div class="clear extra_space"></div> | ||
+ | |||
+ | |||
<div class="column full_size"> | <div class="column full_size"> | ||
− | <h2> | + | <h2> SPECIAL CASES</h2> |
− | <p> | + | <p> There are some specific sections in the wiki where certain support classes are called or when a different resource is called. Here a few of them.</p> |
</div> | </div> | ||
+ | |||
<div class="column half_size"> | <div class="column half_size"> | ||
− | <h3> | + | <h3> News items </h3> |
− | <p> | + | <p> News items are displayed in the main page but they are stored and loaded form the News Archive page ( <a href="https://2019.igem.org/Community/News_Archive">https://2019.igem.org/Community/News_Archive</a> ) to avoid losing data. |
− | < | + | The following code shows how to create a news item on the Archive. Instructions can also be found on the top of page when clicking "edit". |
+ | </p> | ||
</div> | </div> | ||
<div class="column half_size"> | <div class="column half_size"> | ||
+ | <br> | ||
<div class="highlight gray"> | <div class="highlight gray"> | ||
<p> | <p> | ||
− | + | < div class="highlight news_item"><br> | |
− | < | + | <div class="news_date"> Month - Day </div><br> |
− | + | <h3> Title </h3><br> | |
− | < | + | <p> Description </p><br> |
+ | <div> | ||
</p> | </p> | ||
+ | |||
</div> | </div> | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | < | + | <div class="clear extra_space"></div> |
− | < | + | |
− | < | + | |
− | < | + | <div class="column half_size" > |
− | </ | + | <h3> Calendar </h3> |
+ | <p> The Calendar uses a set of special classes that display and control the viewing of the deadlines in each month. Information is divided in the date of the event and the information pertinent to it. The following code shows how to create a month with one event, the final result can be seen bellow. | ||
+ | </p> | ||
+ | <div class="clear extra_space"></div> | ||
+ | |||
+ | <div class="calendar_month"> | ||
+ | |||
+ | <h1> MONTH <div class="calendar_month_access content_control displaying_content"> </div> </h1> | ||
+ | |||
+ | <div class="calendar_month_content" > | ||
+ | |||
+ | <div class="deadline_date"> | ||
+ | ## | ||
+ | </div> | ||
+ | |||
+ | <div class="deadline_content"> | ||
+ | <h3>Title </h3> | ||
+ | <p>Lorem ipsum dolor sit amet, mundi similique at nam, ius soleat efficiantur te. Reque errem voluptatibus in his. </p> | ||
+ | </div> | ||
+ | |||
+ | |||
+ | <div class="clear extra_space"></div> | ||
+ | |||
+ | </div> | ||
+ | </div> | ||
− | |||
</div> | </div> | ||
Line 691: | Line 883: | ||
<div class="highlight gray"> | <div class="highlight gray"> | ||
<p> | <p> | ||
− | + | <div class="calendar_month"><br><br> | |
− | + | <h1> MONTH <div class="calendar_month_access content_control displaying_content"> </div> </h1> <br><br> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div class="calendar_month_content" ><br><br> | |
+ | |||
+ | <div class="deadline_date"><br> | ||
+ | ##<br> | ||
+ | </div><br><br> | ||
+ | |||
+ | <div class="deadline_content"><br> | ||
+ | <h3>Title </h3><br> | ||
+ | <p> Text </p><br> | ||
+ | </div><br><br> | ||
+ | |||
+ | |||
+ | <div class="clear extra_space"></div><br> | ||
+ | |||
+ | </div><br> | ||
+ | </div> | ||
</p> | </p> | ||
+ | |||
</div> | </div> | ||
</div> | </div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div class="clear extra_space"></div> | ||
+ | |||
+ | <div class="column half_size" > | ||
+ | <h3> Image Slider </h3> | ||
+ | |||
+ | <p>Remember to keep the same number of items in both lists so the numbers match and work correctly.</p> | ||
+ | |||
+ | |||
+ | |||
+ | <div class="clear extra_space"></div> | ||
+ | |||
+ | <div id="image_carrousel"> | ||
+ | |||
+ | <ul class="image_slider" > | ||
+ | <li class="current_image"><img src="https://placehold.it/550x200"></li> | ||
+ | <li><img src="https://placehold.it/550x200"></li> | ||
+ | <li><img src="https://placehold.it/550x200"></li> | ||
+ | </ul> | ||
+ | |||
+ | <div class="image_controller prev"> </div> | ||
+ | <ul class="image_number"> | ||
+ | <li class="current_image_number"> 1</li> | ||
+ | <li> 2</li> | ||
+ | <li> 3</li> | ||
+ | </ul> | ||
+ | <div class="image_controller next"> </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | <div class="column half_size" > | ||
+ | <div class="highlight gray"> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <p><div id="image_carrousel"><br><br> | ||
+ | |||
+ | <ul class="image_slider" ><br> | ||
+ | <li class="current_image"><img src="https://placehold.it/550x200"></li><br> | ||
+ | <li><img src="https://placehold.it/550x200"></li><br> | ||
+ | <li><img src="https://placehold.it/550x200"></li><br> | ||
+ | </ul><br><br> | ||
+ | |||
+ | <div class="image_controller prev"> </div><br> | ||
+ | <ul class="image_number"><br> | ||
+ | <li class="current_image_number"> 1</li><br> | ||
+ | <li> 2</li><br> | ||
+ | <li> 3</li><br> | ||
+ | </ul><br><br> | ||
+ | |||
+ | <div class="image_controller next"> </div><br> | ||
+ | |||
+ | </div></p> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <div class="clear extra_space"></div> |
Revision as of 18:12, 30 January 2018
CODE DOCUMENTATION
Website Visuals
Colors
The colors used on 2019.igem.org are:
#542160 | #90528f | #b48cb7 | #c7aaca | #d9c5dd | #ffffff | #f2f2f2 | #d3d3d3 | #989898 | #000000 |
Icons
The icons used on our website where obtained from the noun project website. The credits can be found on the list below.
- Safety Googles by Giuditta Gentile
- Star by Eagle Eye
- Gabel by Bernar Novalyi
- Fireworks by Yeoul Kwon
- Sitemap by Pro Symbols
- Volunteers by MRFA
- Information by i cons
- Calendar Nook Fulloption
- Gears by Aya Sofya
- Book by MRFA
Creating a new page
Pages created in the 2019.igem.org website must follow a naming convention in order fit the website structure and to be reflected properly in the menu system. The naming convention should make them fall under these categories:
- About
- Calendar
- Teams
- Community
- Mentorship
- Competition
- Registration
- Deliverables
- Tracks
- Giant Jamboree
- Judging
- Safety
- Human Practices
- Measurement
- Sponsors
- Special Offers
- Resources
- Sitemap
Here is an example for creating a new application page under the Community namespace and within the Mentorship submenu:
2019.igem.org/Community/Mentorship/Apply
If a page that doesn't fall under the previous categories needs to be created, please contact Ana or Traci before creating said page.