Skip to content

Commit

Permalink
Merge pull request #200 from OpenTechStrategies/199-touchups-to-deskt…
Browse files Browse the repository at this point in the history
…op-layout

199 touchups to desktop layout
  • Loading branch information
hminsky2002 authored Jan 29, 2025
2 parents a460428 + d686385 commit 2ad01cd
Show file tree
Hide file tree
Showing 17 changed files with 366 additions and 190 deletions.
4 changes: 2 additions & 2 deletions archesdataviewer/static/vite_build/.vite/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"index.html": {
"file": "assets/index-Bho4XSe1.js",
"file": "assets/index-uJ4Knizu.js",
"name": "index",
"src": "index.html",
"isEntry": true,
"css": [
"assets/index-D5EU3I_Q.css"
"assets/index-DEpX8LWf.css"
]
}
}

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions archesdataviewer/static/vite_build/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<title>Arches Data Viewer</title>
<script type="module" crossorigin src="/assets/index-Bho4XSe1.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-D5EU3I_Q.css">
<script type="module" crossorigin src="/assets/index-uJ4Knizu.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DEpX8LWf.css">
</head>
<body>
<div id="app"></div>
Expand Down
12 changes: 9 additions & 3 deletions front-end/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<title>Arches Data Viewer</title>
</head>
<body>
Expand Down
133 changes: 113 additions & 20 deletions front-end/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
<header class="welcome">
<div class="welcome-content">
<h1 class="welcome-text">
Explore Chicago’s <br />
Wabash Arts Corridor
<a href="/">
Explore Chicago’s <br />
Wabash Arts Corridor
</a>
</h1>
<div class="welcome-credits">
<div class="welcome-credit">
<a class="welcome-credit" href="https://opentechstrategies.com/">
<p>Designed by</p>
<img
id="ots-logo"
:src="
isProd
? 'https://arches-app-demo.opentechstrategies.com/archesdataviewer/ots_logo.png'
Expand All @@ -18,10 +21,12 @@
alt="no image available"
loading="lazy"
/>
</div>
<div class="welcome-credit">
</a>

<a class="welcome-credit" href="https://www.archesproject.org/">
<p>Powered by</p>
<img
id="arches-logo"
:src="
isProd
? 'https://arches-app-demo.opentechstrategies.com/archesdataviewer/arches_logo.png'
Expand All @@ -30,7 +35,7 @@
alt="no image available"
loading="lazy"
/>
</div>
</a>
</div>
</div>
</header>
Expand All @@ -57,7 +62,7 @@
@click="router.push('/artworks')"
>
<PhotoIcon class="button-icon" />
<span>Artworks</span>
<p>Artworks</p>
</button>
<button
type="button"
Expand All @@ -66,7 +71,7 @@
@click="router.push('/artists')"
>
<UserIcon class="button-icon" />
<span>Artists</span>
<p>Artists</p>
</button>
<button
id="map-icon"
Expand All @@ -76,7 +81,7 @@
@click="router.push('/map')"
>
<MapPinIcon class="button-icon" />
<span>Map</span>
<p>Map</p>
</button>
<button
type="button"
Expand All @@ -85,7 +90,7 @@
@click="router.push('/about')"
>
<InformationCircleIcon class="button-icon" />
<span>About</span>
<p>About</p>
</button>
</div>
<RouterView v-slot="{ Component }">
Expand Down Expand Up @@ -178,7 +183,7 @@ watch(

<style scoped>
main {
border-radius: 32px;
border-radius: 20px;
}
.home {
Expand Down Expand Up @@ -208,21 +213,27 @@ main {
flex-wrap: wrap;
}
.welcome-text {
font-size: 32px;
line-height: 38.4px;
}
.welcome-credit {
display: flex;
align-items: center;
gap: var(--wac--accessible-spacing--halfx);
text-decoration: none;
}
.welcome-credits img {
max-height: 25px;
max-height: 20px;
max-width: 150px;
height: auto;
object-fit: contain;
}
.welcome-text {
font-size: var(--wac--font-size--xxl);
.welcome-text a {
text-decoration: none;
}
.welcome-credits p {
Expand All @@ -235,7 +246,6 @@ main {
main {
display: flex;
flex-direction: column;
gap: var(--wac--semantic-spacing--primary);
}
#map-container,
Expand All @@ -244,7 +254,6 @@ main {
}
#search-list-container {
border-radius: 32px;
order: -1;
background: #fff8e0;
}
Expand All @@ -269,6 +278,7 @@ main {
width: 100vw;
gap: var(--wac--semantic-spacing--tertiary);
z-index: 999;
margin-bottom: var(--wac--semantic-spacing--tertiary);
}
.search-input-wrapper {
Expand Down Expand Up @@ -312,6 +322,88 @@ main {
}
}
@media screen and (min-width: 768px) and (max-width: 940px) {
main {
background-color: #fff8e0;
}
.welcome-content {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.welcome h1 {
flex: 1;
}
#arches-logo,
#ots-logo {
max-height: 26px;
}
.welcome-credits {
display: flex;
flex-direction: column;
align-items: left;
justify-content: flex-end;
gap: var(--wac--accessible-spacing--halfx);
flex-wrap: wrap;
}
.welcome-credit {
display: flex;
align-items: center;
gap: var(--wac--accessible-spacing--halfx);
}
.welcome-credits img {
max-height: 50px;
max-width: 150px;
height: auto;
object-fit: contain;
}
.welcome {
font-size: var(--wac--font-size--xxl);
}
#search-list-container {
order: 0;
padding: var(--wac--accessible-spacing--2x);
background: none;
}
main {
flex-direction: column;
}
#map-container {
display: block;
}
.search-header {
--wac--search-header--internal-spacing: var(--wac--semantic-spacing--tertiary);
position: sticky;
top: 0;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: var(--wac--search-header--internal-spacing);
padding-block: var(--wac--search-header--internal-spacing);
width: 100%;
background: linear-gradient(
180deg,
#fff8e0 calc(100% - var(--wac--search-header--internal-spacing)),
rgba(255, 255, 255, 0) 100%
);
margin-bottom: 0px;
}
#map-icon {
display: none;
}
}
@media screen and (min-width: 940px) {
main {
padding-left: var(--wac--accessible-spacing--2x);
Expand All @@ -327,7 +419,10 @@ main {
.welcome h1 {
flex: 1;
}
#arches-logo,
#ots-logo {
max-height: 26px;
}
.welcome-credits {
display: flex;
align-items: center;
Expand Down Expand Up @@ -362,9 +457,7 @@ main {
main {
flex-direction: row-reverse;
}
.home {
gap: var(--wac--semantic-spacing--primary);
}
#map-container {
display: block;
}
Expand Down
Loading

0 comments on commit 2ad01cd

Please sign in to comment.