├── .github └── ISSUE_TEMPLATE │ ├── rfc---bug-report.md │ ├── rfc---feature-request-change.md │ └── rfc-implementation.md ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.md ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── helpers ├── MoffatQuotes.jsx ├── MoffatTitles.jsx └── Spanify.jsx ├── next.config.js ├── package-lock.json ├── package.json ├── pages ├── _document.jsx ├── about │ └── index.jsx ├── amoffat │ └── index.jsx ├── contribute │ └── index.jsx ├── home │ └── index.jsx └── index.jsx ├── static ├── favicon.ico ├── mofface │ ├── 1995.gif │ ├── 1998.jpg │ ├── 1999.jpg │ ├── 2001.jpg │ ├── 2004.jpg │ ├── 2006.jpg │ ├── 2009.jpg │ ├── 2010.jpg │ ├── 2012.jpg │ ├── 2016.jpg │ └── 2017.jpg ├── moffat.png └── moffbook │ ├── bible.jpg │ ├── compression.jpg │ └── giga.jpg ├── styles ├── amoffat.scss ├── bootstrap.css ├── constants.scss ├── index │ ├── index.scss │ └── speech.scss ├── master.scss └── theme │ ├── footer.scss │ ├── header.scss │ └── maintheme.scss └── themes ├── MainThemify.jsx ├── footer.jsx └── header.jsx /.github/ISSUE_TEMPLATE/rfc---bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: RFC - Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | Please select the "bug" label on the right ----------------------> 8 | Please delete the above instructions once you've completed them 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/rfc---feature-request-change.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: RFC - Feature Request/Change 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | Please select "RFC" label on the right ----------------------> 8 | Please select any users you would like to have people involved ----------------------> 9 | (You do not need to add mods, they'll check anything labelled RFC) 10 | Please delete the above instructions once you've completed them 11 | 12 | **Suggested Feature** 13 | Describe the solution you'd like. A clear and concise description of what you want to happen. 14 | 15 | **Benefits** 16 | How will this feature help the advancement of the website? Keep in mind that the main focus is "fun" and "entertaining". 17 | 18 | **Alternatives (If any)** 19 | Describe alternatives you've considered. A clear and concise description of any alternative solutions or features you've considered. 20 | 21 | **Additional context** 22 | Add any other context or screenshots about the feature request here. 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/rfc-implementation.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: RFC Implementation 3 | about: Based on RFC, Implement the new feature/change 4 | 5 | --- 6 | 7 | Please select the correct label (new feature or enhancement) on the right -----> 8 | Please delete the above instructions once you've completed them 9 | 10 | **Link to the original RFC** 11 | Please have link to the original RFC here (#number) 12 | 13 | **Implementation** 14 | In detail, describe implementation plans 15 | 16 | **Approver** 17 | The feature must have an approver who will be responsible for approving a pull request later on. Please state one here (if unknown, fill out @bermuda-ut) 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # node 2 | node_modules 3 | 4 | # Next.js build 5 | .next 6 | .idea 7 | out 8 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at maxisbac@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Anybody can contribute to the fan page! However, the website's direction is determined by the author(s), just like any other responsible software. Before you begin, please have a quick read on [code of contuct](CODE_OF_CONDUCT.md). 4 | 5 | ## Website's direction 6 | As of now, there isn't a solid direction set for the website. However, Algorithms are Fun is aimed to: 7 | * Encourage students to participate in open-source software 8 | * Show off contributors' creativity 9 | The "Fan Page" is just a way for students to easily understand the theme and start building habits in contributing to open-source software. 10 | 11 | ## If you have an idea for the fan page 12 | 1. Create a Github issue with RFC label, along with descriptions of your idea (hopefully short and easy to understand, better if assisted with pictures). 13 | 2. Moderator(s) will discuss whether to have your idea approved or not. This will also determine how the idea will be implemented. 14 | 3. If approved, a new issue will be created with "feature" label. All code must be commited with this issue number. 15 | 16 | ## If you would like to work on an approved feature 17 | Please have a read on how Git Flow works first. Then: 18 | 19 | 1. Create a new branch, ideally same name as the Github issue (ie. feature/issue-name-here) 20 | 2. Please follow the implementation instructions. If you have a better idea, please discuss in the ticket with the selected approver for the issue. 21 | 3. Once implemented, please create a pull request to the development branch. The approver will take appropriate action afterwards. You may be required to make changes. 22 | 23 | Please don't forget to state authorship in the comments of your committing code. 24 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Max Lee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Please select the correct label on the right ----------------------> 2 | Please select a moderator who will approve this ----------------------> 3 | Please delete the above instructions once you've completed them 4 | 5 | # branch name here 6 | Approver: 7 | Issue: 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Algorithms are Fun! 2 | aka. Programming is Fun (for Engineering Computation students). 3 | Visit the fan page at [algorithmsarefun.com](https://algorithmsarefun.com) or [algorithmsare.fun](https://algorithmsare.fun) 4 | 5 | ## What is this? 6 | This is a [Alistair Moffat](https://people.eng.unimelb.edu.au/ammoffat/) fan page source code repository. Who is Alistair Moffat? Overall passionate and entertaining lecturer who cares a lot about his students and has enough street cred to have his students set something up like this voluntarily. "Algorithms are fun" and "Programming is fun" are his punch lines in his lectures. 7 | 8 | The project's main aim is to encourage students/beginners to contribute to open-source software with easy barrier of entry. The goal is to build students/beginners habit into working in online collaborative environment. 9 | 10 | ## Getting Started 11 | Alistair Moffat fan page "Algorithms are Fun" is written in React, compiled into basic HTML/CSS/JS using [Next.js](https://github.com/zeit/next.js). To get started with your development environment: 12 | 13 | ``` 14 | $ npm i 15 | $ npm run dev 16 | ``` 17 | 18 | Please have a read through Next.js to understand project structure. 19 | 20 | ## Contributing 21 | Refer to [CONTRIBUTING.md](CONTRIBUTING.md) 22 | 23 | ## Disclaimer 24 | This project is completely independent of Alistair Moffat. This project is purely organized by [Max Lee](https://mallocsizeof.me), now graduated student of Alistair's. 25 | 26 | ## Project Owner 27 | This project was initiated by Max Lee 28 | -------------------------------------------------------------------------------- /helpers/MoffatQuotes.jsx: -------------------------------------------------------------------------------- 1 | const Quotes = [ 2 | "Algorithms are fun", 3 | "Programming is fun", 4 | "I spat at my computer", 5 | "Look at those protons fly by!", 6 | "'sex'", 7 | "Ladies and Gentlemen :))", 8 | "Get back to Monash", 9 | "You deserve a zero", 10 | ] 11 | 12 | export default Quotes; -------------------------------------------------------------------------------- /helpers/MoffatTitles.jsx: -------------------------------------------------------------------------------- 1 | const Titles = [ 2 | "Lusty Moffat", 3 | "Sir Moffat", 4 | "Alistair Moffat", 5 | "Smexy Moffat", 6 | "Now-Oz Moffat", 7 | "Moffat", 8 | ] 9 | 10 | export default Titles; -------------------------------------------------------------------------------- /helpers/Spanify.jsx: -------------------------------------------------------------------------------- 1 | var hook = 0; 2 | export default function Spanify(contents) { 3 | var res = []; 4 | 5 | for(var i = 0; i < contents.length; i++) { 6 | res.push( 7 | {contents[i]} 8 | ); 9 | } 10 | hook++; 11 | 12 | return res; 13 | } -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | const withSass = require('@zeit/next-sass') 2 | module.exports = withSass() 3 | 4 | module.exports.exportPathMap = function(defaultPathMap) { 5 | return { 6 | '/': { page: '/' }, 7 | '/home': { page: '/home' }, 8 | '/about': { page: '/about' }, 9 | '/amoffat': { page: '/amoffat' }, 10 | '/contribute': { page: '/contribute' }, 11 | } 12 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "algorithms-are-fun", 3 | "version": "1.0.0", 4 | "description": "Alistair Moffat fan page", 5 | "main": "index.js", 6 | "dependencies": { 7 | "@zeit/next-sass": "^0.2.0", 8 | "next": "^6.0.3", 9 | "node-sass": "^4.9.0", 10 | "react": "^16.4.0", 11 | "react-dom": "^16.4.0" 12 | }, 13 | "devDependencies": {}, 14 | "scripts": { 15 | "dev": "next", 16 | "build": "next build && next export", 17 | "start": "next start" 18 | }, 19 | "repository": { 20 | "type": "git", 21 | "url": "git+https://github.com/algorithms-are-fun/amoffat-fan-page.git" 22 | }, 23 | "keywords": [ 24 | "alistair", 25 | "moffat" 26 | ], 27 | "author": "Max Lee (mallocsizeof.me)", 28 | "license": "MIT", 29 | "bugs": { 30 | "url": "https://github.com/algorithms-are-fun/amoffat-fan-page/issues" 31 | }, 32 | "homepage": "https://github.com/algorithms-are-fun/amoffat-fan-page#readme" 33 | } 34 | -------------------------------------------------------------------------------- /pages/_document.jsx: -------------------------------------------------------------------------------- 1 | import Document, { Head, Main, NextScript } from 'next/document' 2 | 3 | export default class extends Document { 4 | render() { 5 | return ( 6 | 7 | 8 | 9 | What is that is Fun? 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | ) 23 | } 24 | } -------------------------------------------------------------------------------- /pages/about/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import MainThemify from '../../themes/MainThemify' 3 | import Spanify from '../../helpers/Spanify' 4 | 5 | class Main extends React.Component { 6 | render() { 7 | return
8 |

