Skip to content
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

Styling #4

Merged
merged 61 commits into from
Apr 13, 2022
Merged

Styling #4

merged 61 commits into from
Apr 13, 2022

Conversation

NoYavy
Copy link

@NoYavy NoYavy commented Apr 10, 2022

Some style changes

Noyavy and others added 30 commits October 26, 2021 09:27
- changed data table back from CSS grid to table
- adjusted tags and structure
  - the name of the person now is a  heading (caption) not a table row

- added styling
  - added Javascript to only show a  preview of the content if it is too large
- linked people.css to people.php (in head)
- added comment regarding `themecolor`
- themecolor now is determined automatically, though it can be manually overridden
- spacing was automatically adjusted
__DIR__ returns the directory of the file
reformatting, relinking, added new rows
Non-Binary now supported
@NoYavy NoYavy added the enhancement New feature or request label Apr 10, 2022
NoYavy added 2 commits April 10, 2022 22:46
some minor fixes
@NoYavy NoYavy requested a review from eintyp April 10, 2022 21:27
eintyp
eintyp previously approved these changes Apr 10, 2022
config.php Outdated
'password' => "password",
'DBname' => "worldDB",
);
?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
?>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

config.php Outdated Show resolved Hide resolved
die ( "Connection failed: " . $conn->connect_error );
}
return $conn;
?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
?>

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

physics.php Show resolved Hide resolved
<?php
$config = require ($_SERVER['DOCUMENT_ROOT'] . "../config.php");
// Create connection
$conn = new mysqli ( $config ['servername'], $config ['username'], $config ['password'], $config ['DBname'] );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider wrapping the whole thing in a class and making the connection static

people.php Outdated Show resolved Hide resolved
people.php Outdated Show resolved Hide resolved
people.php Outdated Show resolved Hide resolved
people.php Outdated Show resolved Hide resolved
people.php Outdated Show resolved Hide resolved
Co-authored-by: Ein Typ <34921967+eintyp@users.noreply.github.com>
people.php Outdated
<?php
// Main color of color sheme (appearance image) and version with alpha = 0
if (file_exists($imgpath)) {
include_once (__DIR__ . "/scripts/themecolor.php");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
include_once (__DIR__ . "/scripts/themecolor.php");
require_once (__DIR__ . "/scripts/themecolor.php");

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the script is not critical for operation

NoYavy and others added 5 commits April 11, 2022 00:49
Co-Authored-By: Ein Typ <34921967+eintyp@users.noreply.github.com>
better than if else chain

Co-authored-by: Ein Typ <34921967+eintyp@users.noreply.github.com>
Co-Authored-By: Ein Typ <34921967+eintyp@users.noreply.github.com>
 to match php convention
Co-Authored-By: Ein Typ <34921967+eintyp@users.noreply.github.com>
Co-authored-by: Ein Typ <34921967+eintyp@users.noreply.github.com>
This was referenced Apr 12, 2022
Co-authored-by: Ein Typ <34921967+eintyp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants