Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage changes #223

Merged
merged 66 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
6ff1983
Basic passing test
davenquinn May 30, 2024
60ecc45
Added basic test
davenquinn May 30, 2024
79e988a
start
Jun 6, 2024
e356bc9
added people and formatting
Jun 6, 2024
df77fea
adding folder
Jun 6, 2024
54f43fa
im confused
Jun 6, 2024
367883a
im confused
Jun 6, 2024
98d8fe9
updated yarn
Jun 6, 2024
f5be254
added images to background
Jun 6, 2024
f2a29be
added footer
Jun 6, 2024
e2a12c6
after pull request
Jun 6, 2024
0276542
linked people page from main page
Jun 6, 2024
345c9db
added built with macrostrat section
Jun 6, 2024
6b8e6f0
start
Jun 6, 2024
8363d83
fixed fonts
Jun 6, 2024
964b2a3
minor changes
Jun 6, 2024
cdce38d
page is broken
Jun 6, 2024
3e8d491
this is messed up
Jun 7, 2024
80c1814
added api section
Jun 7, 2024
845201a
added publications
Jun 7, 2024
02b2103
added about section
Jun 7, 2024
803e849
added geological maps section
Jun 7, 2024
5ffe65e
nav bar fix
Jun 7, 2024
f57b91f
fixed header and nav
Jun 7, 2024
1f42fc1
more fixes to nav bar
Jun 7, 2024
ffbe941
changed header and spacer
Jun 7, 2024
bc84464
merged people page with main page
Jun 7, 2024
21df473
merge main with apps page
Jun 7, 2024
8c3c21d
update dev page
Jun 7, 2024
140b7ae
added links to emails in people page
Jun 7, 2024
7fb856a
added about page
davidsklar99 Jun 11, 2024
eb01d1b
added publications page
davidsklar99 Jun 11, 2024
5243079
officialize formating across pages
davidsklar99 Jun 11, 2024
776b167
added donate page
davidsklar99 Jun 11, 2024
7ec698e
added version number
davidsklar99 Jun 11, 2024
05a1c3d
added changing logo to nav bar
davidsklar99 Jun 11, 2024
c1bf64b
changed locations layout
davidsklar99 Jun 13, 2024
4224fdb
changed layout of images
davidsklar99 Jun 13, 2024
27702f1
added caption to location names
davidsklar99 Jun 13, 2024
6349f82
added lexicon subpage
Jun 14, 2024
7112c8e
added basic links to pages
Jun 14, 2024
7705ead
added captions
Jun 14, 2024
2c70324
changed spacing
Jun 14, 2024
5251ed6
nicer formatting
Jun 14, 2024
e3f5c9f
changed formatting of start page
Jun 14, 2024
2a9f35c
added test testing files
Jun 15, 2024
6caa8ed
changed links and formalized formatting
Jun 16, 2024
6421ef6
updated dev homepage
Jun 16, 2024
3663fad
no border on images
Jun 25, 2024
b0e1f47
moved ts file
Jun 25, 2024
957f86a
made navbar function
Jun 25, 2024
1bbfb9f
added footer function
Jun 25, 2024
7a5bbdc
Merge branch 'new-start' into david-branch
davidsklar99 Jul 1, 2024
0a27f71
merged with start
davidsklar99 Jul 1, 2024
6d0b8ca
Merge branch 'locations' into david-branch
davidsklar99 Jul 1, 2024
1304dc0
locations changes
davidsklar99 Jul 1, 2024
9526062
Merge branch 'newLinksmain' into david-branch
davidsklar99 Jul 1, 2024
d9fd0e7
added new links
davidsklar99 Jul 1, 2024
623576d
moved around
davidsklar99 Jul 1, 2024
2f3b98c
Merge branch 'vitest' into david-branch
davidsklar99 Jul 1, 2024
36a1399
fixed yarn lock
davidsklar99 Jul 1, 2024
c5d45da
Merge branch 'upstream-branch' into test-merge
davidsklar99 Jul 1, 2024
ae2cf9b
test
davidsklar99 Jul 1, 2024
33249a3
Merge branch 'daven-vitest' into david-branch
davidsklar99 Jul 1, 2024
832f9b6
merged correctly
davidsklar99 Jul 1, 2024
931d492
Merge pull request #222 from davidsklar99/main
davenquinn Jul 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ pnpFallbackMode: all
pnpMode: loose

yarnPath: .yarn/releases/yarn-4.2.2.cjs

packageExtensions:
debug@*:
dependencies:
supports-color: "*"

vite@*:
dependencies:
supports-color: "*"
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"format": "prettier --write src packages",
"server:prod": "NODE_NO_WARNINGS=1 NODE_ENV=production yarn run server",
"dev:storybook": "yarn workspace @macrostrat/storybook run dev",
"start": "yarn run build && yarn run server"
"start": "yarn run build && yarn run server",
"test": "vitest"
},
"workspaces": [
"deps/web-components/packages/*",
Expand All @@ -35,13 +36,16 @@
"@macrostrat/revision-info-webpack": "^1.0.0",
"@macrostrat/storybook": "workspace:*",
"@mdx-js/rollup": "^2.3.0",
"@types/esprima": "^4",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@yarnpkg/sdks": "^3.1.0",
"prettier": "^2.7.1",
"sass": "^1.49.0",
"stylus": "^0.55.0",
"typescript": "^5.1.6"
"typescript": "^5.1.6",
"vite-plugin-rewrite-all": "^1.0.1",
"vitest": "^1.6.0"
},
"dependencies": {
"@blueprintjs/core": "^5.10.2",
Expand Down Expand Up @@ -107,6 +111,7 @@
"d3-selection": "^1.0.0",
"d3-shape": "^3.2.0",
"esbuild": "^0.20.0",
"esprima": "^4.0.1",
"express": "^4.18.2",
"hex-to-css-filter": "^5.4.0",
"history": "^5.3.0",
Expand Down
8 changes: 8 additions & 0 deletions src/base.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** Basic tests with Vitest */
import { test, expect } from "vitest";

test("should pass", () => {
expect(true).toBe(true);
});

// Load the URL of the main testing page
26 changes: 26 additions & 0 deletions src/components/page-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,29 @@ export function PageHeader(props) {
children,
]);
}