This Website

9 | 10 |

11 | Computer Science students and alumni of University of Melbourne have joined 12 | together to deliever to the world how amazing Alistair Moffat is as a lecturer. 13 |

14 | 15 |

Take a moment to appriciate Alistair Moffat's paper-holding skills:

16 | 17 | 18 |

19 | Initially, a fanpage existed under a different domain and maintained by someone 20 | else. However, now that webpage has become deprecated, Max Lee took charge and 21 | decided to create one himself. 22 |

23 | 24 |

25 | Now this new fan website is open-source and encourages collaborative development from 26 | students and alumni around the world. 27 |

28 |
29 | } 30 | } 31 | 32 | export default MainThemify(Main); -------------------------------------------------------------------------------- /pages/amoffat/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import MainThemify from '../../themes/MainThemify' 3 | import Spanify from '../../helpers/Spanify' 4 | import '../../styles/amoffat.scss' 5 | 6 | class Main extends React.Component { 7 | render() { 8 | return
9 |
10 |
11 | 12 |

Moffat.smile()

13 |
14 |
15 |

Sir Lord Master

16 |

Alistair Moffat

17 |

Meme at the University of Melbourne

18 |
19 |

UniMelb Profile

20 |
21 |
22 | 23 |
24 |

Bibles

25 |

Collect them all if you truly love him. I surely don't.

26 |
27 |
28 | 29 |

Programming, Problem Solving, and Abstraction with C

30 |
31 | 32 |
33 | 34 |

Compression and Coding Algorithms

35 |
36 | 37 |
38 | 39 |

Managing Gigabytes

40 |
41 |
42 |
43 | 44 |

Teaching

45 |
46 |

COMP10002 Foundations of Algorithms

47 |
48 |
49 |

COMP20005 Engineering Computation

50 |
51 |
52 | } 53 | } 54 | 55 | export default MainThemify(Main); -------------------------------------------------------------------------------- /pages/contribute/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import MainThemify from '../../themes/MainThemify' 3 | import Spanify from '../../helpers/Spanify' 4 | 5 | class Main extends React.Component { 6 | render() { 7 | return
8 |

Submit your Memes, Quotes, Moffat-Moments.. Or something special ;)

9 | 10 |

11 | The fan page is aimed to be fun open-source website where anybody can contribute. 12 | The main aim of the website was to provide an easy project for students to work together 13 | in, and building habit into contributing in open-source software. 14 |

15 | 16 |

17 | You have all the freedom - you can suggest good ideas or just implement wanted features 18 | to show off your front-end development skills. 19 |

20 | 21 |

22 | Contribute now on Github! 23 |

24 | 25 | 28 |

Alistair is Watching you.. What would you do?

29 |
30 | } 31 | } 32 | 33 | export default MainThemify(Main); -------------------------------------------------------------------------------- /pages/home/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import MainThemify from '../../themes/MainThemify' 3 | import Spanify from '../../helpers/Spanify' 4 | 5 | class Main extends React.Component { 6 | render() { 7 | return
8 | 11 |

*srs faec*

12 | 13 |

The Fan Page needs Your Cuntribution!

14 |

This new page is setup for students to encourage students to contribute to 15 | open-source software. This can be simply providing ideas, content (memes are welcome), or 16 | developing a requested feature to show off your front-end development 133t skills.

17 |

Alistair is watching you, contribute now on Github!

18 | 19 |
20 | 21 |

Legendary Moffchivements

22 | 23 | 26 |

Very seductive

27 | 28 |

Here are some of Alistair's legendary work that is fairly unknown to the world:

29 | 30 |
31 |

O(1) Moffat Sort

32 | 33 |
34 | 35 |

Legend says, Moffat Sort developed by Alistair Moffat himself only takes O(1) 36 | complexity. Here is the pseudo code:

37 | 38 |
39 | { 40 | Spanify([ 41 | "func MoffSort(list)", 42 | "\tStudyAlgorithms(list)", 43 | "\tAttendAlistairLectures(list)", 44 | "\tAddASCIIartInProjects(list)", 45 | "\tDrawThomasDankEngineInExams(list)", 46 | "\tContributeToWebsite(list)", 47 | "\tanswer(list[42])", 48 | ]) 49 | } 50 |
51 |
52 |
53 |
54 | } 55 | } 56 | 57 | export default MainThemify(Main); -------------------------------------------------------------------------------- /pages/index.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import "../styles/master.scss" 3 | import '../styles/index/index.scss' 4 | import '../styles/index/speech.scss' 5 | import Quotes from '../helpers/MoffatQuotes.jsx' 6 | import Titles from '../helpers/MoffatTitles.jsx' 7 | 8 | export default class Landing extends React.Component { 9 | constructor(props) { 10 | super(props); 11 | let idx = Math.floor(Math.random() * Quotes.length); 12 | let idx2 = Math.floor(Math.random() * Titles.length); 13 | this.state = { 14 | phrase: Quotes[idx], 15 | moffat: Titles[idx2] 16 | } 17 | } 18 | 19 | render() { 20 | return
21 |
22 |

ALGORITHMS ARE FUN

23 |

Lord Alistair has blessed us with Algorithms and Programming

24 |
25 | 26 |
27 | 28 | 29 | 30 |
31 |
32 |

{this.state.phrase}

33 |
34 |
35 | 36 |

Click {this.state.moffat} to continue

37 |
38 |
39 |
40 | } 41 | } -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/favicon.ico -------------------------------------------------------------------------------- /static/mofface/1995.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/1995.gif -------------------------------------------------------------------------------- /static/mofface/1998.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/1998.jpg -------------------------------------------------------------------------------- /static/mofface/1999.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/1999.jpg -------------------------------------------------------------------------------- /static/mofface/2001.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2001.jpg -------------------------------------------------------------------------------- /static/mofface/2004.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2004.jpg -------------------------------------------------------------------------------- /static/mofface/2006.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2006.jpg -------------------------------------------------------------------------------- /static/mofface/2009.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2009.jpg -------------------------------------------------------------------------------- /static/mofface/2010.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2010.jpg -------------------------------------------------------------------------------- /static/mofface/2012.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2012.jpg -------------------------------------------------------------------------------- /static/mofface/2016.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2016.jpg -------------------------------------------------------------------------------- /static/mofface/2017.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/mofface/2017.jpg -------------------------------------------------------------------------------- /static/moffat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/moffat.png -------------------------------------------------------------------------------- /static/moffbook/bible.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/moffbook/bible.jpg -------------------------------------------------------------------------------- /static/moffbook/compression.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/moffbook/compression.jpg -------------------------------------------------------------------------------- /static/moffbook/giga.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/algorithms-are-fun/amoffat-fan-page/e83a8e065b052580bedde98e38c9087862f180f8/static/moffbook/giga.jpg -------------------------------------------------------------------------------- /styles/amoffat.scss: -------------------------------------------------------------------------------- 1 | .about { 2 | .profile { 3 | .details { 4 | text-align: center; 5 | text-transform: uppercase; 6 | 7 | h1, h2 { 8 | margin: 0; 9 | } 10 | 11 | h1 { 12 | font-size: 6em; 13 | } 14 | 15 | hr { 16 | margin: 4em 30%; 17 | } 18 | } 19 | } 20 | 21 | .book { 22 | img { 23 | width: 50%; 24 | } 25 | p { 26 | text-align: center; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /styles/bootstrap.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.7 (http://getbootstrap.com) 3 | * Copyright 2011-2018 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | /*! 8 | * Generated using the Bootstrap Customizer () 9 | * Config saved to config.json and 10 | */ 11 | /*! 12 | * Bootstrap v3.3.7 (http://getbootstrap.com) 13 | * Copyright 2011-2016 Twitter, Inc. 14 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 15 | */ 16 | /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ 17 | html { 18 | font-family: sans-serif; 19 | -ms-text-size-adjust: 100%; 20 | -webkit-text-size-adjust: 100%; 21 | } 22 | body { 23 | margin: 0; 24 | } 25 | article, 26 | aside, 27 | details, 28 | figcaption, 29 | figure, 30 | footer, 31 | header, 32 | hgroup, 33 | main, 34 | menu, 35 | nav, 36 | section, 37 | summary { 38 | display: block; 39 | } 40 | audio, 41 | canvas, 42 | progress, 43 | video { 44 | display: inline-block; 45 | vertical-align: baseline; 46 | } 47 | audio:not([controls]) { 48 | display: none; 49 | height: 0; 50 | } 51 | [hidden], 52 | template { 53 | display: none; 54 | } 55 | abbr[title] { 56 | border-bottom: 1px dotted; 57 | } 58 | b, 59 | strong { 60 | font-weight: bold; 61 | } 62 | dfn { 63 | font-style: italic; 64 | } 65 | mark { 66 | background: #ff0; 67 | color: #000; 68 | } 69 | small { 70 | font-size: 80%; 71 | } 72 | sub, 73 | sup { 74 | font-size: 75%; 75 | line-height: 0; 76 | position: relative; 77 | vertical-align: baseline; 78 | } 79 | sup { 80 | top: -0.5em; 81 | } 82 | sub { 83 | bottom: -0.25em; 84 | } 85 | img { 86 | border: 0; 87 | } 88 | svg:not(:root) { 89 | overflow: hidden; 90 | } 91 | figure { 92 | margin: 1em 40px; 93 | } 94 | hr { 95 | -webkit-box-sizing: content-box; 96 | -moz-box-sizing: content-box; 97 | box-sizing: content-box; 98 | height: 0; 99 | } 100 | pre { 101 | overflow: auto; 102 | } 103 | code, 104 | kbd, 105 | pre, 106 | samp { 107 | font-family: monospace, monospace; 108 | font-size: 1em; 109 | } 110 | button, 111 | input, 112 | optgroup, 113 | select, 114 | textarea { 115 | color: inherit; 116 | font: inherit; 117 | margin: 0; 118 | } 119 | button { 120 | overflow: visible; 121 | } 122 | button, 123 | select { 124 | text-transform: none; 125 | } 126 | button, 127 | html input[type="button"], 128 | input[type="reset"], 129 | input[type="submit"] { 130 | -webkit-appearance: button; 131 | cursor: pointer; 132 | } 133 | button[disabled], 134 | html input[disabled] { 135 | cursor: default; 136 | } 137 | button::-moz-focus-inner, 138 | input::-moz-focus-inner { 139 | border: 0; 140 | padding: 0; 141 | } 142 | input { 143 | line-height: normal; 144 | } 145 | input[type="checkbox"], 146 | input[type="radio"] { 147 | -webkit-box-sizing: border-box; 148 | -moz-box-sizing: border-box; 149 | box-sizing: border-box; 150 | padding: 0; 151 | } 152 | input[type="number"]::-webkit-inner-spin-button, 153 | input[type="number"]::-webkit-outer-spin-button { 154 | height: auto; 155 | } 156 | input[type="search"] { 157 | -webkit-appearance: textfield; 158 | -webkit-box-sizing: content-box; 159 | -moz-box-sizing: content-box; 160 | box-sizing: content-box; 161 | } 162 | input[type="search"]::-webkit-search-cancel-button, 163 | input[type="search"]::-webkit-search-decoration { 164 | -webkit-appearance: none; 165 | } 166 | fieldset { 167 | border: 1px solid #c0c0c0; 168 | margin: 0 2px; 169 | padding: 0.35em 0.625em 0.75em; 170 | } 171 | legend { 172 | border: 0; 173 | padding: 0; 174 | } 175 | textarea { 176 | overflow: auto; 177 | } 178 | optgroup { 179 | font-weight: bold; 180 | } 181 | table { 182 | border-collapse: collapse; 183 | border-spacing: 0; 184 | } 185 | td, 186 | th { 187 | padding: 0; 188 | } 189 | * { 190 | -webkit-box-sizing: border-box; 191 | -moz-box-sizing: border-box; 192 | box-sizing: border-box; 193 | } 194 | *:before, 195 | *:after { 196 | -webkit-box-sizing: border-box; 197 | -moz-box-sizing: border-box; 198 | box-sizing: border-box; 199 | } 200 | input, 201 | button, 202 | select, 203 | textarea { 204 | font-family: inherit; 205 | font-size: inherit; 206 | line-height: inherit; 207 | } 208 | figure { 209 | margin: 0; 210 | } 211 | img { 212 | vertical-align: middle; 213 | } 214 | .img-responsive { 215 | display: block; 216 | max-width: 100%; 217 | height: auto; 218 | } 219 | .img-rounded { 220 | border-radius: 6px; 221 | } 222 | .img-thumbnail { 223 | padding: 4px; 224 | line-height: 1.42857143; 225 | background-color: #ffffff; 226 | border: 1px solid #dddddd; 227 | border-radius: 4px; 228 | -webkit-transition: all 0.2s ease-in-out; 229 | -o-transition: all 0.2s ease-in-out; 230 | transition: all 0.2s ease-in-out; 231 | display: inline-block; 232 | max-width: 100%; 233 | height: auto; 234 | } 235 | .img-circle { 236 | border-radius: 50%; 237 | } 238 | hr { 239 | margin-top: 20px; 240 | margin-bottom: 20px; 241 | border: 0; 242 | border-top: 1px solid #eeeeee; 243 | } 244 | .sr-only { 245 | position: absolute; 246 | width: 1px; 247 | height: 1px; 248 | margin: -1px; 249 | padding: 0; 250 | overflow: hidden; 251 | clip: rect(0, 0, 0, 0); 252 | border: 0; 253 | } 254 | .sr-only-focusable:active, 255 | .sr-only-focusable:focus { 256 | position: static; 257 | width: auto; 258 | height: auto; 259 | margin: 0; 260 | overflow: visible; 261 | clip: auto; 262 | } 263 | [role="button"] { 264 | cursor: pointer; 265 | } 266 | .container { 267 | margin-right: auto; 268 | margin-left: auto; 269 | padding-left: 15px; 270 | padding-right: 15px; 271 | } 272 | @media (min-width: 768px) { 273 | .container { 274 | width: 750px; 275 | } 276 | } 277 | @media (min-width: 992px) { 278 | .container { 279 | width: 970px; 280 | } 281 | } 282 | @media (min-width: 1200px) { 283 | .container { 284 | width: 1170px; 285 | } 286 | } 287 | .container-fluid { 288 | margin-right: auto; 289 | margin-left: auto; 290 | padding-left: 15px; 291 | padding-right: 15px; 292 | } 293 | .row { 294 | margin-left: -15px; 295 | margin-right: -15px; 296 | } 297 | .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { 298 | position: relative; 299 | min-height: 1px; 300 | padding-left: 15px; 301 | padding-right: 15px; 302 | } 303 | .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { 304 | float: left; 305 | } 306 | .col-xs-12 { 307 | width: 100%; 308 | } 309 | .col-xs-11 { 310 | width: 91.66666667%; 311 | } 312 | .col-xs-10 { 313 | width: 83.33333333%; 314 | } 315 | .col-xs-9 { 316 | width: 75%; 317 | } 318 | .col-xs-8 { 319 | width: 66.66666667%; 320 | } 321 | .col-xs-7 { 322 | width: 58.33333333%; 323 | } 324 | .col-xs-6 { 325 | width: 50%; 326 | } 327 | .col-xs-5 { 328 | width: 41.66666667%; 329 | } 330 | .col-xs-4 { 331 | width: 33.33333333%; 332 | } 333 | .col-xs-3 { 334 | width: 25%; 335 | } 336 | .col-xs-2 { 337 | width: 16.66666667%; 338 | } 339 | .col-xs-1 { 340 | width: 8.33333333%; 341 | } 342 | .col-xs-pull-12 { 343 | right: 100%; 344 | } 345 | .col-xs-pull-11 { 346 | right: 91.66666667%; 347 | } 348 | .col-xs-pull-10 { 349 | right: 83.33333333%; 350 | } 351 | .col-xs-pull-9 { 352 | right: 75%; 353 | } 354 | .col-xs-pull-8 { 355 | right: 66.66666667%; 356 | } 357 | .col-xs-pull-7 { 358 | right: 58.33333333%; 359 | } 360 | .col-xs-pull-6 { 361 | right: 50%; 362 | } 363 | .col-xs-pull-5 { 364 | right: 41.66666667%; 365 | } 366 | .col-xs-pull-4 { 367 | right: 33.33333333%; 368 | } 369 | .col-xs-pull-3 { 370 | right: 25%; 371 | } 372 | .col-xs-pull-2 { 373 | right: 16.66666667%; 374 | } 375 | .col-xs-pull-1 { 376 | right: 8.33333333%; 377 | } 378 | .col-xs-pull-0 { 379 | right: auto; 380 | } 381 | .col-xs-push-12 { 382 | left: 100%; 383 | } 384 | .col-xs-push-11 { 385 | left: 91.66666667%; 386 | } 387 | .col-xs-push-10 { 388 | left: 83.33333333%; 389 | } 390 | .col-xs-push-9 { 391 | left: 75%; 392 | } 393 | .col-xs-push-8 { 394 | left: 66.66666667%; 395 | } 396 | .col-xs-push-7 { 397 | left: 58.33333333%; 398 | } 399 | .col-xs-push-6 { 400 | left: 50%; 401 | } 402 | .col-xs-push-5 { 403 | left: 41.66666667%; 404 | } 405 | .col-xs-push-4 { 406 | left: 33.33333333%; 407 | } 408 | .col-xs-push-3 { 409 | left: 25%; 410 | } 411 | .col-xs-push-2 { 412 | left: 16.66666667%; 413 | } 414 | .col-xs-push-1 { 415 | left: 8.33333333%; 416 | } 417 | .col-xs-push-0 { 418 | left: auto; 419 | } 420 | .col-xs-offset-12 { 421 | margin-left: 100%; 422 | } 423 | .col-xs-offset-11 { 424 | margin-left: 91.66666667%; 425 | } 426 | .col-xs-offset-10 { 427 | margin-left: 83.33333333%; 428 | } 429 | .col-xs-offset-9 { 430 | margin-left: 75%; 431 | } 432 | .col-xs-offset-8 { 433 | margin-left: 66.66666667%; 434 | } 435 | .col-xs-offset-7 { 436 | margin-left: 58.33333333%; 437 | } 438 | .col-xs-offset-6 { 439 | margin-left: 50%; 440 | } 441 | .col-xs-offset-5 { 442 | margin-left: 41.66666667%; 443 | } 444 | .col-xs-offset-4 { 445 | margin-left: 33.33333333%; 446 | } 447 | .col-xs-offset-3 { 448 | margin-left: 25%; 449 | } 450 | .col-xs-offset-2 { 451 | margin-left: 16.66666667%; 452 | } 453 | .col-xs-offset-1 { 454 | margin-left: 8.33333333%; 455 | } 456 | .col-xs-offset-0 { 457 | margin-left: 0%; 458 | } 459 | @media (min-width: 768px) { 460 | .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { 461 | float: left; 462 | } 463 | .col-sm-12 { 464 | width: 100%; 465 | } 466 | .col-sm-11 { 467 | width: 91.66666667%; 468 | } 469 | .col-sm-10 { 470 | width: 83.33333333%; 471 | } 472 | .col-sm-9 { 473 | width: 75%; 474 | } 475 | .col-sm-8 { 476 | width: 66.66666667%; 477 | } 478 | .col-sm-7 { 479 | width: 58.33333333%; 480 | } 481 | .col-sm-6 { 482 | width: 50%; 483 | } 484 | .col-sm-5 { 485 | width: 41.66666667%; 486 | } 487 | .col-sm-4 { 488 | width: 33.33333333%; 489 | } 490 | .col-sm-3 { 491 | width: 25%; 492 | } 493 | .col-sm-2 { 494 | width: 16.66666667%; 495 | } 496 | .col-sm-1 { 497 | width: 8.33333333%; 498 | } 499 | .col-sm-pull-12 { 500 | right: 100%; 501 | } 502 | .col-sm-pull-11 { 503 | right: 91.66666667%; 504 | } 505 | .col-sm-pull-10 { 506 | right: 83.33333333%; 507 | } 508 | .col-sm-pull-9 { 509 | right: 75%; 510 | } 511 | .col-sm-pull-8 { 512 | right: 66.66666667%; 513 | } 514 | .col-sm-pull-7 { 515 | right: 58.33333333%; 516 | } 517 | .col-sm-pull-6 { 518 | right: 50%; 519 | } 520 | .col-sm-pull-5 { 521 | right: 41.66666667%; 522 | } 523 | .col-sm-pull-4 { 524 | right: 33.33333333%; 525 | } 526 | .col-sm-pull-3 { 527 | right: 25%; 528 | } 529 | .col-sm-pull-2 { 530 | right: 16.66666667%; 531 | } 532 | .col-sm-pull-1 { 533 | right: 8.33333333%; 534 | } 535 | .col-sm-pull-0 { 536 | right: auto; 537 | } 538 | .col-sm-push-12 { 539 | left: 100%; 540 | } 541 | .col-sm-push-11 { 542 | left: 91.66666667%; 543 | } 544 | .col-sm-push-10 { 545 | left: 83.33333333%; 546 | } 547 | .col-sm-push-9 { 548 | left: 75%; 549 | } 550 | .col-sm-push-8 { 551 | left: 66.66666667%; 552 | } 553 | .col-sm-push-7 { 554 | left: 58.33333333%; 555 | } 556 | .col-sm-push-6 { 557 | left: 50%; 558 | } 559 | .col-sm-push-5 { 560 | left: 41.66666667%; 561 | } 562 | .col-sm-push-4 { 563 | left: 33.33333333%; 564 | } 565 | .col-sm-push-3 { 566 | left: 25%; 567 | } 568 | .col-sm-push-2 { 569 | left: 16.66666667%; 570 | } 571 | .col-sm-push-1 { 572 | left: 8.33333333%; 573 | } 574 | .col-sm-push-0 { 575 | left: auto; 576 | } 577 | .col-sm-offset-12 { 578 | margin-left: 100%; 579 | } 580 | .col-sm-offset-11 { 581 | margin-left: 91.66666667%; 582 | } 583 | .col-sm-offset-10 { 584 | margin-left: 83.33333333%; 585 | } 586 | .col-sm-offset-9 { 587 | margin-left: 75%; 588 | } 589 | .col-sm-offset-8 { 590 | margin-left: 66.66666667%; 591 | } 592 | .col-sm-offset-7 { 593 | margin-left: 58.33333333%; 594 | } 595 | .col-sm-offset-6 { 596 | margin-left: 50%; 597 | } 598 | .col-sm-offset-5 { 599 | margin-left: 41.66666667%; 600 | } 601 | .col-sm-offset-4 { 602 | margin-left: 33.33333333%; 603 | } 604 | .col-sm-offset-3 { 605 | margin-left: 25%; 606 | } 607 | .col-sm-offset-2 { 608 | margin-left: 16.66666667%; 609 | } 610 | .col-sm-offset-1 { 611 | margin-left: 8.33333333%; 612 | } 613 | .col-sm-offset-0 { 614 | margin-left: 0%; 615 | } 616 | } 617 | @media (min-width: 992px) { 618 | .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { 619 | float: left; 620 | } 621 | .col-md-12 { 622 | width: 100%; 623 | } 624 | .col-md-11 { 625 | width: 91.66666667%; 626 | } 627 | .col-md-10 { 628 | width: 83.33333333%; 629 | } 630 | .col-md-9 { 631 | width: 75%; 632 | } 633 | .col-md-8 { 634 | width: 66.66666667%; 635 | } 636 | .col-md-7 { 637 | width: 58.33333333%; 638 | } 639 | .col-md-6 { 640 | width: 50%; 641 | } 642 | .col-md-5 { 643 | width: 41.66666667%; 644 | } 645 | .col-md-4 { 646 | width: 33.33333333%; 647 | } 648 | .col-md-3 { 649 | width: 25%; 650 | } 651 | .col-md-2 { 652 | width: 16.66666667%; 653 | } 654 | .col-md-1 { 655 | width: 8.33333333%; 656 | } 657 | .col-md-pull-12 { 658 | right: 100%; 659 | } 660 | .col-md-pull-11 { 661 | right: 91.66666667%; 662 | } 663 | .col-md-pull-10 { 664 | right: 83.33333333%; 665 | } 666 | .col-md-pull-9 { 667 | right: 75%; 668 | } 669 | .col-md-pull-8 { 670 | right: 66.66666667%; 671 | } 672 | .col-md-pull-7 { 673 | right: 58.33333333%; 674 | } 675 | .col-md-pull-6 { 676 | right: 50%; 677 | } 678 | .col-md-pull-5 { 679 | right: 41.66666667%; 680 | } 681 | .col-md-pull-4 { 682 | right: 33.33333333%; 683 | } 684 | .col-md-pull-3 { 685 | right: 25%; 686 | } 687 | .col-md-pull-2 { 688 | right: 16.66666667%; 689 | } 690 | .col-md-pull-1 { 691 | right: 8.33333333%; 692 | } 693 | .col-md-pull-0 { 694 | right: auto; 695 | } 696 | .col-md-push-12 { 697 | left: 100%; 698 | } 699 | .col-md-push-11 { 700 | left: 91.66666667%; 701 | } 702 | .col-md-push-10 { 703 | left: 83.33333333%; 704 | } 705 | .col-md-push-9 { 706 | left: 75%; 707 | } 708 | .col-md-push-8 { 709 | left: 66.66666667%; 710 | } 711 | .col-md-push-7 { 712 | left: 58.33333333%; 713 | } 714 | .col-md-push-6 { 715 | left: 50%; 716 | } 717 | .col-md-push-5 { 718 | left: 41.66666667%; 719 | } 720 | .col-md-push-4 { 721 | left: 33.33333333%; 722 | } 723 | .col-md-push-3 { 724 | left: 25%; 725 | } 726 | .col-md-push-2 { 727 | left: 16.66666667%; 728 | } 729 | .col-md-push-1 { 730 | left: 8.33333333%; 731 | } 732 | .col-md-push-0 { 733 | left: auto; 734 | } 735 | .col-md-offset-12 { 736 | margin-left: 100%; 737 | } 738 | .col-md-offset-11 { 739 | margin-left: 91.66666667%; 740 | } 741 | .col-md-offset-10 { 742 | margin-left: 83.33333333%; 743 | } 744 | .col-md-offset-9 { 745 | margin-left: 75%; 746 | } 747 | .col-md-offset-8 { 748 | margin-left: 66.66666667%; 749 | } 750 | .col-md-offset-7 { 751 | margin-left: 58.33333333%; 752 | } 753 | .col-md-offset-6 { 754 | margin-left: 50%; 755 | } 756 | .col-md-offset-5 { 757 | margin-left: 41.66666667%; 758 | } 759 | .col-md-offset-4 { 760 | margin-left: 33.33333333%; 761 | } 762 | .col-md-offset-3 { 763 | margin-left: 25%; 764 | } 765 | .col-md-offset-2 { 766 | margin-left: 16.66666667%; 767 | } 768 | .col-md-offset-1 { 769 | margin-left: 8.33333333%; 770 | } 771 | .col-md-offset-0 { 772 | margin-left: 0%; 773 | } 774 | } 775 | @media (min-width: 1200px) { 776 | .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { 777 | float: left; 778 | } 779 | .col-lg-12 { 780 | width: 100%; 781 | } 782 | .col-lg-11 { 783 | width: 91.66666667%; 784 | } 785 | .col-lg-10 { 786 | width: 83.33333333%; 787 | } 788 | .col-lg-9 { 789 | width: 75%; 790 | } 791 | .col-lg-8 { 792 | width: 66.66666667%; 793 | } 794 | .col-lg-7 { 795 | width: 58.33333333%; 796 | } 797 | .col-lg-6 { 798 | width: 50%; 799 | } 800 | .col-lg-5 { 801 | width: 41.66666667%; 802 | } 803 | .col-lg-4 { 804 | width: 33.33333333%; 805 | } 806 | .col-lg-3 { 807 | width: 25%; 808 | } 809 | .col-lg-2 { 810 | width: 16.66666667%; 811 | } 812 | .col-lg-1 { 813 | width: 8.33333333%; 814 | } 815 | .col-lg-pull-12 { 816 | right: 100%; 817 | } 818 | .col-lg-pull-11 { 819 | right: 91.66666667%; 820 | } 821 | .col-lg-pull-10 { 822 | right: 83.33333333%; 823 | } 824 | .col-lg-pull-9 { 825 | right: 75%; 826 | } 827 | .col-lg-pull-8 { 828 | right: 66.66666667%; 829 | } 830 | .col-lg-pull-7 { 831 | right: 58.33333333%; 832 | } 833 | .col-lg-pull-6 { 834 | right: 50%; 835 | } 836 | .col-lg-pull-5 { 837 | right: 41.66666667%; 838 | } 839 | .col-lg-pull-4 { 840 | right: 33.33333333%; 841 | } 842 | .col-lg-pull-3 { 843 | right: 25%; 844 | } 845 | .col-lg-pull-2 { 846 | right: 16.66666667%; 847 | } 848 | .col-lg-pull-1 { 849 | right: 8.33333333%; 850 | } 851 | .col-lg-pull-0 { 852 | right: auto; 853 | } 854 | .col-lg-push-12 { 855 | left: 100%; 856 | } 857 | .col-lg-push-11 { 858 | left: 91.66666667%; 859 | } 860 | .col-lg-push-10 { 861 | left: 83.33333333%; 862 | } 863 | .col-lg-push-9 { 864 | left: 75%; 865 | } 866 | .col-lg-push-8 { 867 | left: 66.66666667%; 868 | } 869 | .col-lg-push-7 { 870 | left: 58.33333333%; 871 | } 872 | .col-lg-push-6 { 873 | left: 50%; 874 | } 875 | .col-lg-push-5 { 876 | left: 41.66666667%; 877 | } 878 | .col-lg-push-4 { 879 | left: 33.33333333%; 880 | } 881 | .col-lg-push-3 { 882 | left: 25%; 883 | } 884 | .col-lg-push-2 { 885 | left: 16.66666667%; 886 | } 887 | .col-lg-push-1 { 888 | left: 8.33333333%; 889 | } 890 | .col-lg-push-0 { 891 | left: auto; 892 | } 893 | .col-lg-offset-12 { 894 | margin-left: 100%; 895 | } 896 | .col-lg-offset-11 { 897 | margin-left: 91.66666667%; 898 | } 899 | .col-lg-offset-10 { 900 | margin-left: 83.33333333%; 901 | } 902 | .col-lg-offset-9 { 903 | margin-left: 75%; 904 | } 905 | .col-lg-offset-8 { 906 | margin-left: 66.66666667%; 907 | } 908 | .col-lg-offset-7 { 909 | margin-left: 58.33333333%; 910 | } 911 | .col-lg-offset-6 { 912 | margin-left: 50%; 913 | } 914 | .col-lg-offset-5 { 915 | margin-left: 41.66666667%; 916 | } 917 | .col-lg-offset-4 { 918 | margin-left: 33.33333333%; 919 | } 920 | .col-lg-offset-3 { 921 | margin-left: 25%; 922 | } 923 | .col-lg-offset-2 { 924 | margin-left: 16.66666667%; 925 | } 926 | .col-lg-offset-1 { 927 | margin-left: 8.33333333%; 928 | } 929 | .col-lg-offset-0 { 930 | margin-left: 0%; 931 | } 932 | } 933 | .clearfix:before, 934 | .clearfix:after, 935 | .container:before, 936 | .container:after, 937 | .container-fluid:before, 938 | .container-fluid:after, 939 | .row:before, 940 | .row:after { 941 | content: " "; 942 | display: table; 943 | } 944 | .clearfix:after, 945 | .container:after, 946 | .container-fluid:after, 947 | .row:after { 948 | clear: both; 949 | } 950 | .center-block { 951 | display: block; 952 | margin-left: auto; 953 | margin-right: auto; 954 | } 955 | .pull-right { 956 | float: right !important; 957 | } 958 | .pull-left { 959 | float: left !important; 960 | } 961 | .hide { 962 | display: none !important; 963 | } 964 | .show { 965 | display: block !important; 966 | } 967 | .invisible { 968 | visibility: hidden; 969 | } 970 | .text-hide { 971 | font: 0/0 a; 972 | color: transparent; 973 | text-shadow: none; 974 | background-color: transparent; 975 | border: 0; 976 | } 977 | .hidden { 978 | display: none !important; 979 | } 980 | .affix { 981 | position: fixed; 982 | } 983 | -------------------------------------------------------------------------------- /styles/constants.scss: -------------------------------------------------------------------------------- 1 | // Color scheme 2 | // https://coolors.co/247ba0-70c1b3-e0e2db-584b53-fcf6bd 3 | // $col_dark: #584B53; 4 | // $col_light: #E0E2DB; 5 | // $col_primary: #247BA0; 6 | // $col_secondary: #70C1B3; 7 | // $col_joker: #FCF6BD; 8 | 9 | // https://coolors.co/81f4e1-56cbf9-edf4ed-ff729f-363636 10 | $col_dark: #363636; 11 | $col_light: #EDF4ED; 12 | $col_primary: #56CBF9; 13 | $col_secondary: #81F4E1; 14 | $col_joker: #FF729F; 15 | $col_stealth: #666; 16 | 17 | 18 | // Fonts 19 | @import url('https://fonts.googleapis.com/css?family=Inconsolata:400,700|Work+Sans:300,400,500,600,700'); 20 | $font_primary: Work Sans, sans-serif; 21 | $font_mono: Inconsolata, monospace; 22 | -------------------------------------------------------------------------------- /styles/index/index.scss: -------------------------------------------------------------------------------- 1 | @import '../constants'; 2 | 3 | .landing { 4 | text-align: center; 5 | height: 100vh; 6 | width: 100vw; 7 | overflow: hidden; 8 | 9 | .title { 10 | background: $col_joker; 11 | padding: 1em 0; 12 | 13 | h1 { 14 | color: $col_dark; 15 | font-size: 4em; 16 | margin: 0; 17 | } 18 | h2 { 19 | color: $col_light; 20 | margin: 0; 21 | } 22 | } 23 | 24 | .moffsay { 25 | margin-top: 10vh; 26 | display: flex; 27 | align-items: center; 28 | justify-content: center; 29 | 30 | img { 31 | height: 60vh; 32 | } 33 | 34 | .talk-bubble { 35 | margin-left: -10vw; 36 | position: absolute; 37 | } 38 | } 39 | } 40 | 41 | @media only screen 42 | and (max-device-width: 600px) { 43 | .landing{ 44 | .moffsay { 45 | img { 46 | width: 80vw; 47 | height: auto; 48 | } 49 | .talk-bubble { 50 | margin-left: -45vw !important; 51 | } 52 | } 53 | } 54 | } 55 | 56 | .moffsay>a:hover { 57 | animation: random-bg .5s linear infinite;//, grow 1300ms ease infinite; 58 | 59 | .talk-bubble { 60 | animation: grow 1300ms ease infinite; 61 | } 62 | } 63 | 64 | @keyframes random-bg { 65 | from { 66 | filter: hue-rotate(0); 67 | } 68 | to { 69 | filter: hue-rotate(360deg); 70 | } 71 | } 72 | 73 | /* pulsating effect on button */ 74 | @keyframes grow { 75 | 0% { 76 | transform: scale(1); 77 | } 78 | 14% { 79 | transform: scale(1.3); 80 | } 81 | 28% { 82 | transform: scale(1); 83 | } 84 | 42% { 85 | transform: scale(1.3); 86 | } 87 | 70% { 88 | transform: scale(1); 89 | } 90 | } -------------------------------------------------------------------------------- /styles/index/speech.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Based on: 3 | Chat Bubbles in CSS 4 | A PEN BY Jason Founts 5 | https://codepen.io/Founts/pen/gmhcl 6 | */ 7 | 8 | @import '../constants'; 9 | 10 | // Settings 11 | $col_bubble: $col_joker; 12 | $col_border: $col_dark; 13 | $col_font: $col_light; 14 | $font_bubble: $font_mono; 15 | 16 | /* CSS talk bubble */ 17 | .talk-bubble { 18 | margin: 40px; 19 | display: inline-block; 20 | position: relative; 21 | width: 200px; 22 | height: auto; 23 | background-color: $col_bubble; 24 | } 25 | .border{ 26 | border: 8px solid $col_border; 27 | } 28 | .round{ 29 | border-radius: 30px; 30 | -webkit-border-radius: 30px; 31 | -moz-border-radius: 30px; 32 | 33 | } 34 | 35 | /* Right triangle placed top left flush. */ 36 | .tri-right.border.left-top:before { 37 | content: ' '; 38 | position: absolute; 39 | width: 0; 40 | height: 0; 41 | left: -40px; 42 | right: auto; 43 | top: -8px; 44 | bottom: auto; 45 | border: 32px solid; 46 | border-color: $col_border transparent transparent transparent; 47 | } 48 | .tri-right.left-top:after{ 49 | content: ' '; 50 | position: absolute; 51 | width: 0; 52 | height: 0; 53 | left: -20px; 54 | right: auto; 55 | top: 0px; 56 | bottom: auto; 57 | border: 22px solid; 58 | border-color: $col_bubble transparent transparent transparent; 59 | } 60 | 61 | /* Right triangle, left side slightly down */ 62 | .tri-right.border.left-in:before { 63 | content: ' '; 64 | position: absolute; 65 | width: 0; 66 | height: 0; 67 | left: -40px; 68 | right: auto; 69 | top: 30px; 70 | bottom: auto; 71 | border: 20px solid; 72 | border-color: $col_border $col_border transparent transparent; 73 | } 74 | .tri-right.left-in:after{ 75 | content: ' '; 76 | position: absolute; 77 | width: 0; 78 | height: 0; 79 | left: -20px; 80 | right: auto; 81 | top: 38px; 82 | bottom: auto; 83 | border: 12px solid; 84 | border-color: $col_bubble $col_bubble transparent transparent; 85 | } 86 | 87 | /*Right triangle, placed bottom left side slightly in*/ 88 | .tri-right.border.btm-left:before { 89 | content: ' '; 90 | position: absolute; 91 | width: 0; 92 | height: 0; 93 | left: -8px; 94 | right: auto; 95 | top: auto; 96 | bottom: -40px; 97 | border: 32px solid; 98 | border-color: transparent transparent transparent $col_border; 99 | } 100 | .tri-right.btm-left:after{ 101 | content: ' '; 102 | position: absolute; 103 | width: 0; 104 | height: 0; 105 | left: 0px; 106 | right: auto; 107 | top: auto; 108 | bottom: -20px; 109 | border: 22px solid; 110 | border-color: transparent transparent transparent $col_bubble; 111 | } 112 | 113 | /*Right triangle, placed bottom left side slightly in*/ 114 | .tri-right.border.btm-left-in:before { 115 | content: ' '; 116 | position: absolute; 117 | width: 0; 118 | height: 0; 119 | left: 30px; 120 | right: auto; 121 | top: auto; 122 | bottom: -40px; 123 | border: 20px solid; 124 | border-color: $col_border transparent transparent $col_border; 125 | } 126 | .tri-right.btm-left-in:after{ 127 | content: ' '; 128 | position: absolute; 129 | width: 0; 130 | height: 0; 131 | left: 38px; 132 | right: auto; 133 | top: auto; 134 | bottom: -20px; 135 | border: 12px solid; 136 | border-color: $col_bubble transparent transparent $col_bubble; 137 | } 138 | 139 | /*Right triangle, placed bottom right side slightly in*/ 140 | .tri-right.border.btm-right-in:before { 141 | content: ' '; 142 | position: absolute; 143 | width: 0; 144 | height: 0; 145 | left: auto; 146 | right: 30px; 147 | bottom: -40px; 148 | border: 20px solid; 149 | border-color: $col_border $col_border transparent transparent; 150 | } 151 | .tri-right.btm-right-in:after{ 152 | content: ' '; 153 | position: absolute; 154 | width: 0; 155 | height: 0; 156 | left: auto; 157 | right: 38px; 158 | bottom: -20px; 159 | border: 12px solid; 160 | border-color: $col_bubble $col_bubble transparent transparent; 161 | } 162 | /* 163 | left: -8px; 164 | right: auto; 165 | top: auto; 166 | bottom: -40px; 167 | border: 32px solid; 168 | border-color: transparent transparent transparent $col_border; 169 | left: 0px; 170 | right: auto; 171 | top: auto; 172 | bottom: -20px; 173 | border: 22px solid; 174 | border-color: transparent transparent transparent $col_bubble; 175 | 176 | /*Right triangle, placed bottom right side slightly in*/ 177 | .tri-right.border.btm-right:before { 178 | content: ' '; 179 | position: absolute; 180 | width: 0; 181 | height: 0; 182 | left: auto; 183 | right: -8px; 184 | bottom: -40px; 185 | border: 20px solid; 186 | border-color: $col_border $col_border transparent transparent; 187 | } 188 | .tri-right.btm-right:after{ 189 | content: ' '; 190 | position: absolute; 191 | width: 0; 192 | height: 0; 193 | left: auto; 194 | right: 0px; 195 | bottom: -20px; 196 | border: 12px solid; 197 | border-color: $col_bubble $col_bubble transparent transparent; 198 | } 199 | 200 | /* Right triangle, right side slightly down*/ 201 | .tri-right.border.right-in:before { 202 | content: ' '; 203 | position: absolute; 204 | width: 0; 205 | height: 0; 206 | left: auto; 207 | right: -40px; 208 | top: 30px; 209 | bottom: auto; 210 | border: 20px solid; 211 | border-color: $col_border transparent transparent $col_border; 212 | } 213 | .tri-right.right-in:after{ 214 | content: ' '; 215 | position: absolute; 216 | width: 0; 217 | height: 0; 218 | left: auto; 219 | right: -20px; 220 | top: 38px; 221 | bottom: auto; 222 | border: 12px solid; 223 | border-color: $col_bubble transparent transparent $col_bubble; 224 | } 225 | 226 | /* Right triangle placed top right flush. */ 227 | .tri-right.border.right-top:before { 228 | content: ' '; 229 | position: absolute; 230 | width: 0; 231 | height: 0; 232 | left: auto; 233 | right: -40px; 234 | top: -8px; 235 | bottom: auto; 236 | border: 32px solid; 237 | border-color: $col_border transparent transparent transparent; 238 | } 239 | .tri-right.right-top:after{ 240 | content: ' '; 241 | position: absolute; 242 | width: 0; 243 | height: 0; 244 | left: auto; 245 | right: -20px; 246 | top: 0px; 247 | bottom: auto; 248 | border: 20px solid; 249 | border-color: $col_bubble transparent transparent transparent; 250 | } 251 | 252 | /* talk bubble contents */ 253 | .talktext{ 254 | padding: 1em; 255 | text-align: left; 256 | line-height: 1.5em; 257 | color: $col_font !important; 258 | font-family: $font_bubble; 259 | } 260 | .talktext p{ 261 | /* remove webkit p margins */ 262 | -webkit-margin-before: 0em; 263 | -webkit-margin-after: 0em; 264 | } -------------------------------------------------------------------------------- /styles/master.scss: -------------------------------------------------------------------------------- 1 | @import 'bootstrap.css'; 2 | @import 'constants.scss'; 3 | 4 | html { 5 | font-family: $font_primary; 6 | } 7 | 8 | body { 9 | color: $col_light; 10 | background: $col_dark; 11 | margin: 0; 12 | } 13 | 14 | h1, h2, h3, h4, h5 { 15 | font-weight: normal; 16 | } 17 | 18 | p { 19 | font-size: 1.3em; 20 | font-weight: lighter; 21 | } 22 | 23 | a { 24 | text-decoration: none; 25 | color: $col_joker; 26 | font-weight: initial; 27 | } 28 | 29 | a:hover { 30 | background-color: $col_joker; 31 | color: $col_dark; 32 | } 33 | 34 | div.code { 35 | background: $col_light; 36 | color: $col_dark; 37 | padding: 1em; 38 | font-family: $font_mono; 39 | counter-reset: line; 40 | 41 | span { 42 | width: 100%; 43 | display: block; 44 | } 45 | 46 | span::before { 47 | counter-increment: line; 48 | content: counter(line); 49 | display: inline-block; 50 | border-right: 1px solid #ddd; 51 | padding: 0 .5em; 52 | margin-right: .5em; 53 | color: #888 54 | } 55 | } 56 | 57 | * { 58 | box-sizing: border-box; 59 | } 60 | -------------------------------------------------------------------------------- /styles/theme/footer.scss: -------------------------------------------------------------------------------- 1 | @import '../constants'; 2 | 3 | .footer { 4 | background: $col_primary; 5 | color: $col_dark; 6 | text-align: center !important; 7 | padding: 2em 0; 8 | margin-top: 3em; 9 | 10 | a { 11 | color: $col_dark; 12 | text-decoration: underline; 13 | } 14 | } -------------------------------------------------------------------------------- /styles/theme/header.scss: -------------------------------------------------------------------------------- 1 | @import '../constants'; 2 | 3 | .header { 4 | background: $col_primary; 5 | text-transform: uppercase; 6 | padding: 0.1em 0; 7 | width: 110vw; 8 | margin-left: -5vw; 9 | margin-bottom: 3em; 10 | transform: rotateZ(-3deg); 11 | overflow: hidden; 12 | 13 | h1 { 14 | text-align: center; 15 | font-size: 5em; 16 | margin: 0; 17 | } 18 | 19 | h2 { 20 | font-weight: lighter; 21 | margin: 0.3em 0; 22 | 23 | white-space: nowrap; 24 | overflow: hidden; 25 | 26 | a { 27 | font-weight: lighter; 28 | margin: 0 1em; 29 | padding: 0 0.2em; 30 | color: $col_dark; 31 | } 32 | 33 | a:hover, a.active { 34 | color: $col_light; 35 | background: $col_dark; 36 | } 37 | } 38 | 39 | h2::before, h2::after { 40 | content: ""; 41 | margin: 0.2em 0; 42 | position: relative; 43 | display: block; 44 | width: 100%; 45 | border-bottom: 1px solid $col_secondary; 46 | } 47 | } -------------------------------------------------------------------------------- /styles/theme/maintheme.scss: -------------------------------------------------------------------------------- 1 | @import '../constants'; 2 | 3 | .img-desc { 4 | text-align: center !important; 5 | margin: 0; 6 | color: $col_stealth; 7 | } 8 | 9 | .headerwrapper { 10 | overflow: hidden; 11 | } 12 | 13 | .justify-p { 14 | p { 15 | text-align: justify; 16 | } 17 | } 18 | 19 | .main-container { 20 | min-height: 55vh; 21 | padding: 1em 25vw; 22 | 23 | img { 24 | margin-left: auto; 25 | margin-right: auto; 26 | display: block; 27 | max-width: 100%; 28 | } 29 | } 30 | 31 | @media only screen 32 | and (max-device-width: 600px) { 33 | .main-container { 34 | padding: 1em 10px; 35 | } 36 | } 37 | 38 | /* width */ 39 | ::-webkit-scrollbar { 40 | width: 10px; 41 | } 42 | 43 | /* Track */ 44 | ::-webkit-scrollbar-track { 45 | background: $col_light; 46 | } 47 | 48 | /* Handle */ 49 | ::-webkit-scrollbar-thumb { 50 | background: $col_joker; 51 | } 52 | -------------------------------------------------------------------------------- /themes/MainThemify.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Header from './header' 3 | import Footer from './footer' 4 | import "../styles/master.scss" 5 | import '../styles/theme/maintheme.scss' 6 | 7 | export default function MainThemify(Content) { 8 | return class extends React.Component { 9 | render() { 10 | return
11 |
12 |
13 |
14 |
15 | 16 |
17 |
18 |
19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /themes/footer.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import '../styles/theme/footer.scss' 3 | 4 | export default class extends React.Component { 5 | render() { 6 | return
7 |

ALISTAIR MOFFAT FAN PAGE

8 |

Start contributing today on Github!

9 |

Created by Max Lee, maintained by his students with ♥

10 |
11 | } 12 | } -------------------------------------------------------------------------------- /themes/header.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import '../styles/theme/header.scss' 3 | 4 | const menuItems = [ 5 | { 6 | name: "Home", 7 | link: "/home" 8 | }, 9 | { 10 | name: "About", 11 | link: "/about" 12 | }, 13 | { 14 | name: "Who is Alistair Moffat?", 15 | link: "/amoffat" 16 | }, 17 | { 18 | name: "Contribute", 19 | link: "/contribute" 20 | }, 21 | ] 22 | 23 | export default class extends React.Component { 24 | constructor(props) { 25 | super(props); 26 | this.state = { 27 | menu: [], 28 | }; 29 | } 30 | 31 | componentDidMount() { 32 | var menu = []; 33 | 34 | for(var repeat = 0; repeat < 3; repeat++) { 35 | for(var i = 0; i < menuItems.length; i++) { 36 | var cls = ""; 37 | 38 | if(window.location.pathname.indexOf(menuItems[i].link) == 0) { 39 | cls = "active" 40 | } 41 | 42 | menu.push( 43 | 44 | {menuItems[i].name} 45 | ); 46 | } 47 | } 48 | 49 | this.setState({menu: menu}); 50 | } 51 | 52 | render() { 53 | return
54 |

Algorithms are Fun! Programming is fun! Algorithms are Fun! Programming is fun! Algorithms are Fun! Programming is fun! Algorithms are Fun! Programming is fun! Algorithms are Fun! Programming is fun! Algorithms are Fun! Programming is fun!

55 |

What is that is Fun?

56 |

{this.state.menu}

57 |
58 | } 59 | } --------------------------------------------------------------------------------