| 
									
										
										
										
											2021-05-01 15:39:51 -05:00
										 |  |  | import BasicPage from "../../../components/basic-page"; | 
					
						
							|  |  |  | import PBlock from "../../../components/project-block"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-11 03:45:19 -05:00
										 |  |  | // An object listing pages folks can visit
 | 
					
						
							|  |  |  | export async function getStaticProps() { | 
					
						
							|  |  |  |   const fs = require("fs"); | 
					
						
							|  |  |  |   const yaml = require("js-yaml"); | 
					
						
							|  |  |  |   let PRIVATE = {}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   try { | 
					
						
							| 
									
										
										
										
											2021-07-11 01:12:40 -05:00
										 |  |  |     let fileContent = fs.readFileSync("./data/pages/projects/private.yml", "utf8"); | 
					
						
							| 
									
										
										
										
											2021-06-11 03:45:19 -05:00
										 |  |  |     PRIVATE = yaml.load(fileContent); | 
					
						
							|  |  |  |   } catch (e) { | 
					
						
							|  |  |  |     console.log(e); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   return { | 
					
						
							|  |  |  |     props: { | 
					
						
							|  |  |  |       PRIVATE, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default function Services({ PRIVATE }) { | 
					
						
							| 
									
										
										
										
											2021-05-01 15:39:51 -05:00
										 |  |  |   return ( | 
					
						
							| 
									
										
										
										
											2021-10-11 22:43:39 -05:00
										 |  |  |     <BasicPage page_title="Private Services" card_title="Some stuff I host for myself!" back_url="/projects"> | 
					
						
							| 
									
										
										
										
											2021-05-01 15:39:51 -05:00
										 |  |  |       <div className="rounded-lg ring-2 ring-werefox-grey dark:ring-werefox-grey-darker bg-werefox-grey-light dark:bg-werefox-grey"> | 
					
						
							|  |  |  |         <PBlock title="Private Services" cards={PRIVATE} /> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </BasicPage> | 
					
						
							|  |  |  |   ); | 
					
						
							|  |  |  | } |