Skip to content

Commit

Permalink
Working on code style cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoore14 committed Oct 20, 2023
1 parent eab1da9 commit d93ac68
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 117 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
flex-wrap: nowrap;
justify-content: center;
align-items: center;
top: var(--nav-height);
top: var(--nav-height);
width: 100%;
height: auto;
font-size: 1.5em;
Expand All @@ -61,7 +61,7 @@
cursor: pointer;
width: max-content;
margin: 1rem auto;
text-decoration: none;
text-decoration: none;
color: var(--primary-text-color);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
transition: ease-in-out .3s;
}
@media only screen and (max-width: 1366px) {
.nav {
padding-inline: 4rem;
.nav {
padding-inline: 4rem;
}
}
@media only screen and (max-width: 430px) {
.nav {
.nav {
padding-inline: 1.5rem;
}
}
Expand Down
19 changes: 10 additions & 9 deletions src/components/memberFeed/MemberFeed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@

<style>
.member-feed {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
gap: 3rem;
width: 100%;
height: auto;
padding: 2rem 0;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
gap: 3rem;
width: 100%;
height: auto;
padding: 2rem 0;
}
@media only screen and (max-width: 430px) {
.member-feed {
padding: 0;
Expand Down
8 changes: 4 additions & 4 deletions src/components/ui/CtaLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</a>

<style>
.cta-button {
.cta-button {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
Expand All @@ -44,9 +44,9 @@
border-radius: 10px;
transition: background-color 0.3s ease;
filter: var(--btn-shadow);
}
}
.cta-button:hover {
.cta-button:hover {
background-color: var(--cta-btn-hover-bg);
}
}
</style>
16 changes: 8 additions & 8 deletions src/components/ui/FeedContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
}
.feed-container::after {
content: "";
position: absolute;
content: "";
position: absolute;
right: -40px;
top: -40px;
width: 70px;
height: 70px;
transform: rotate(45deg);
background-color: var(--primary-bg-color);
width: 70px;
height: 70px;
transform: rotate(45deg);
background-color: var(--primary-bg-color);
border: 4px solid var(--primary-bg-color);
}
Expand All @@ -61,13 +61,13 @@
.feed-content {
width: 100%;
}
}
@media only screen and (max-width: 430px) {
.feed-header {
border-radius: 0;
}
.feed-container::after {
display: none;
display: none;
}
}
</style>
108 changes: 54 additions & 54 deletions src/components/ui/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,84 +52,84 @@

<style>
.hero {
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 2rem;
width: 100%;
height: 34.25rem;
background: var(--gradient-bg-vert);
border: 2px solid var(--border-color);
border-radius: 10px;
z-index: 1;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
gap: 2rem;
width: 100%;
height: 34.25rem;
background: var(--gradient-bg-vert);
border: 2px solid var(--border-color);
border-radius: 10px;
z-index: 1;
}
.hero-bg-img {
position: absolute;
opacity: var(--triforce-opacity);
width: 100%;
height: 100%;
background-image: url('./triforce.svg');
background-repeat: no-repeat;
background-position: right center;
filter: var(--triforce-invert);
position: absolute;
opacity: var(--triforce-opacity);
width: 100%;
height: 100%;
background-image: url('./triforce.svg');
background-repeat: no-repeat;
background-position: right center;
filter: var(--triforce-invert);
}
.hero::after {
content: "";
position: absolute;
right: -56px;
top: -56px;
width: 100px;
height: 100px;
transform: rotate(45deg);
background-color: var(--primary-bg-color);
border: 4px solid var(--primary-bg-color);
content: "";
position: absolute;
right: -56px;
top: -56px;
width: 100px;
height: 100px;
transform: rotate(45deg);
background-color: var(--primary-bg-color);
border: 4px solid var(--primary-bg-color);
}
.hero-img {
width: 32rem;
height: 32rem;
background-color: var(--gray);
z-index: 1;
border-radius: 10px 0 0 0;
width: 32rem;
height: 32rem;
background-color: var(--gray);
z-index: 1;
border-radius: 10px 0 0 0;
}
.hero-content {
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
align-items: flex-start;
gap: 2rem;
height: 32rem;
padding: 0 5rem 0 5rem;
z-index: 1;
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
align-items: flex-start;
gap: 2rem;
height: 32rem;
padding: 0 5rem 0 5rem;
z-index: 1;
}
.hero-content-event-name {
font-family: var(--header-font-family);
font-size: 3rem;
color: var(--primary-text-color);
font-family: var(--header-font-family);
font-size: 3rem;
color: var(--primary-text-color);
}
.hero-content-date {
font-family: var(--body-font-family);
color: var(--primary-text-color);
font-family: var(--body-font-family);
color: var(--primary-text-color);
}
.hero-content-date a {
color: var(--cta-btn-bg);
color: var(--cta-btn-bg);
}
.hero-content-description {
font-family: var(--body-font-family);
color: var(--primary-text-color);
line-height: 1.6rem;
font-family: var(--body-font-family);
color: var(--primary-text-color);
line-height: 1.6rem;
}
@media only screen and (max-width: 1366px) {
Expand Down
8 changes: 4 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
}
@media only screen and (max-width: 1366px) {
.page-content {
padding: 0 4rem;
.page-content {
padding: 0 4rem;
}
}
@media only screen and (max-width: 430px) {
.page-content {
padding: 0;
.page-content {
padding: 0;
}
}
</style>
66 changes: 33 additions & 33 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,48 +29,48 @@

<style>
main {
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 2rem;
width: 100%;
height: 100%;
padding-top: 7rem;
background-color: var(--primary-bg-color);
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 2rem;
width: 100%;
height: 100%;
padding-top: 7rem;
background-color: var(--primary-bg-color);
}
.content {
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
gap: 2rem;
width: 100%;
height: auto;
z-index: 0;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
gap: 2rem;
width: 100%;
height: auto;
z-index: 0;
}
section {
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
}
aside {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 1rem;
width: 25rem;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
gap: 1rem;
width: 25rem;
}
@media only screen and (max-width: 430px) {
Expand Down

0 comments on commit d93ac68

Please sign in to comment.