initial commit

This commit is contained in:
Frederik Palmø 2022-03-19 15:06:16 +01:00
commit 7833117ba8
6 changed files with 425 additions and 0 deletions

11
LICENSE.md Normal file
View File

@ -0,0 +1,11 @@
Copyright 2022 vodofrede
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

85
src/index.html Normal file
View File

@ -0,0 +1,85 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="language" content="english">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style/main.css">
<title></title>
<meta name="description" content="">
</head>
<body>
<nav>
<h1><a href="/index.html">Elden Ring Build Planner</a></h1>
<ul>
<li><a href="/planner.html">Build Planner</a></li>
<li><a href="/optimizer.html">Class Optimizer</a></li>
</ul>
</nav>
<header>
<h1>Create, view and optimize builds for Elden Ring.</h1>
</header>
<main>
<div class="cards">
<article class="card">
<a href="/planner.html">
<h3>Build Planner</h3>
<br>
<p>Create a new build.</p>
</a>
</article>
<article class="card">
<a href="/optimizer.html">
<h3>Class Optimizer</h3>
<br>
<p>Find the optimal starting class for your build.</p>
</a>
</article>
<article class="card">
<a href="/attack.html">
<h3>Attack Rating Calculator</h3>
<br>
<p>Calculate attack rating for a weapon.</p>
</a>
</article>
<article class="card">
<a href="/censor.html">
<h3>Censor Checker</h3>
<br>
<p>Detect censored names.</p>
</a>
</article>
<article class="card">
<a href="/armor.html">
<h3>Armor Optimizer</h3>
<br>
<p>Maximize defensive stats.</p>
</a>
</article>
<article class="card">
<a href="/finder.html">
<h3>Weapon Finder</h3>
<br>
<p>Get suggestions for usable weapons.</p>
</a>
</article>
</div>
</main>
<footer>
<h5>Erdtree Planner (available under BSD-3-Clause license)</h5>
</footer>
</body>
</html>

95
src/optimizer.html Normal file
View File

@ -0,0 +1,95 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="language" content="english">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style/main.css">
<title></title>
<meta name="description" content="">
</head>
<body>
<nav>
<h1><a href="/index.html">Elden Ring Build Planner</a></h1>
<ul>
<li><a href="/planner.html">Build Planner</a></li>
<li><a href="/optimizer.html">Class Optimizer</a></li>
</ul>
</nav>
<header>
<h1>Class Optimizer</h1>
</header>
<main>
<div class="app">
<script src="script/"></script>
<!-- input fields -->
<ul>
<!-- <li>
<pre>Base</pre>
<pre>Total</pre>
</li> -->
<li>
<label><b>Level</b></label>
<input type="number" disabled>
<input type="number" name="total-level" disabled>
</li>
<li>
<label>Vigor</label>
<input type="number" disabled>
<input type="number" name="vigor" min=0 max=99>
</li>
<li>
<label>Mind</label>
<input type="number" disabled>
</li>
<li>
<label>Endurance</label>
<input type="number" disabled>
</li>
<li>
<label>Strength</label>
<input type="number" disabled>
</li>
<li>
<label>Dexterity</label>
<input type="number" disabled>
</li>
<li>
<label>Intelligence</label>
<input type="number" disabled>
</li>
<li>
<label>Faith</label>
<input type="number" disabled>
</li>
<li>
<label>Arcane</label>
<input type="number" disabled>
</li>
</ul>
<ul>
<li></li>
<li></li>
<li><input type="number" name="mind" min=0 max=99></li>
<li><input type="number" name="endurance" min=0 max=99></li>
<li><input type="number" name="strength" min=0 max=99></li>
<li><input type="number" name="dexterity" min=0 max=99></li>
<li><input type="number" name="intelligence" min=0 max=99></li>
<li><input type="number" name="faith" min=0 max=99></li>
<li><input type="number" name="arcane" min=0 max=99></li>
</ul>
</div>
</main>
<footer>
</footer>
</body>
</html>

36
src/planner.html Normal file
View File

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="language" content="english">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style/main.css">
<title></title>
<meta name="description" content="">
</head>
<body>
<nav>
<h1><a href="/index.html">Elden Ring Build Planner</a></h1>
<ul>
<li><a href="/planner.html">Build Planner</a></li>
<li><a href="/optimizer.html">Class Optimizer</a></li>
</ul>
</nav>
<header>
</header>
<main>
</main>
<footer>
</footer>
</body>
</html>

3
src/script/optimizer.js Normal file
View File

@ -0,0 +1,3 @@
"use strict";

195
src/style/main.css Normal file
View File

@ -0,0 +1,195 @@
:root {
--offwhite: #f8f8ff;
}
/* fonts */
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (max-width: 900px) {
html {
font-size: 0.8rem;
}
}
/* fix sizing and remove margins and padding */
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
body > * {
padding: 0 2%;
}
@media (min-width: 900px) {
body > * {
padding: 0 10%;
}
}
/* scaffolding */
body {
display: flex;
flex-direction: column;
height: 100vh;
}
main {
display: flex;
flex-direction: column;
}
footer {
margin-top: auto;
outline: 1px solid grey;
background-color: #f8f8ff;
}
/* nav */
nav {
/* position */
display: flex;
justify-content: space-between;
align-items: center;
/* look */
background-color: #f8f8ff;
outline: 1px solid grey;
}
nav ul {
display: flex;
margin: 0px;
padding: 0px;
}
nav li {
display: flex;
align-items: center;
margin: 0px;
}
nav a {
padding: 0px 10px 0px 0px;
}
/* headers & paragraphs */
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 1rem;
margin-bottom: 1.2rem;
overflow-wrap: break-word;
word-wrap: break-word;
line-height: 1.1;
font-weight: bold;
}
p {
margin-top: 0rem;
margin-bottom: 2rem;
}
/* links */
a {
text-decoration: none;
color: #1d7484;
}
a:hover {
color: #144f5a;
}
a:visited {
color: #982c61;
border-bottom: 2px solid #4a4a4a;
}
/* lists & tables */
ul {
padding-left: 1.4em;
margin-top: 0px;
margin-bottom: 2.5rem;
}
li {
margin-bottom: 0.4em;
}
/* buttons & input */
/* cards */
.cards {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
gap: 10px;
}
.card {
/* flex-grow: 0.45; */
/* flex-basis: 0px; */
text-align: center;
flex-grow: 1;
min-width: 200px;
border: 1px solid grey;
border-radius: 5px;
/* look */
background-color: #f8f8ff;
}
.card * {
display: inline-block;
text-align: center;
}
/* apps */
.app {
display: flex;
flex-direction: row;
justify-content: stretch;
padding: 15px;
border: 1px solid grey;
border-radius: 5px;
background-color: #f8f8ff;
}
.app ul {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.app ul li * {
width: 200px;
}
.app li {
height: 20px;
list-style: none;
}
.app ul input {
width: 40px;
}