Skip to content

Commit

Permalink
add base path to serve static assets #11
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Feb 27, 2024
1 parent d4142c6 commit 6fded39
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ NEXT_PUBLIC_CONTACT_PHONE="+374 431 085 88"

NEXT_PUBLIC_LOCATION_GOOGLE_MAPS_LINK="https://shorturl.at/gsuK5"
NEXT_PUBLIC_LOCATION_ADDRESS_TEXT=" 41, 4 Abovyan St, Yerevan 0009"

BASE_PATH="/salsaviva"
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: write
Expand Down
14 changes: 13 additions & 1 deletion app/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,24 @@ body {
display: block;
content: "";
background-color: theme(colors.white);
height: 1px;
height: 1.5px;
width: 0;
left: 0;
position: absolute;
transition: width 0.4s;
transition-timing-function: cubic-bezier(0.91, 0.43, 0.84, 0.89);

@media (prefers-reduced-motion) {
transition: none;
}
}

.animated-link:hover:after {
width: 100%;

@media (prefers-reduced-motion) {
width: 0;
}
}

.animated-link:focus {
Expand All @@ -34,6 +42,10 @@ body {

.animated-link:focus:after {
width: 100%;

@media (prefers-reduced-motion) {
width: 0;
}
}

.focus-ring {
Expand Down
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const nextConfig = {
images: {
unoptimized: true,
},
basePath: process.env.BASE_PATH,
};

const withAnalyzer = withBundleAnalyzer({
Expand Down

0 comments on commit 6fded39

Please sign in to comment.