Skip to content

Commit

Permalink
portfolio
Browse files Browse the repository at this point in the history
Signed-off-by: jomefavourite <jfjomefavourite@gmail.com>
  • Loading branch information
jomefavourite committed Feb 18, 2021
1 parent 8cdc694 commit 390c05a
Show file tree
Hide file tree
Showing 32 changed files with 1,756 additions and 95 deletions.
3 changes: 3 additions & 0 deletions portfolio/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5502
}
92 changes: 92 additions & 0 deletions portfolio/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<!-- Please update value in the {} -->

<h1 align="center">{Your project name}</h1>

<div align="center">
Solution for a challenge from <a href="http://devchallenges.io" target="_blank">Devchallenges.io</a>.
</div>

<div align="center">
<h3>
<a href="https://{your-demo-link.your-domain}">
Demo
</a>
<span> | </span>
<a href="https://{your-url-to-the-solution}">
Solution
</a>
<span> | </span>
<a href="https://devchallenges.io/challenges/5ZnOYsSXM24JWnCsNFlt">
Challenge
</a>
</h3>
</div>

<!-- TABLE OF CONTENTS -->

## Table of Contents

- [Overview](#overview)
- [Built With](#built-with)
- [Features](#features)
- [How to use](#how-to-use)
- [Contact](#contact)
- [Acknowledgements](#acknowledgements)

<!-- OVERVIEW -->

## Overview

![screenshot](https://user-images.githubusercontent.com/16707738/92399059-5716eb00-f132-11ea-8b14-bcacdc8ec97b.png)

Introduce your projects by taking a screenshot or a gif. Try to tell visitors a story about your project by answering:

- Where can I see your demo?
- What was your experience?
- What have you learned/improved?
- Your wisdom? :)

### Built With

<!-- This section should list any major frameworks that you built your project using. Here are a few examples.-->

- [React](https://reactjs.org/)
- [Vue.js](https://vuejs.org/)
- [Tailwind](https://tailwindcss.com/)

## Features

<!-- List the features of your application or follow the template. Don't share the figma file here :) -->

This application/site was created as a submission to a [DevChallenges](https://devchallenges.io/challenges) challenge. The [challenge](https://devchallenges.io/challenges/5ZnOYsSXM24JWnCsNFlt) was to build an application to complete the given user stories.

## How To Use

<!-- Example: -->

To clone and run this application, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:

```bash
# Clone this repository
$ git clone https://github.com/your-user-name/your-project-name

# Install dependencies
$ npm install

# Run the app
$ npm start
```

## Acknowledgements

<!-- This section should list any articles or add-ons/plugins that helps you to complete the project. This is optional but it will help you in the future. For example: -->

- [Steps to replicate a design with only HTML and CSS](https://devchallenges-blogs.web.app/how-to-replicate-design/)
- [Node.js](https://nodejs.org/)
- [Marked - a markdown parser](https://github.com/chjj/marked)

## Contact

- Website [your-website.com](https://{your-web-site-link})
- GitHub [@your-username](https://{github.com/your-usermame})
- Twitter [@your-twitter](https://{twitter.com/your-username})
30 changes: 30 additions & 0 deletions portfolio/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
function call(name) {
return document.querySelector(name);
}

const night = call("#dark");
const light = call("#light");

night.addEventListener("click", () => {
night.style.display = "none";
light.style.display = "block";
document.body.classList.add("dark-theme");
localStorage.setItem("theme", "dark-theme");
});

light.addEventListener("click", () => {
night.style.display = "block";
light.style.display = "none";
document.body.classList.remove("dark-theme");
localStorage.removeItem("theme");
});

function checkTheme() {
const localStorageTheme = localStorage.getItem("theme");

if (localStorageTheme !== null && localStorageTheme === "dark-theme") {
document.body.classList.add("dark-theme");
}
}

checkTheme();
Loading

0 comments on commit 390c05a

Please sign in to comment.