WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ad2e852

Browse files
authored
feat(careers): highlight remote perks and force downloads (#96)
2 parents a11e1c5 + 71deacc commit ad2e852

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

app/[locale]/careers/brand-designer/page.zh-CN.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ import { ButtonLink } from '~/components/ui/button'
5252

5353
具竞争力的薪酬、灵活带薪休假、远程优先、设备/软件补贴与学习成长预算。清晰的每周节奏与注重品味、速度和结果的深度合作方式。
5454

55+
* 远程+异步,跟固定会议说拜拜。
56+
* 朝九晚五,双休,不加班。
57+
5558
## 面试流程
5659

5760
1) 认识彼此 + 作品集分享(40 分钟)
@@ -71,4 +74,3 @@ import { ButtonLink } from '~/components/ui/button'
7174
<p className='mt-6'>
7275
<Link href='/careers' className='text-stone-600 dark:text-stone-300 underline underline-offset-4'>← 返回所有职位</Link>
7376
</p>
74-

app/[locale]/careers/product-designer/page.zh-CN.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ import { ButtonLink } from '~/components/ui/button'
5050

5151
具竞争力的薪酬、灵活带薪休假、远程优先、设备/软件补贴与学习成长预算。清晰的每周节奏与注重品味、速度和结果的深度合作方式。
5252

53+
* 远程+异步,跟固定会议说拜拜。
54+
* 朝九晚五,双休,不加班。
55+
5356
## 面试流程
5457

5558
1) 认识彼此 + 作品集分享(40 分钟)

components/mdx/Grid.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,18 @@ export function GridItem({ className, action, children }: GridItemProps) {
181181
if (action.kind === 'download') {
182182
const anchor = document.createElement('a')
183183
anchor.href = action.href
184-
if (action.fileName) anchor.download = action.fileName
184+
const resolvedFileName = (() => {
185+
if (action.fileName) return action.fileName
186+
try {
187+
const url = new URL(action.href, window.location.href)
188+
const lastSegment = url.pathname.split('/').filter(Boolean).pop()
189+
return lastSegment ?? ''
190+
} catch {
191+
return ''
192+
}
193+
})()
194+
anchor.download = resolvedFileName
195+
anchor.rel = 'noopener'
185196
// Allow same-tab download by default; fallback to opening if blocked
186197
document.body.appendChild(anchor)
187198
anchor.click()

0 commit comments

Comments
 (0)