frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

HarmonyOS5-NewsAPP-NewsListPage

2•zhousg•3h ago
HarmonyOS 5 News Application - News List Page Implementation Case Summary This article details the implementation of the news list page in a HarmonyOS 5.0 news application using the ArkTS language. By defining state variables and building UI components, it achieves the functions of news category filtering and news list display.

@Component struct NewsListPage { @State list: NewsModel[] = mockData @State categories: string[] = [ 'All', 'Sports', 'Politic', 'Business', 'World' ]

  build() { 
    NavDestination() { 
      Column() { 
        Column() { 
          Text('Discover') 
            .fontSize(32) 
            .fontWeight(FontWeight.Bold) 
          Text('News from all around the world') 
            .fontColor(Color.Gray) 
            .margin({ top: 4 }) 
          Search({ placeholder: 'News Keyword' }) 
            .height(48) 
            .searchButton('Search') 
            .margin({ top: 20 }) 
            .searchIcon({ size: 20 }) 
        } 
        .width('100%') 
        .padding(15) 
        .alignItems(HorizontalAlign.Start) 

        List({ space: 15 }) { 
          ForEach(this.categories, (cate: string) => { 
            ListItem() { 
              Button(cate) 
                .height(40) 
            } 
          }) 
        } 
        .contentStartOffset(15) 
        .width('100%') 
        .height(64) 
        .listDirection(Axis.Horizontal) 
        .scrollBar(BarState.Off) 

        List({ space: 12 }) { 
          ForEach(this.list, (item: NewsModel) => { 
            ListItem() { 
              ListNewsItem({ news: item }) 
            } 
          }) 
        } 
        .width('100%') 
        .height('100%') 
        .layoutWeight(1) 
      } 
      .width('100%') 
    } 
  } 
}

The Epic Verse calculus: a core calculus for functional logic programming

https://simon.peytonjones.org/verse-calculus/
1•fanf2•12s ago•0 comments

Show HN: Dok.py, quick and dirty literate programming / yet another Docco clone

https://rebelpotato.github.io/dok.py/
1•RebelPotato•2m ago•0 comments

The Coming Storm: How Mediterranean Water Collapse Could Reshape Britain

https://fromtheprism.com/mediterranean-water-crisis-britain.html
1•voxx-ai•7m ago•0 comments

Athena

https://runathena.com/
1•handfuloflight•8m ago•0 comments

The Mystery of Richard Posner

https://lawliberty.org/features/the-mystery-of-richard-posner/
1•oli5679•10m ago•0 comments

Future Pixel devices may not meet the requirements to run GrapheneOS

https://twitter.com/GrapheneOS/status/1933177989480456365
1•codethief•10m ago•0 comments

Stolpersteine

https://www.stolpersteine.eu/en/
1•Tomte•13m ago•0 comments

Liquid freezes around magnets [video]

https://www.youtube.com/watch?v=cmqMRjKZLwo
1•xqcgrek2•13m ago•0 comments

Show HN: I Made a Launchpad for macOS

https://github.com/SuperKenVery/Launchpad
1•Cytoplast3528•15m ago•1 comments

Monitoring the distribution of euro coins across borders (2021)

https://www.sciencedirect.com/science/article/pii/S2352340921003656
1•Tomte•15m ago•0 comments

S&P AI Benchmarks by Kensho

https://benchmarks.kensho.com/
1•handfuloflight•18m ago•0 comments

Redox OS

https://gitlab.redox-os.org/redox-os/redox
1•chhill•19m ago•0 comments

Broadcom is quietly plotting a takeover of the AI infrastructure market

https://www.theregister.com/2025/06/27/broadcom_ai_ip/
1•belter•19m ago•0 comments

MCP: An (Accidentally) Universal Plugin System

https://worksonmymachine.substack.com/p/mcp-an-accidentally-universal-plugin
21•Stwerner•20m ago•3 comments

Publishing Pepys

https://literaryreview.co.uk/publishing-pepys
1•pepys•21m ago•0 comments

Sirius: A GPU-native SQL engine

https://github.com/sirius-db/sirius
3•qianli_cs•23m ago•0 comments

How to Build Nuclear Fast [video]

https://www.youtube.com/watch?v=HpnbD7AXAxg
2•mpweiher•24m ago•0 comments

McGuire Computer Graphics Archive

https://casual-effects.com/data/index.html
1•ibobev•25m ago•0 comments

LLM-Oriented API Design

https://twitter.com/alexalbert__/status/1933177502777913596
1•delifue•28m ago•0 comments

Deep-Sky Dreams: Keenan's System

https://www.astronomy.com/observing/deep-sky-dreams-keenans-system/
1•bookofjoe•29m ago•0 comments

Abstraction boundaries are optimization boundaries

https://blog.snork.dev/posts/abstraction-boundaries-are-optimization-boundaries.html
1•delifue•30m ago•0 comments

Show HN: Coloring Page Generator – VizBull

https://vizbull.com/photo-to-coloring-page-line-art-painting
1•rkj93•30m ago•0 comments

I Like the Helix Editor

https://herecomesthemoon.net/2025/06/i-like-helix/
3•Bogdanp•31m ago•0 comments

New SLS booster design suffers anomaly during test

https://spacenews.com/new-sls-booster-design-suffers-anomaly-during-test/
1•Polizeiposaune•31m ago•1 comments

Show HN: Qling – podcast player with episode highlights (reels-like discovery)

https://apps.apple.com/en/app/qling-podcast-player/id6740029729
1•bjar2•35m ago•0 comments

Rest Is Radical

https://www.boulderfoodrescue.org/rest-is-radical/
1•mooreds•35m ago•0 comments

I Almost Left My VC Job for a Hot AI Startup

https://www.swe2vc.com/p/i-almost-left-my-vc-job-for-a-sequoia-backed-ai-startup
1•swedonym•36m ago•1 comments

An endless real time quiz that supports hundreds of concurrent players

https://endlessquiz.party
1•joshrichards•36m ago•0 comments

Facebook is asking to use Meta AI on photos in your camera roll you haven't yet

https://techcrunch.com/2025/06/27/facebook-is-asking-to-use-meta-ai-on-photos-in-your-camera-roll-you-havent-yet-shared/
17•absqueued•36m ago•5 comments

Haaretz: The Lies Continue

https://mrandrewfox.substack.com/p/haaretz-the-lies-continue
6•mikevm•37m ago•0 comments