Skip to content

Commit

Permalink
Add Optics logo to documentation along with company info (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy-Walton authored Feb 29, 2024
1 parent 02f3cda commit 0b7538b
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 61 deletions.
33 changes: 33 additions & 0 deletions .storybook/documentation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,36 @@ html {
line-height: 19px;
}
}

// Company Card
.card-company {
@extend %card-global;

display: flex;
align-items: center;
justify-content: space-between;
padding: var(--op-space-large);
gap: var(--op-space-large);

.card-company__info {
display: flex;
align-items: center;
gap: var(--op-space-x-large);

.card-company__info-logo {
width: calc(var(--op-size-unit) * 24); // 96px
}

p {
margin: 0;
}
}

@media (width <= $breakpoint-small) {
flex-direction: column;

.btn {
width: 100%;
}
}
}
1 change: 1 addition & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const config = {
core: {
disableTelemetry: true, // 👈 Disables telemetry
},
staticDirs: ['./public'],
}

export default config
11 changes: 11 additions & 0 deletions .storybook/public/optics-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 0 additions & 60 deletions .storybook/public/optics.svg

This file was deleted.

19 changes: 19 additions & 0 deletions .storybook/public/rms-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .storybook/rolemodelTheme.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { create } from '@storybook/theming/create'
import logoUrl from './public/optics.svg'
import logoUrl from './public/optics-logo.svg'

export default create({
base: 'light',
Expand Down
11 changes: 11 additions & 0 deletions src/stories/Overview/Introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ import packageData from '../../../package.json'

</div>

<div className="card-company card--shadow-x-small">
<div className="card-company__info">
<img className="card-company__info-logo" src="./rms-logo.svg" alt="RoleModel Software Logo" />
<p>Optics, a RoleModel Software innovation, is a product of our mission to deliver exceptional digital products.</p>
</div>
<a className="btn" href="https://rolemodelsoftware.com/">
Learn About RoleModel Software
<span className="material-symbols-outlined sb-unstyled">open_in_new</span>
</a>
</div>

Optics is an scss package that provides base styles and components that can be integrated and customized in a variety of projects.

## Installation
Expand Down

0 comments on commit 0b7538b

Please sign in to comment.