Skip to content

Website #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
id: about
title: About this project
---

## TODO
5 changes: 4 additions & 1 deletion questions/coding-questions.md → docs/coding.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Coding Questions:
---
id: coding
title: Coding Questions
---

*Question: What is the value of `foo`?*
```javascript
Expand Down
5 changes: 4 additions & 1 deletion questions/css-questions.md → docs/css.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# CSS Questions:
---
id: css
title: CSS Questions
---

* What is CSS selector specificity and how does it work?
* What's the difference between "resetting" and "normalizing" CSS? Which would you choose, and why?
Expand Down
5 changes: 4 additions & 1 deletion questions/fun-questions.md → docs/fun.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Fun Questions:
---
id: fun
title: Fun Questions
---

* What's a cool project that you've recently worked on?
* What are some things you like about the developer tools you use?
Expand Down
5 changes: 4 additions & 1 deletion questions/general-questions.md → docs/general.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# General Questions:
---
id: general
title: General Questions
---

* What did you learn yesterday/this week?
* What excites or interests you about coding?
Expand Down
29 changes: 29 additions & 0 deletions docs/gettingstarted.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
id: gettingstarted
title: Front-end Developer Interview Questions
sidebar_label: Getting Started
---

Check the [documentation](https://docusaurus.io) for how to use Docusaurus.

## Lorem

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus elementum massa eget nulla aliquet sagittis. Proin odio tortor, vulputate ut odio in, ultrices ultricies augue. Cras ornare ultrices lorem malesuada iaculis. Etiam sit amet libero tempor, pulvinar mauris sed, sollicitudin sapien.

## Mauris In Code

```
Mauris vestibulum ullamcorper nibh, ut semper purus pulvinar ut. Donec volutpat orci sit amet mauris malesuada, non pulvinar augue aliquam. Vestibulum ultricies at urna ut suscipit. Morbi iaculis, erat at imperdiet semper, ipsum nulla sodales erat, eget tincidunt justo dui quis justo. Pellentesque dictum bibendum diam at aliquet. Sed pulvinar, dolor quis finibus ornare, eros odio facilisis erat, eu rhoncus nunc dui sed ex. Nunc gravida dui massa, sed ornare arcu tincidunt sit amet. Maecenas efficitur sapien neque, a laoreet libero feugiat ut.
```

## Nulla

Nulla facilisi. Maecenas sodales nec purus eget posuere. Sed sapien quam, pretium a risus in, porttitor dapibus erat. Sed sit amet fringilla ipsum, eget iaculis augue. Integer sollicitudin tortor quis ultricies aliquam. Suspendisse fringilla nunc in tellus cursus, at placerat tellus scelerisque. Sed tempus elit a sollicitudin rhoncus. Nulla facilisi. Morbi nec dolor dolor. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras et aliquet lectus. Pellentesque sit amet eros nisi. Quisque ac sapien in sapien congue accumsan. Nullam in posuere ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin lacinia leo a nibh fringilla pharetra.

## Orci

Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin venenatis lectus dui, vel ultrices ante bibendum hendrerit. Aenean egestas feugiat dui id hendrerit. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur in tellus laoreet, eleifend nunc id, viverra leo. Proin vulputate non dolor vel vulputate. Curabitur pretium lobortis felis, sit amet finibus lorem suscipit ut. Sed non mollis risus. Duis sagittis, mi in euismod tincidunt, nunc mauris vestibulum urna, at euismod est elit quis erat. Phasellus accumsan vitae neque eu placerat. In elementum arcu nec tellus imperdiet, eget maximus nulla sodales. Curabitur eu sapien eget nisl sodales fermentum.

## Phasellus

Phasellus pulvinar ex id commodo imperdiet. Praesent odio nibh, sollicitudin sit amet faucibus id, placerat at metus. Donec vitae eros vitae tortor hendrerit finibus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque vitae purus dolor. Duis suscipit ac nulla et finibus. Phasellus ac sem sed dui dictum gravida. Phasellus eleifend vestibulum facilisis. Integer pharetra nec enim vitae mattis. Duis auctor, lectus quis condimentum bibendum, nunc dolor aliquam massa, id bibendum orci velit quis magna. Ut volutpat nulla nunc, sed interdum magna condimentum non. Sed urna metus, scelerisque vitae consectetur a, feugiat quis magna. Donec dignissim ornare nisl, eget tempor risus malesuada quis.
5 changes: 4 additions & 1 deletion questions/html-questions.md → docs/html.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# HTML Questions:
---
id: html
title: HTML Questions
---

* What does a `doctype` do?
* How do you serve a page with content in multiple languages?
Expand Down
5 changes: 4 additions & 1 deletion questions/javascript-questions.md → docs/javascript.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# JS Questions:
---
id: javascript
title: JavaScript Questions
---

* Explain event delegation
* Explain how `this` works in JavaScript
Expand Down
5 changes: 4 additions & 1 deletion questions/network-questions.md → docs/network.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Network Questions:
---
id: network
title: Network Questions
---

* Traditionally, why has it been better to serve site assets from multiple domains?
* Do your best to describe the process from the time you type in a website's URL to it finishing loading on your screen.
Expand Down
5 changes: 4 additions & 1 deletion questions/performance-questions.md → docs/performance.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Performance Questions:
---
id: performance
title: Performance Questions
---

* What tools would you use to find a performance bug in your code?
* What are some ways you may improve your website's scrolling performance?
Expand Down
5 changes: 4 additions & 1 deletion questions/testing-questions.md → docs/testing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Testing Questions:
---
id: testing
title: Testing Questions
---

* What are some advantages/disadvantages to testing your code?
* What tools would you use to test your code's functionality?
Expand Down
11 changes: 11 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
.DS_Store
lib/core/metadata.js
lib/core/MetadataBlog.js
website/translated_docs
website/build/
website/yarn.lock
website/node_modules

website/i18n/*
!website/i18n/en.json
124 changes: 124 additions & 0 deletions website/core/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const React = require('react');

class Footer extends React.Component {
docUrl(doc, language) {
const baseUrl = this.props.config.baseUrl;
return baseUrl + 'docs/' + (language ? language + '/' : '') + doc;
}

pageUrl(doc, language) {
const baseUrl = this.props.config.baseUrl;
return baseUrl + (language ? language + '/' : '') + doc;
}

render() {
const currentYear = new Date().getFullYear();
return (
<footer className="nav-footer" id="footer">
<section className="sitemap">
<a href={this.props.config.baseUrl} className="nav-home">
{this.props.config.footerIcon && (
<img
src={this.props.config.baseUrl + this.props.config.footerIcon}
alt={this.props.config.title}
width="66"
height="58"
/>
)}
</a>
<div>
<h5>Web Platform Questions</h5>
<a href={this.docUrl('gettingstarted.html', this.props.language)}>
Getting Started
</a>
<a href={this.docUrl('html.html', this.props.language)}>
HTML Questions
</a>
<a href={this.docUrl('css.html', this.props.language)}>
CSS Questions
</a>
<a href={this.docUrl('javascript.html', this.props.language)}>
JavaScript Questions
</a>
<a href={this.docUrl('network.html', this.props.language)}>
Network Questions
</a>
<a href={this.docUrl('performance.html', this.props.language)}>
Performance Questions
</a>
</div>
<div>
<h5>Other Questions</h5>
<a href={this.docUrl('coding.html', this.props.language)}>
Coding Questions
</a>
<a href={this.docUrl('testing.html', this.props.language)}>
Testing Questions
</a>
<a href={this.docUrl('general.html', this.props.language)}>
General Questions
</a>
<a href={this.docUrl('fun.html', this.props.language)}>
Fun Questions
</a>
</div>
<div>
<h5>Community</h5>
<a
href="https://github.com/h5bp/Front-end-Developer-Interview-Questions/blob/master/.github/CONTRIBUTING.md"
target="_blank">
Contribute
</a>
<a
href="https://github.com/h5bp/Front-end-Developer-Interview-Questions/blob/master/CONTRIBUTORS.md"
target="_blank">
Hall of Fame
</a>
<a href="https://twitter.com/h5bp" target="_blank">
Twitter
</a>
<a
href="https://github.com/h5bp/Front-end-Developer-Interview-Questions/"
target="_blank">
GitHub
</a>
<a
className="github-button"
href={this.props.config.repoUrl}
data-icon="octicon-star"
data-count-href="/facebook/docusaurus/stargazers"
data-show-count={true}
data-count-aria-label="# stargazers on GitHub"
aria-label="Star this project on GitHub">
Star
</a>
</div>
</section>

<a
href="https://code.facebook.com/projects/"
target="_blank"
className="fbOpenSource">
<img
src={this.props.config.baseUrl + 'img/oss_logo.png'}
alt="Facebook Open Source"
width="170"
height="45"
/>
</a>
<section className="copyright">
All content available in this site is licensed under the <a href="https://github.com/h5bp/Front-end-Developer-Interview-Questions/blob/master/LICENSE.md" target="_blank">MIT license</a>.
</section>
</footer>
);
}
}

module.exports = Footer;
34 changes: 34 additions & 0 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"_comment": "This file is auto-generated by write-translations.js",
"localized-strings": {
"next": "Next",
"previous": "Previous",
"tagline": "A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.",
"about": "About this project",
"coding": "Coding Questions",
"css": "CSS Questions",
"fun": "Fun Questions",
"general": "General Questions",
"gettingstarted": "Front-end Developer Interview Questions",
"Getting Started": "Getting Started",
"html": "HTML Questions",
"javascript": "JavaScript Questions",
"network": "Network Questions",
"performance": "Performance Questions",
"testing": "Testing Questions",
"Questions": "Questions",
"Contribute": "Contribute",
"Hall of Fame": "Hall of Fame",
"About": "About",
"Check on GitHub": "Check on GitHub",
"Web Technologies Questions": "Web Technologies Questions",
"Web-Related Questions": "Web-Related Questions",
"Coding Questions": "Coding Questions",
"General Questions": "General Questions"
},
"pages-strings": {
"Help Translate|recruit community translators for your project": "Help Translate",
"Edit this Doc|recruitment message asking to edit the doc source": "Edit",
"Translate this Doc|recruitment message asking to translate the docs": "Translate"
}
}
13 changes: 13 additions & 0 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"scripts": {
"start": "docusaurus-start",
"build": "docusaurus-build",
"publish": "docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-version",
"rename-version": "docusaurus-rename-version"
},
"devDependencies": {
"docusaurus": "^1.0.5"
}
}
50 changes: 50 additions & 0 deletions website/pages/en/help.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const React = require('react');

const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;

const siteConfig = require(process.cwd() + '/siteConfig.js');

class Help extends React.Component {
render() {
const supportLinks = [
{
content:
'Learn more using the [documentation on this site.](#)',
title: 'Browse Docs',
},
{
content: 'Ask questions about the documentation and project',
title: 'Join the community',
},
{
content: "Find out what's new with this project",
title: 'Stay up to date',
},
];

return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer documentContainer postContainer">
<div className="post">
<header className="postHeader">
<h2>Need help?</h2>
</header>
<p>This project is maintained by a dedicated group of people.</p>
<GridBlock contents={supportLinks} layout="threeColumn" />
</div>
</Container>
</div>
);
}
}

module.exports = Help;
Loading