feat: added a nice overview card site
This commit is contained in:
		
							
								
								
									
										40
									
								
								src/_templates/article.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								src/_templates/article.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|   <head> | ||||
|     <meta charset="utf-8" /> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
|     <title>STSG</title> | ||||
|     <link rel="stylesheet" href="/static/bulma.min.css" /> | ||||
|   </head> | ||||
|   <body> | ||||
|     <!-- Header (Navbar) --> | ||||
|     <nav | ||||
|       class="navbar is-primary" | ||||
|       role="navigation" | ||||
|       aria-label="main navigation" | ||||
|     > | ||||
|       <div class="navbar-brand"> | ||||
|         <a class="navbar-item" href="#"> | ||||
|           <strong>Static Translated Site Generator</strong> | ||||
|         </a> | ||||
|       </div> | ||||
|     </nav> | ||||
|  | ||||
|     <!-- Main Content --> | ||||
|     <section class="section"> | ||||
|       <div class="content"> | ||||
|         <a href="../">Go Back</a> | ||||
|       </div> | ||||
|       <div class="content"> | ||||
|         {article_content} | ||||
|       </div> | ||||
|     </section> | ||||
|  | ||||
|     <!-- Footer --> | ||||
|     <footer class="footer"> | ||||
|       <div class="content has-text-centered"> | ||||
|         <p><strong>STSG</strong> by Hazel. © 2025</p> | ||||
|       </div> | ||||
|     </footer> | ||||
|   </body> | ||||
| </html> | ||||
							
								
								
									
										38
									
								
								src/_templates/overview.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								src/_templates/overview.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
|   <head> | ||||
|     <meta charset="utf-8" /> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
|     <title>STSG</title> | ||||
|     <link rel="stylesheet" href="/static/bulma.min.css" /> | ||||
|   </head> | ||||
|   <body> | ||||
|     <!-- Header (Navbar) --> | ||||
|     <nav | ||||
|       class="navbar is-primary" | ||||
|       role="navigation" | ||||
|       aria-label="main navigation" | ||||
|     > | ||||
|       <div class="navbar-brand"> | ||||
|         <a class="navbar-item" href="#"> | ||||
|           <strong>Static Translated Site Generator</strong> | ||||
|         </a> | ||||
|       </div> | ||||
|     </nav> | ||||
|  | ||||
|     <section class="section"> | ||||
|         <div class="container"> | ||||
|             <div class="column is-half is-offset-one-quarter"> | ||||
|                 {overview_cards} | ||||
|             </div> | ||||
|         </div> | ||||
|     </section> | ||||
|  | ||||
|     <!-- Footer --> | ||||
|     <footer class="footer"> | ||||
|       <div class="content has-text-centered"> | ||||
|         <p><strong>STSG</strong> by Hazel. © 2025</p> | ||||
|       </div> | ||||
|     </footer> | ||||
|   </body> | ||||
| </html> | ||||
							
								
								
									
										8
									
								
								src/_templates/overview_card.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/_templates/overview_card.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| <div class="card mb-4"> | ||||
|     <a href="{article_href}" class="card mb-4" style="color: inherit; text-decoration: none;"> | ||||
|         <div class="card-content" href="{article_href}"> | ||||
|             <p class="title">{article_language_flag} {article_language_name}</p> | ||||
|             <p class="content">{article_preview}</p> | ||||
|         </div> | ||||
|     </a> | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user