Skip to content

Commit

Permalink
Merge pull request #10 from teovin/github-pages
Browse files Browse the repository at this point in the history
Changes needed for css, js, font, and image paths to work with GitHub pages deployment
  • Loading branch information
teovin authored Jan 17, 2024
2 parents e88c4de + 9bdf93e commit f375a1c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions components/cap-decorated-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class CapDecoratedHeader extends LitElement {
.heading--smallWedge::before {
content: "";
background: url("/images/wedge.svg") no-repeat;
background: url("./images/wedge.svg") no-repeat;
position: absolute;
top: 50%;
left: -30px;
Expand All @@ -54,7 +54,7 @@ export class CapDecoratedHeader extends LitElement {
.heading--largeWedge::before {
content: "";
background: url("/images/wedge.svg") no-repeat;
background: url("./images/wedge.svg") no-repeat;
position: absolute;
top: 50%;
left: -30px;
Expand Down
64 changes: 32 additions & 32 deletions css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
font-weight: 200 900;
font-style: normal;
font-stretch: normal;
src: url("/fonts/source-serif/SourceSerif4Variable-Roman.ttf.woff2")
src: url("../fonts/source-serif/SourceSerif4Variable-Roman.ttf.woff2")
format("woff2-variations"),
url("/fonts/source-serif/SourceSerif4Variable-Roman.ttf.woff")
url("../fonts/source-serif/SourceSerif4Variable-Roman.ttf.woff")
format("woff-variations"),
url("/fonts/source-serif/SourceSerif4Variable-Roman.ttf")
url("../fonts/source-serif/SourceSerif4Variable-Roman.ttf")
format("truetype-variations");
}

Expand All @@ -16,11 +16,11 @@
font-weight: 200 900;
font-style: italic;
font-stretch: normal;
src: url("/fonts/source-serif/SourceSerif4Variable-Italic.ttf.woff2")
src: url("../fonts/source-serif/SourceSerif4Variable-Italic.ttf.woff2")
format("woff2-variations"),
url("/fonts/source-serif/SourceSerif4Variable-Italic.ttf.woff")
url("../fonts/source-serif/SourceSerif4Variable-Italic.ttf.woff")
format("woff-variations"),
url("/fonts/source-serif/SourceSerif4Variable-Italic.ttf")
url("../fonts/source-serif/SourceSerif4Variable-Italic.ttf")
format("truetype-variations");
}

Expand All @@ -29,10 +29,10 @@
font-weight: 200 900;
font-style: normal;
font-stretch: normal;
src: url("/fonts/source-sans-3/SourceSans3VF-Upright.ttf.woff2")
src: url("../fonts/source-sans-3/SourceSans3VF-Upright.ttf.woff2")
format("woff2"),
url("/fonts/SourceSans3VF-Upright.ttf.woff") format("woff"),
url("/fonts/SourceSans3VF-Upright.ttf") format("truetype");
url("../fonts/SourceSans3VF-Upright.ttf.woff") format("woff"),
url("../fonts/SourceSans3VF-Upright.ttf") format("truetype");
}

@font-face {
Expand All @@ -48,19 +48,19 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-it-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-it-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-it-webfont.woff") format("woff");
url("../fonts/source-code-pro/sourcecodepro-it-webfont.woff") format("woff");
font-weight: 400;
font-style: italic;
}

@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-light-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-light-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-light-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-light-webfont.woff")
format("woff");
font-weight: 300;
font-style: normal;
Expand All @@ -69,9 +69,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-lightit-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-lightit-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-lightit-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-lightit-webfont.woff")
format("woff");
font-weight: 300;
font-style: italic;
Expand All @@ -80,9 +80,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-medium-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-medium-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-medium-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-medium-webfont.woff")
format("woff");
font-weight: 500;
font-style: normal;
Expand All @@ -91,9 +91,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-mediumit-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-mediumit-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-mediumit-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-mediumit-webfont.woff")
format("woff");
font-weight: 500;
font-style: italic;
Expand All @@ -102,9 +102,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-regular-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-regular-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-regular-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-regular-webfont.woff")
format("woff");
font-weight: 400;
font-style: normal;
Expand All @@ -113,9 +113,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-semibold-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-semibold-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-semibold-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-semibold-webfont.woff")
format("woff");
font-weight: 600;
font-style: normal;
Expand All @@ -124,9 +124,9 @@
@font-face {
font-display: swap;
font-family: "source-code";
src: url("/fonts/source-code-pro/sourcecodepro-semiboldit-webfont.woff2")
src: url("../fonts/source-code-pro/sourcecodepro-semiboldit-webfont.woff2")
format("woff2"),
url("/fonts/source-code-pro/sourcecodepro-semiboldit-webfont.woff")
url("../fonts/source-code-pro/sourcecodepro-semiboldit-webfont.woff")
format("woff");
font-weight: 600;
font-style: italic;
Expand All @@ -135,34 +135,34 @@
@font-face {
font-display: swap;
font-family: "Libre Baskerville";
src: url("/fonts/LibreBaskerville-Regular.woff") format("woff");
src: url("../fonts/LibreBaskerville-Regular.woff") format("woff");
font-weight: 300;
font-style: normal;
}

@font-face {
font-display: swap;
font-family: "titillium";
src: url("/fonts/titilliumweb-bold-webfont.woff2") format("woff2"),
url("/fonts/titilliumweb-bold-webfont.woff") format("woff");
src: url("../fonts/titilliumweb-bold-webfont.woff2") format("woff2"),
url("../fonts/titilliumweb-bold-webfont.woff") format("woff");
font-weight: 700;
font-style: normal;
}

@font-face {
font-display: swap;
font-family: "titillium";
src: url("/fonts/titilliumweb-semibold-webfont.woff2") format("woff2"),
url("/fonts/titilliumweb-semibold-webfont.woff") format("woff");
src: url("../fonts/titilliumweb-semibold-webfont.woff2") format("woff2"),
url("../fonts/titilliumweb-semibold-webfont.woff") format("woff");
font-weight: 600;
font-style: normal;
}

@font-face {
font-display: swap;
font-family: "titillium";
src: url("/fonts/titilliumweb-regular-webfont.woff2") format("woff2"),
url("/fonts/titilliumweb-regular-webfont.woff") format("woff");
src: url("../fonts/titilliumweb-regular-webfont.woff2") format("woff2"),
url("../fonts/titilliumweb-regular-webfont.woff") format("woff");
font-weight: 400;
font-style: normal;
}
Expand Down
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Caselaw Access Projects" />

<link href="/css/global.css" rel="stylesheet" />
<script type="module" src="/components/cap-map.js"></script>
<script type="module" src="/components/cap-nav.js"></script>
<script type="module" src="/components/cap-stats.js"></script>
<script type="module" src="/components/cap-section-highlight.js"></script>
<script type="module" src="/components/cap-contact.js"></script>
<script type="module" src="/components/cap-footer.js"></script>
<link href="css/global.css" rel="stylesheet" />
<script type="module" src="components/cap-map.js"></script>
<script type="module" src="components/cap-nav.js"></script>
<script type="module" src="components/cap-stats.js"></script>
<script type="module" src="components/cap-section-highlight.js"></script>
<script type="module" src="components/cap-contact.js"></script>
<script type="module" src="components/cap-footer.js"></script>
</head>
<body>
<cap-nav></cap-nav>
Expand Down

0 comments on commit f375a1c

Please sign in to comment.