Skip to content

Commit

Permalink
Section Text Alignment (#18)
Browse files Browse the repository at this point in the history
* Add section text alignment options
* Improve contributing guideline for Bug Report
  • Loading branch information
excalith authored Mar 29, 2023
1 parent cde705a commit 3205090
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# For more information about the configurations used
# in this file, please see GitHub's documentation.
# https://github.com/blog/2392-introducing-code-owners

* @excalith
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Before creating bug reports, please perform a [cursory search on issues](https:/

To report a new issue, please follow these steps:

- **Use a clear and descriptive title** for the issue to identify the problem after the prefix of `[BUG]`
- **Use a clear and descriptive title** for the issue to identify the problem after the prefix (ie. `[BUG] Page Freezes Upon Returning`)
- Use the **bug report template** and **fill out** the required fields.
- **Describe the exact steps which reproduce the problem** in as many details as possible. For example, start by explaining how you started the app, e.g. which command exactly you used in the terminal. When listing steps, **don't just say what you did, but explain how you did it**.
- Explain the **expected behaviour**
Expand Down
3 changes: 2 additions & 1 deletion src/components/Section.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Link from "@/components/Link"

const Section = ({ section, filter }) => {
const alignment = section.align || "left"
return (
<div className="mb-4">
<div className={`mb-4 align-${alignment}`}>
<h2 className={`text-title font-bold mt-0 mb-2 cursor-default text-${section.color}`}>
{section.title}
</h2>
Expand Down
8 changes: 4 additions & 4 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ body {
font-family: "Fira Code", monospace;
}

h1 {
font-size: 20px;
}

a,
a:active,
a:visited {
Expand Down Expand Up @@ -85,6 +81,10 @@ a:hover {
text-shadow: 0px 0px 10px;
}

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

.ace_editor,
.ace_gutter {
background-color: var(--window-color) !important;
Expand Down
6 changes: 6 additions & 0 deletions startpage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const defaultConfig = {
{
title: "General",
color: "green",
align: "left",
links: [
{
name: "Portfolio",
Expand All @@ -116,6 +117,7 @@ const defaultConfig = {
{
title: "Dev",
color: "magenta",
align: "left",
links: [
{
name: "GitHub",
Expand All @@ -142,6 +144,7 @@ const defaultConfig = {
{
title: "Social",
color: "violet",
align: "left",
links: [
{
name: "Twitter",
Expand All @@ -168,6 +171,7 @@ const defaultConfig = {
{
title: "Gaming",
color: "cyan",
align: "left",
links: [
{
name: "Polygon",
Expand All @@ -194,6 +198,7 @@ const defaultConfig = {
{
title: "Science",
color: "blue",
align: "left",
links: [
{
name: "PopSci",
Expand All @@ -220,6 +225,7 @@ const defaultConfig = {
{
title: "Tech",
color: "yellow",
align: "left",
links: [
{
name: "TechCrunch",
Expand Down

1 comment on commit 3205090

@vercel
Copy link

@vercel vercel bot commented on 3205090 Mar 29, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

start-page – ./

start-page-git-main-excalith.vercel.app
start-page-excalith.vercel.app
excalith-start-page.vercel.app

Please sign in to comment.