Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
cf-online-ui
Commits
a0d7a22e
Commit
a0d7a22e
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
fix: styleguide url slash handling
parent
5a9967db
No related branches found
No related tags found
No related merge requests found
Pipeline
#1793
passed
4 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env
+1
-1
1 addition, 1 deletion
.env
public/index.html
+8
-8
8 additions, 8 deletions
public/index.html
src/components/Footer.jsx
+1
-1
1 addition, 1 deletion
src/components/Footer.jsx
src/components/Navbar.jsx
+1
-1
1 addition, 1 deletion
src/components/Navbar.jsx
with
11 additions
and
11 deletions
.env
+
1
−
1
View file @
a0d7a22e
REACT_APP_STYLEGUIDE_URL=http://localhost:3001
/
REACT_APP_STYLEGUIDE_URL=http://localhost:3001
This diff is collapsed.
Click to expand it.
public/index.html
+
8
−
8
View file @
a0d7a22e
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<!-- Favicons -->
<!-- Favicons -->
<link
rel=
"apple-touch-icon"
href=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/favicon-196x196.png"
>
<link
rel=
"apple-touch-icon"
href=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/favicon-196x196.png"
>
<link
rel=
"icon"
type=
"image/png"
href=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/favicon-196x196.png"
sizes=
"196x196"
>
<link
rel=
"icon"
type=
"image/png"
href=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/favicon-196x196.png"
sizes=
"196x196"
>
<meta
name=
"application-name"
content=
"CF2021"
>
<meta
name=
"application-name"
content=
"CF2021"
>
<meta
name=
"msapplication-TileColor"
content=
"#000000"
>
<meta
name=
"msapplication-TileColor"
content=
"#000000"
>
<meta
name=
"msapplication-TileImage"
content=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/mstile-144x144.png"
>
<meta
name=
"msapplication-TileImage"
content=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/mstile-144x144.png"
>
<meta
name=
"msapplication-square70x70logo"
content=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/mstile-70x70.png"
>
<meta
name=
"msapplication-square70x70logo"
content=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/mstile-70x70.png"
>
<meta
name=
"msapplication-square150x150logo"
content=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/mstile-150x150.png"
>
<meta
name=
"msapplication-square150x150logo"
content=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/mstile-150x150.png"
>
<meta
name=
"msapplication-wide310x150logo"
content=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/mstile-310x150.png"
>
<meta
name=
"msapplication-wide310x150logo"
content=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/mstile-310x150.png"
>
<meta
name=
"msapplication-square310x310logo"
content=
"%REACT_APP_STYLEGUIDE_URL%images/favicons/mstile-310x310.png"
>
<meta
name=
"msapplication-square310x310logo"
content=
"%REACT_APP_STYLEGUIDE_URL%
/
images/favicons/mstile-310x310.png"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
property=
"og:url"
content=
"https://cf2021.pirati.cz/"
/>
<meta
property=
"og:url"
content=
"https://cf2021.pirati.cz/"
/>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
work correctly both with client-side routing and a non-root public URL.
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
Learn how to configure a non-root public URL by running `npm run build`.
-->
-->
<link
rel=
"stylesheet"
href=
"%REACT_APP_STYLEGUIDE_URL%css/styles.css"
/>
<link
rel=
"stylesheet"
href=
"%REACT_APP_STYLEGUIDE_URL%
/
css/styles.css"
/>
<title>
CF 2021 | Pirátská strana
</title>
<title>
CF 2021 | Pirátská strana
</title>
</head>
</head>
<body
class=
"h-screen"
>
<body
class=
"h-screen"
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Footer.jsx
+
1
−
1
View file @
a0d7a22e
...
@@ -6,7 +6,7 @@ const Footer = () => {
...
@@ -6,7 +6,7 @@ const Footer = () => {
<
div
className
=
"footer__main py-4 lg:py-16 container container--default"
>
<
div
className
=
"footer__main py-4 lg:py-16 container container--default"
>
<
section
className
=
"footer__brand"
>
<
section
className
=
"footer__brand"
>
<
img
<
img
src
=
{
`
${
process
.
env
.
REACT_APP_STYLEGUIDE_URL
}
images/logo-full-white.svg`
}
src
=
{
`
${
process
.
env
.
REACT_APP_STYLEGUIDE_URL
}
/
images/logo-full-white.svg`
}
alt
=
""
alt
=
""
className
=
"w-32 md:w-40 pb-6"
className
=
"w-32 md:w-40 pb-6"
/>
/>
...
...
This diff is collapsed.
Click to expand it.
src/components/Navbar.jsx
+
1
−
1
View file @
a0d7a22e
...
@@ -24,7 +24,7 @@ const Navbar = () => {
...
@@ -24,7 +24,7 @@ const Navbar = () => {
<
div
className
=
"navbar__brand my-4 flex items-center lg:pr-8 lg:my-0"
>
<
div
className
=
"navbar__brand my-4 flex items-center lg:pr-8 lg:my-0"
>
<
NavLink
to
=
"/"
>
<
NavLink
to
=
"/"
>
<
img
<
img
src
=
{
`
${
process
.
env
.
REACT_APP_STYLEGUIDE_URL
}
images/logo-round-white.svg`
}
src
=
{
`
${
process
.
env
.
REACT_APP_STYLEGUIDE_URL
}
/
images/logo-round-white.svg`
}
className
=
"w-8"
className
=
"w-8"
alt
=
"Pirátská strana"
alt
=
"Pirátská strana"
/>
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment