Skip to content

Commit

Permalink
feat: update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jun 19, 2023
1 parent f2f6b92 commit 1ed42e6
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/components/AboutHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CloudSun } from 'lucide-preact'
import { styled } from 'styled-components'
import { Logo } from './icons/Logo.js'

const OpenSourceBG = styled.div`
background-color: var(--color-nordic-blue);
Expand Down Expand Up @@ -47,7 +47,7 @@ export const AboutHeader = () => (
<div class="row d-flex align-items-center flex-direction-row">
<div class="col-12 col-sm-6 col-md-4">
<h1>
<CloudSun strokeWidth={1} size={35} /> hello.nrfcloud.com
<Logo strokeWidth={2} color={'white'} /> hello.nrfcloud.com
</h1>
<p>
Retrieve real-time data from your long-range Nordic Semiconductor
Expand Down
6 changes: 4 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useDevice } from '#context/Device.js'
import { useFingerprint } from '#context/Fingerprint.js'
import cx from 'classnames'
import { CloudSun, Code2, Fingerprint, Home } from 'lucide-preact'
import { Code2, Fingerprint, Home } from 'lucide-preact'
import type { PropsWithChildren } from 'preact/compat'
import { useState } from 'preact/hooks'
import { PreviewWarning } from './PreviewWarning.js'
import { Logo } from './icons/Logo.js'

const Link = ({
href,
Expand Down Expand Up @@ -48,7 +49,8 @@ const Navigation = () => {
href={`/device#${device.id}`}
title="Device fingerprint was provided"
>
<CloudSun class="me-1" /> Your Development Kit
<Logo color={'white'} strokeWidth={1} class="me-1" /> Your Development
Kit
</Link>
)}
<Link href="/view-source">
Expand Down
6 changes: 3 additions & 3 deletions src/components/SourceHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CloudSun } from 'lucide-preact'
import { Logo } from './icons/Logo.js'

export const SourceHeader = () => (
<div
Expand All @@ -12,8 +12,8 @@ export const SourceHeader = () => (
<div class="row">
<div class="col-6">
<h1>
<CloudSun strokeWidth={1} size={35} /> hello.nrfcloud.com: the
source
<Logo color={'white'} strokeWidth={1} class="me-2" />
hello.nrfcloud.com: the source
</h1>
<p>
Learn how we've built <em>hello.nrfcloud.com</em>.
Expand Down
59 changes: 59 additions & 0 deletions src/components/icons/Logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
export const Logo = ({
strokeWidth,
color,
class: className,
}: {
strokeWidth: number
color: string
class?: string
}) => {
const s = (strokeWidth ?? 2) * (0.529167 / 2)
const c = color ?? '#00a9ce'
return (
<svg
width={`34.409477`}
height={`31.091856`}
viewBox={`0 0 9.1041747 8.226387`}
version={`1.1`}
xmlns={`http://www.w3.org/2000/svg`}
class={className}
>
<g id={`layer1`} transform={`translate(-51.98419,-87.73281)`}>
<circle
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers;stop-color:#000000`}
cx={`59.236233`}
cy={`92.282242`}
r={`0.52921253`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers;stop-color:#000000`}
d={`m 56.074806,92.811454 a 0.52921253,0.52921253 0 0 1 -0.528317,-0.498441 0.52921253,0.52921253 0 0 1 0.466879,-0.556405 0.52921253,0.52921253 0 0 1 0.582611,0.433737`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers`}
d={`m 57.29966,90.800242 v 2.011216`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers`}
d={`m 58.003341,90.800242 v 2.011216`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers;stop-color:#000000`}
d={`m 53.78349,92.282242 a 0.52921253,0.52921253 0 0 1 0.529212,-${s} 0.52921253,0.52921253 0 0 1 ${s},${s}`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers`}
d={`m 53.783491,90.800241 v 2.011217`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers`}
d={`m 54.841916,92.278618 v 0.53284`}
/>
<path
style={`fill:none;stroke:${c};stroke-width:${s};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke fill markers;stop-color:#000000`}
d={`m 56.512431,87.997479 c -1.141401,6.72e-4 -2.162712,0.709151 -2.563037,1.778046 -0.983671,0.175912 -1.700027,1.031244 -1.700597,2.03052 8.4e-5,1.139843 0.924152,2.063812 2.063994,2.063776 0.761536,0.0046 2.324894,0.0025 3.114593,2.24e-4 0.456065,-0.0013 0.590144,1.102313 -0.285746,1.824568 1.084256,-0.23399 1.761079,-0.892688 1.825748,-1.826154 0.268888,0.0013 0.17938,7.84e-4 0.268888,0.0013 0.876709,-8.4e-5 1.587402,-0.710777 1.587485,-1.587487 -4.7e-5,-0.871102 -0.701981,-1.579479 -1.573046,-1.587485 -0.0225,-1.496251 -1.241862,-2.697399 -2.738282,-2.69737 z`}
/>
</g>
</svg>
)
}
61 changes: 46 additions & 15 deletions static/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ed42e6

Please sign in to comment.