Skip to content

Commit

Permalink
Update text, adjust some small styling issues, fill out Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
majelbstoat committed Oct 16, 2017
1 parent 2de8c67 commit 32fa9c1
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 78 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 1,17 @@
# Snowflake

## Environment
Snowflake is Medium's tool for planning and supporting our engineers' career development. You can read more
about how we use this tool in our [growth framework documentation](https://medium.com/s/engineering-growth-framework).
Our growth tool is hosted [publicly](https://snowflake.medium.com).

![The Lannisters send their regards](https://i.imgur.com/e9DYLBr.png)

## Contributions

You are free to use, change and build on this work to make it useful for your organisation. We will happily consider
unencumbered code contributions to improve functionality, but as this is the actual tool we use within Medium, acceptance is likely to be intentional, and deliberate. Meaning, slow. As such, you may prefer to fork the codebase for your own needs. We will not accept any contributions that modify the text of the application (but, thank you in advance for pointing out any typos).

## Installation

Get yarn if you don’t have it already:

Expand All @@ -10,12 21,17 @@ Install dependencies:

`yarn`

## Running the dev server
### Running the dev server

`yarn dev`

## Building
### Building

`yarn export`

This will put a static version of the site in `out/`.

## Future work

* Load initial data from a file, to improve flexibility.
* Add restricted job title selection and validation.
4 changes: 2 additions & 2 deletions components/LevelThermometer.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 110,10 @@ class LevelThermometer extends React.Component<Props> {
)
})}
<g ref={ref => this.topAxis = ref} className="top-axis"
transform={`translate(0, -4)`}
transform={`translate(0, -2)`}
/>
<g ref={ref => this.bottomAxis = ref} className="bottom-axis"
transform={`translate(0,${height - margins.top - margins.bottom 3})`}
transform={`translate(0,${height - margins.top - margins.bottom 1})`}
/>
</g>
</svg>
Expand Down
12 changes: 6 additions & 6 deletions components/PointSummaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 29,14 @@ class PointSummaries extends React.Component<Props> {
}

const blocks = [
{
label: 'Total points',
value: totalPoints
},
{
label: 'Current level',
value: currentLevel
},
{
label: 'Total points',
value: totalPoints
},
{
label: 'Points to next level',
value: pointsToNextLevel
Expand All @@ -52,7 52,7 @@ class PointSummaries extends React.Component<Props> {
margin-left: -3px;
}
.point-summary-label {
font-size: 14px;
font-size: 12px;
text-align: center;
font-weight: normal;
width: 120px;
Expand All @@ -62,7 62,7 @@ class PointSummaries extends React.Component<Props> {
background: #eee;
font-size: 24px;
font-weight: bold;
line-height: 40px;
line-height: 50px;
border-radius: 2px;
text-align: center;
}
Expand Down
22 changes: 14 additions & 8 deletions components/SnowflakeApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,22 136,28 @@ class SnowflakeApp extends React.Component<Props, SnowflakeAppState> {
}
.name-input {
border: none;
border-bottom: 2px solid #ccc;
display: block;
border-bottom: 2px solid #fff;
font-size: 30px;
line-height: 40px;
font-weight: bold;
width: 100%;
width: 380px;
}
.name-input:hover, .name-input:focus {
border-bottom: 2px solid #ccc;
}
.title-input {
border: none;
border-bottom: 2px solid #ccc;
border-bottom: 2px solid #fff;
display: block;
font-size: 20px;
line-height: 40px;
font-weight: bold;
width: 100%;
margin-bottom: 30px;
color: #888
font-size: 24px;
line-height: 30px;
width: 380px;
margin-bottom: 20px;
}
.title-input:hover, .title-input:focus {
border-bottom: 2px solid #ccc;
}
`}</style>
<div style={{display: 'flex'}}>
Expand Down
4 changes: 2 additions & 2 deletions components/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 22,7 @@ class Track extends React.Component<Props> {
margin: 0;
}
h2 {
margin: 0;
margin: 0 0 10px 0;
}
p.track-description {
margin-top: 0;
Expand Down Expand Up @@ -66,7 66,7 @@ class Track extends React.Component<Props> {
</table>
{currentMilestone ? (
<div style={{flex: 1}}>
<p>{currentMilestone.summary}</p>
<h3>{currentMilestone.summary}</h3>
<h4>Example behaviors:</h4>
<ul>
{currentMilestone.signals.map((signal, i) => (
Expand Down
4 changes: 2 additions & 2 deletions components/TrackSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 19,8 @@ class TrackSelector extends React.Component<Props> {
width: 100%;
border-spacing: 3px;
border-bottom: 2px solid #ccc;
padding-bottom: 25px;
margin-bottom: 25px;
padding-bottom: 20px;
margin-bottom: 20px;
margin-left: -3px;
}
.track-selector-value {
Expand Down
Loading

0 comments on commit 32fa9c1

Please sign in to comment.