Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoNilsson committed Sep 9, 2019
0 parents commit 39b8c2d
Show file tree
Hide file tree
Showing 49 changed files with 5,415 additions and 0 deletions.
117 changes: 117 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
###Linux###

*~

# KDE directory preferences
.directory


###OSX###

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


###Windows###

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


###Node###

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
Expand Down
Binary file added build/images/articles/buildings.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/doctors.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/food.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/plane.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/solar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/space.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/articles/weather.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/images/home/business.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build/images/icon/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Set the viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<!-- Set character encoding -->
<meta charset="utf-8">

<!-- Set title -->
<title>News</title>

<!-- Request styles -->
<link rel="stylesheet" href="/style/main.css" />

</head>

<body>
<header>
<ul class="navbar">
<li><a href="/index.html">Home</a></li>
<li><a href="#">World</a></li>
<li><a href="#">Tech</a></li>
<li><a href="#">Contact</a></li>
<li class="profile-icon"><img src="/images/icon/icon.svg" alt="profile icon" /></li>
</ul>
</header>

<article>
<h1>News</h1>
<section>
<div class="img-container left column">
<img src="images/home/business.jpg" alt="A person reading the business section of a newspaper">
</div>
<div class="right column">
<h2 class="headline">Headline</h2>
<p class="content">
I love cheese, especially manchego swiss. ☺ Fromage queso jarlsberg cheesy
feet emmental cottage cheese camembert de normandie bocconcini. Cottage cheese
everyone loves cauliflower cheese rubber cheese squirty cheese halloumi cow
fondue. Bocconcini cheese and biscuits everyone loves fondue red leicester
st. agur blue cheese rubber cheese ricotta. Cheesy grin mozzarella.
</p>
</div>
</section>
<section>
<div class="left column">
<h4 class="list-title">Trending Articles</h4>
<ul class="vertical-list">
<li class="list-item"><a href="pages/article1.html" class="post-link">Article 1</a></li>
<li class="list-item"><a href="pages/article2.html" class="post-link">Article 2</a></li>
<li class="list-item"><a href="pages/article3.html" class="post-link">Article 3</a></li>
<li class="list-item"><a href="pages/article4.html" class="post-link">Article 4</a></li>
<li class="list-item"><a href="pages/article-missing.html" class="post-link">Non-existent article</a></li>
</ul>
</div>
<div class="right column">
<h4 class="list-title">Archived Posts</h4>
<ul class="vertical-list">
<li class="list-item"><a href="pages/post1.html" class="post-link">Archived Post 1</a></li>
<li class="list-item"><a href="pages/post2.html" class="post-link">Archived Post 2</a></li>
<li class="list-item"><a href="pages/post3.html" class="post-link">Archived Post 3</a></li>
<li class="list-item"><a href="pages/post-missing.html" class="post-link">Non-existent Post 4</a></li>
</ul>
</div>
</section>
</article>

<footer>
<a href="#" class="footer-link">Twitter</a>
<a href="#" class="footer-link">Facebook</a>
<a href="#" class="footer-link">Google+</a>
<a href="#" class="footer-link">Digg</a>
</footer>

<script src="/js/animation.js"></script>

<script>
if ('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/sw.js')
.then(registration => {
console.log(`Service Worker registered! Scope: ${registration.scope}`);
})
.catch(err => {
console.log(`Service Worker registration failed: ${err}`);
});
  });
}
</script>

</body>
</html>
18 changes: 18 additions & 0 deletions build/js/animation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var el = document.body

function fadeIn (el) {
el.style.opacity = 0

var tick = function () {
el.style.opacity = +el.style.opacity + 0.01

if (+el.style.opacity < 1) {
(window.requestAnimationFrame && requestAnimationFrame(tick)) ||
setTimeout(tick, 8)
}
}

tick()
}

fadeIn(el)
38 changes: 38 additions & 0 deletions build/pages/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Set the viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<!-- Set character encoding -->
<meta charset="utf-8">

<!-- Set title -->
<title>404 Page</title>

<!-- Request styles -->
<link rel="stylesheet" href="/style/main.css" />
</head>
<body>
<h1>404 page</h1>
<p class="padded">Woops! Can't find the page you are requesting.</p>
<br><br>
<a href="../index.html" class="back-link">Home</a>
</body>
</html>
76 changes: 76 additions & 0 deletions build/pages/article1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>

<!-- Set the viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<!-- Set character encoding -->
<meta charset="utf-8">

<!-- Set title -->
<title>Article1</title>

<!-- Request styles -->
<link rel="stylesheet" href="/style/main.css" />

</head>

<body>

<header>
<ul class="navbar">
<li><a href="/index.html">Home</a></li>
<li class="profile-icon"><img src="/images/icon/icon.svg" alt="profile icon" /></li>
</ul>
</header>

<article id="post">

<section>

<div class="img-container left column">
<img src="/images/articles/buildings.jpg" alt="Looking up at skyscrapers">
</div>

<div class="right column">
<h2 class="headline">Article 1</h2>
<p class="content">
I love cheese, especially manchego swiss. ☺ Fromage queso jarlsberg cheesy
feet emmental cottage cheese camembert de normandie bocconcini. Cottage cheese
everyone loves cauliflower cheese rubber cheese squirty cheese halloumi cow
fondue. Bocconcini cheese and biscuits everyone loves fondue red leicester
st. agur blue cheese rubber cheese ricotta. Cheesy grin mozzarella.
</p>
</div>

</section>

</article>

<footer>
<a href="#" class="footer-link">Twitter</a>
<a href="#" class="footer-link">Facebook</a>
<a href="#" class="footer-link">Google+</a>
<a href="#" class="footer-link">Digg</a>
</footer>

<script src="/js/animation.js"></script>

</body>
</html>
Loading

0 comments on commit 39b8c2d

Please sign in to comment.