export function Icon(props) {
const {
title = "",
showSiteName = true,
children,
className,
} = props;
const siteName = "";
let _showSiteName = showSiteName;
if (title == siteName) {
_showSiteName = false;
}

return h("h1.page-title", { className }, [
h(MacrostratIcon, { size: 24 }),
h.if(_showSiteName)([
h(Link, { href: "/", className: "site-name" }, siteName),
" ",
]),
h("span.title", title),
" ",
children,
]);
}
1 change: 0 additions & 1 deletion src/pages/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { macrostratInstance } from "@macrostrat-web/settings";
import { PageHeader } from "~/components";
import { LinkCard } from "~/components/cards";


<PageHeader title="Macrostrat">
<span className="subtitle">
<span className="secondary">v2</span>{" "}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/dev/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ import { PageBreadcrumbs } from "~/renderer";
- [User interface tests](/dev/ui-tests)
- [Feedback](/dev/feedback)
- [Map filter](/dev/filtering)
- [Main Page](/dev/main-page)
- [Concept apps](/dev/concepts)
- [Built with Macrostrat](/dev/apps)
- [Test Site](/dev/test-site/main-page)

58 changes: 58 additions & 0 deletions src/pages/dev/lexicon/+Page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { PageHeader } from "~/components";
import { PageBreadcrumbs } from "~/renderer";
import "./main.styl";
import { Image } from "./index";
import { MacrostratIcon } from "~/components";

<div class="main">

[//]: # "Nav Bar"
<div class="nav">
<ul>
<li><a href="/dev/main-page"><MacrostratIcon></MacrostratIcon></a></li>
<li><a href="/dev/about">About</a></li>
<li><a href="/dev/publications">Publications</a></li>
<li><a href="/dev/people">People</a></li>
<li><a href="/dev/donate">Donate</a></li>
</ul>
</div>
\
\

[//]: # "Lithologies"
<div id="lith">
</div>

[//]: # "Stratigraphic Names"
<div id="strat">
</div>


[//]: # "Footer"
<div class="footer">
<div class="footer-container">
<div class="col-sm-4" id="who-made-it">
<Image className="logo_white" src="logo_white.png" width="100px"></Image>
<p class="f1-text">Produced by the <a href="http://strata.geology.wisc.edu" target="_blank">UW Macrostrat Lab</a> <a href="https://github.com/UW-Macrostrat" target="_blank"><Image className="git_logo" src="git-logo.png" width="18px"></Image></a></p>
</div>
<div class="col-sm-4" id="bottom-nav">
<ul class="footer-nav">
<li><a href="/dev/about">About</a></li>
<li><a href="/dev/publications">Publications</a></li>
<li><a href="/dev/people">People</a></li>
<li><a href="/dev/donate">Donate</a></li>
</ul>
</div>
<div class="col-sm-4 funding">
<Image className="funding-logo" src="nsf.png" width="100px"></Image>
<div class="funding-line">
Current support: \
EAR-1948843 \
ICER-1928323 \
UW-Madison Dept. Geoscience
</div>
</div>
</div>
</div>

</div>
File renamed without changes.
152 changes: 152 additions & 0 deletions src/pages/dev/lexicon/main.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
.htnl, .body, .main
background-color: white
color: black

a:hover
text-decoration: none
.nav
position: fixed
width: 100%
z-index: 10000
top: 0

ul
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #015eab;

li
float: left;
font-size: 15px

li a
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none

.big
color: #E0E1E6
text-align: left
font-size: 75px
font-family: "Maven Pro", sans-serif
margin: 0
margin-left: 20%
margin-top: 30px

.line
border-bottom: 3px solid #E0E1E6;
width: 60%
margin: 20px 20%


.people
color: white

.left
float: left
width: 30%
margin-left: 20%

.right
float: left
width: 30%
margin-right: 20%

.person-info
height: 30vh
width: 90%
position: relative
margin: 5%

.text
text-align: right
position:absolute
padding: 5px 20px
z-index: 100
background-color: rgba(0, 0, 0, 0.2)
bottom:0
right: 0

a
color: white

a:hover
color: white

.back-img
position:absolute
z-index: 0
height: 30vh
object-fit: cover
width: 100%

n
font-size: 25px
font-weight: 200px

t
font-weight: 400px

e
font-size: 14px
font-weight: 200px

.footer
width: 100%
background-color: #015EAB
margin-top: 280vh

.footer-container
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 0 auto;
width: 60%

.col-sm-4
color: white
width: 33.333%
color: #E0E1E6;
font-weight: 200;
text-align: center;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
font-weight: bold

.nav-logo
padding-top: 5px

.funding-logo
padding: 10px

.footer-nav
list-style-type: none
padding-right: 40px

li
padding: 5px 0

a
color: white

a:hover
text-decoration: none

.git_logo
vertical-align: sub

.f1-text
a
color: white

#who-made-it
padding-top: 25px

.subtitle
margin-left: 20%
color: #E0E1E6;
Loading
Loading